github.com/hashicorp/hcp-sdk-go@v0.94.0/clients/cloud-vault-secrets/stable/2023-06-13/models/secrets20230613_usage.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "context" 10 11 "github.com/go-openapi/strfmt" 12 "github.com/go-openapi/swag" 13 ) 14 15 // Secrets20230613Usage secrets 20230613 usage 16 // 17 // swagger:model secrets_20230613Usage 18 type Secrets20230613Usage struct { 19 20 // active 21 Active int32 `json:"active,omitempty"` 22 23 // limit 24 Limit int32 `json:"limit,omitempty"` 25 26 // remaining 27 Remaining int32 `json:"remaining,omitempty"` 28 } 29 30 // Validate validates this secrets 20230613 usage 31 func (m *Secrets20230613Usage) Validate(formats strfmt.Registry) error { 32 return nil 33 } 34 35 // ContextValidate validates this secrets 20230613 usage based on context it is used 36 func (m *Secrets20230613Usage) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 37 return nil 38 } 39 40 // MarshalBinary interface implementation 41 func (m *Secrets20230613Usage) MarshalBinary() ([]byte, error) { 42 if m == nil { 43 return nil, nil 44 } 45 return swag.WriteJSON(m) 46 } 47 48 // UnmarshalBinary interface implementation 49 func (m *Secrets20230613Usage) UnmarshalBinary(b []byte) error { 50 var res Secrets20230613Usage 51 if err := swag.ReadJSON(b, &res); err != nil { 52 return err 53 } 54 *m = res 55 return nil 56 }