diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/complete_upload_box_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/complete_upload_box_parameters.go deleted file mode 100644 index 985b6088..00000000 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/complete_upload_box_parameters.go +++ /dev/null @@ -1,258 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package registry_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompleteUploadBoxParams creates a new CompleteUploadBoxParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewCompleteUploadBoxParams() *CompleteUploadBoxParams { - return &CompleteUploadBoxParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewCompleteUploadBoxParamsWithTimeout creates a new CompleteUploadBoxParams object -// with the ability to set a timeout on a request. -func NewCompleteUploadBoxParamsWithTimeout(timeout time.Duration) *CompleteUploadBoxParams { - return &CompleteUploadBoxParams{ - timeout: timeout, - } -} - -// NewCompleteUploadBoxParamsWithContext creates a new CompleteUploadBoxParams object -// with the ability to set a context for a request. -func NewCompleteUploadBoxParamsWithContext(ctx context.Context) *CompleteUploadBoxParams { - return &CompleteUploadBoxParams{ - Context: ctx, - } -} - -// NewCompleteUploadBoxParamsWithHTTPClient creates a new CompleteUploadBoxParams object -// with the ability to set a custom HTTPClient for a request. -func NewCompleteUploadBoxParamsWithHTTPClient(client *http.Client) *CompleteUploadBoxParams { - return &CompleteUploadBoxParams{ - HTTPClient: client, - } -} - -/* -CompleteUploadBoxParams contains all the parameters to send to the API endpoint - - for the complete upload box operation. - - Typically these are written to a http.Request. -*/ -type CompleteUploadBoxParams struct { - - /* Architecture. - - The name of the Architecture. - */ - Architecture string - - // Body. - Body CompleteUploadBoxBody - - /* Box. - - The name segment of the Box. As an example, this field would represent the - "vagrant" in "hashicorp/vagrant". - */ - Box string - - /* Provider. - - The name of the Provider. - */ - Provider string - - /* Registry. - - The Registry segment of the Box. As an example, this field would represent - the "hashicorp" in "hashicorp/vagrant". - */ - Registry string - - /* Version. - - The name of the Version for the Provider. - */ - Version string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the complete upload box params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *CompleteUploadBoxParams) WithDefaults() *CompleteUploadBoxParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the complete upload box params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *CompleteUploadBoxParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the complete upload box params -func (o *CompleteUploadBoxParams) WithTimeout(timeout time.Duration) *CompleteUploadBoxParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the complete upload box params -func (o *CompleteUploadBoxParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the complete upload box params -func (o *CompleteUploadBoxParams) WithContext(ctx context.Context) *CompleteUploadBoxParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the complete upload box params -func (o *CompleteUploadBoxParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the complete upload box params -func (o *CompleteUploadBoxParams) WithHTTPClient(client *http.Client) *CompleteUploadBoxParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the complete upload box params -func (o *CompleteUploadBoxParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithArchitecture adds the architecture to the complete upload box params -func (o *CompleteUploadBoxParams) WithArchitecture(architecture string) *CompleteUploadBoxParams { - o.SetArchitecture(architecture) - return o -} - -// SetArchitecture adds the architecture to the complete upload box params -func (o *CompleteUploadBoxParams) SetArchitecture(architecture string) { - o.Architecture = architecture -} - -// WithBody adds the body to the complete upload box params -func (o *CompleteUploadBoxParams) WithBody(body CompleteUploadBoxBody) *CompleteUploadBoxParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the complete upload box params -func (o *CompleteUploadBoxParams) SetBody(body CompleteUploadBoxBody) { - o.Body = body -} - -// WithBox adds the box to the complete upload box params -func (o *CompleteUploadBoxParams) WithBox(box string) *CompleteUploadBoxParams { - o.SetBox(box) - return o -} - -// SetBox adds the box to the complete upload box params -func (o *CompleteUploadBoxParams) SetBox(box string) { - o.Box = box -} - -// WithProvider adds the provider to the complete upload box params -func (o *CompleteUploadBoxParams) WithProvider(provider string) *CompleteUploadBoxParams { - o.SetProvider(provider) - return o -} - -// SetProvider adds the provider to the complete upload box params -func (o *CompleteUploadBoxParams) SetProvider(provider string) { - o.Provider = provider -} - -// WithRegistry adds the registry to the complete upload box params -func (o *CompleteUploadBoxParams) WithRegistry(registry string) *CompleteUploadBoxParams { - o.SetRegistry(registry) - return o -} - -// SetRegistry adds the registry to the complete upload box params -func (o *CompleteUploadBoxParams) SetRegistry(registry string) { - o.Registry = registry -} - -// WithVersion adds the version to the complete upload box params -func (o *CompleteUploadBoxParams) WithVersion(version string) *CompleteUploadBoxParams { - o.SetVersion(version) - return o -} - -// SetVersion adds the version to the complete upload box params -func (o *CompleteUploadBoxParams) SetVersion(version string) { - o.Version = version -} - -// WriteToRequest writes these params to a swagger request -func (o *CompleteUploadBoxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param architecture - if err := r.SetPathParam("architecture", o.Architecture); err != nil { - return err - } - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - // path param box - if err := r.SetPathParam("box", o.Box); err != nil { - return err - } - - // path param provider - if err := r.SetPathParam("provider", o.Provider); err != nil { - return err - } - - // path param registry - if err := r.SetPathParam("registry", o.Registry); err != nil { - return err - } - - // path param version - if err := r.SetPathParam("version", o.Version); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/complete_upload_box_responses.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/complete_upload_box_responses.go deleted file mode 100644 index 89257780..00000000 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/complete_upload_box_responses.go +++ /dev/null @@ -1,230 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package registry_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vagrant-box-registry/stable/2022-09-30/models" -) - -// CompleteUploadBoxReader is a Reader for the CompleteUploadBox structure. -type CompleteUploadBoxReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompleteUploadBoxReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompleteUploadBoxOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompleteUploadBoxDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompleteUploadBoxOK creates a CompleteUploadBoxOK with default headers values -func NewCompleteUploadBoxOK() *CompleteUploadBoxOK { - return &CompleteUploadBoxOK{} -} - -/* -CompleteUploadBoxOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type CompleteUploadBoxOK struct { - Payload models.HashicorpCloudVagrant20220930CompleteUploadBoxResponse -} - -// IsSuccess returns true when this complete upload box o k response has a 2xx status code -func (o *CompleteUploadBoxOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this complete upload box o k response has a 3xx status code -func (o *CompleteUploadBoxOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this complete upload box o k response has a 4xx status code -func (o *CompleteUploadBoxOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this complete upload box o k response has a 5xx status code -func (o *CompleteUploadBoxOK) IsServerError() bool { - return false -} - -// IsCode returns true when this complete upload box o k response a status code equal to that given -func (o *CompleteUploadBoxOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the complete upload box o k response -func (o *CompleteUploadBoxOK) Code() int { - return 200 -} - -func (o *CompleteUploadBoxOK) Error() string { - return fmt.Sprintf("[PUT /vagrant/2022-09-30/registry/{registry}/box/{box}/version/{version}/provider/{provider}/architecture/{architecture}/complete][%d] completeUploadBoxOK %+v", 200, o.Payload) -} - -func (o *CompleteUploadBoxOK) String() string { - return fmt.Sprintf("[PUT /vagrant/2022-09-30/registry/{registry}/box/{box}/version/{version}/provider/{provider}/architecture/{architecture}/complete][%d] completeUploadBoxOK %+v", 200, o.Payload) -} - -func (o *CompleteUploadBoxOK) GetPayload() models.HashicorpCloudVagrant20220930CompleteUploadBoxResponse { - return o.Payload -} - -func (o *CompleteUploadBoxOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompleteUploadBoxDefault creates a CompleteUploadBoxDefault with default headers values -func NewCompleteUploadBoxDefault(code int) *CompleteUploadBoxDefault { - return &CompleteUploadBoxDefault{ - _statusCode: code, - } -} - -/* -CompleteUploadBoxDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type CompleteUploadBoxDefault struct { - _statusCode int - - Payload *cloud.GoogleRPCStatus -} - -// IsSuccess returns true when this complete upload box default response has a 2xx status code -func (o *CompleteUploadBoxDefault) IsSuccess() bool { - return o._statusCode/100 == 2 -} - -// IsRedirect returns true when this complete upload box default response has a 3xx status code -func (o *CompleteUploadBoxDefault) IsRedirect() bool { - return o._statusCode/100 == 3 -} - -// IsClientError returns true when this complete upload box default response has a 4xx status code -func (o *CompleteUploadBoxDefault) IsClientError() bool { - return o._statusCode/100 == 4 -} - -// IsServerError returns true when this complete upload box default response has a 5xx status code -func (o *CompleteUploadBoxDefault) IsServerError() bool { - return o._statusCode/100 == 5 -} - -// IsCode returns true when this complete upload box default response a status code equal to that given -func (o *CompleteUploadBoxDefault) IsCode(code int) bool { - return o._statusCode == code -} - -// Code gets the status code for the complete upload box default response -func (o *CompleteUploadBoxDefault) Code() int { - return o._statusCode -} - -func (o *CompleteUploadBoxDefault) Error() string { - return fmt.Sprintf("[PUT /vagrant/2022-09-30/registry/{registry}/box/{box}/version/{version}/provider/{provider}/architecture/{architecture}/complete][%d] CompleteUploadBox default %+v", o._statusCode, o.Payload) -} - -func (o *CompleteUploadBoxDefault) String() string { - return fmt.Sprintf("[PUT /vagrant/2022-09-30/registry/{registry}/box/{box}/version/{version}/provider/{provider}/architecture/{architecture}/complete][%d] CompleteUploadBox default %+v", o._statusCode, o.Payload) -} - -func (o *CompleteUploadBoxDefault) GetPayload() *cloud.GoogleRPCStatus { - return o.Payload -} - -func (o *CompleteUploadBoxDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(cloud.GoogleRPCStatus) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -CompleteUploadBoxBody complete upload box body -swagger:model CompleteUploadBoxBody -*/ -type CompleteUploadBoxBody struct { - - // Size of the artifact uploaded. - Bytes string `json:"bytes,omitempty"` - - // Storage key of the upload. - Key string `json:"key,omitempty"` - - // Object identifier. - Object string `json:"object,omitempty"` - - // Success status of the upload. - Success bool `json:"success,omitempty"` -} - -// Validate validates this complete upload box body -func (o *CompleteUploadBoxBody) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this complete upload box body based on context it is used -func (o *CompleteUploadBoxBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *CompleteUploadBoxBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *CompleteUploadBoxBody) UnmarshalBinary(b []byte) error { - var res CompleteUploadBoxBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_box_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_box_parameters.go index 2a143c89..b3851cea 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_box_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_box_parameters.go @@ -65,8 +65,7 @@ type CreateBoxParams struct { /* Data. - Details of the Box to create. Note that some fields are ignored - on input and should not be set. + Details of the Box to create. */ Data *models.HashicorpCloudVagrant20220930Box diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_registry_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_registry_parameters.go index 0ce57283..8edbdda8 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_registry_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_registry_parameters.go @@ -65,8 +65,7 @@ type CreateRegistryParams struct { /* Data. - Details of the Registry to create. Note that some fields are ignored - on input and should not be set. + Details of the Registry to create. */ Data *models.HashicorpCloudVagrant20220930Registry diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_version_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_version_parameters.go index ffbfa3da..a7668674 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_version_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/create_version_parameters.go @@ -72,8 +72,7 @@ type CreateVersionParams struct { /* Data. - Details of the Version to create. Note that some fields are ignored - on input and should not be set. + Details of the Version to create. */ Data *models.HashicorpCloudVagrant20220930Version diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/registry_service_client.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/registry_service_client.go index da639d46..b763fdf9 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/registry_service_client.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/registry_service_client.go @@ -32,8 +32,6 @@ type ClientService interface { CompleteDirectUploadBox(params *CompleteDirectUploadBoxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CompleteDirectUploadBoxOK, error) - CompleteUploadBox(params *CompleteUploadBoxParams, opts ...ClientOption) (*CompleteUploadBoxOK, error) - CreateArchitecture(params *CreateArchitectureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateArchitectureOK, error) CreateBox(params *CreateBoxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBoxOK, error) @@ -181,43 +179,6 @@ func (a *Client) CompleteDirectUploadBox(params *CompleteDirectUploadBoxParams, return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -CompleteUploadBox completes upload box is a callback endpoint used to signal that an upload of boxfile is finished -*/ -func (a *Client) CompleteUploadBox(params *CompleteUploadBoxParams, opts ...ClientOption) (*CompleteUploadBoxOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompleteUploadBoxParams() - } - op := &runtime.ClientOperation{ - ID: "CompleteUploadBox", - Method: "PUT", - PathPattern: "/vagrant/2022-09-30/registry/{registry}/box/{box}/version/{version}/provider/{provider}/architecture/{architecture}/complete", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompleteUploadBoxReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*CompleteUploadBoxOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompleteUploadBoxDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - /* CreateArchitecture creates architecture creates a architecture in the specified version */ diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_architecture_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_architecture_parameters.go index e8bdd520..0af912ea 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_architecture_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_architecture_parameters.go @@ -78,8 +78,7 @@ type UpdateArchitectureParams struct { /* Data. - Details of the Architecture to update. Note that some fields are ignored on - input and should not be set. + Details of the Architecture to update. */ Data *models.HashicorpCloudVagrant20220930Architecture diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_box_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_box_parameters.go index 96e2be31..65c8846b 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_box_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_box_parameters.go @@ -72,8 +72,7 @@ type UpdateBoxParams struct { /* Data. - Details of the Box to update. Note that some fields are ignored - on input and should not be set. + Details of the Box to update. */ Data *models.HashicorpCloudVagrant20220930Box diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_provider_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_provider_parameters.go index e881a56c..f8c4cd2d 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_provider_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_provider_parameters.go @@ -72,8 +72,7 @@ type UpdateProviderParams struct { /* Data. - Details of the Provider to update. Note that some fields are ignored on - input and should not be set. + Details of the Provider to update. */ Data *models.HashicorpCloudVagrant20220930Provider diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_registry_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_registry_parameters.go index b7b2a9f0..4146fd39 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_registry_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_registry_parameters.go @@ -65,7 +65,7 @@ type UpdateRegistryParams struct { /* Data. - The updated Registry details. Some fields are ignored on input. + The updated Registry details. */ Data *models.HashicorpCloudVagrant20220930Registry diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_version_parameters.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_version_parameters.go index 80b45ead..08cfa3c6 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_version_parameters.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/client/registry_service/update_version_parameters.go @@ -72,8 +72,7 @@ type UpdateVersionParams struct { /* Data. - Details of the Version to update. Note that some fields are ignored - on input and should not be set. + Details of the Version to update. */ Data *models.HashicorpCloudVagrant20220930Version diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_architecture.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_architecture.go index 81f9c019..3d528a88 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_architecture.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_architecture.go @@ -26,6 +26,7 @@ type HashicorpCloudVagrant20220930Architecture struct { BoxData *HashicorpCloudVagrant20220930BoxData `json:"box_data,omitempty"` // The date the record was created. + // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` @@ -33,6 +34,7 @@ type HashicorpCloudVagrant20220930Architecture struct { Default bool `json:"default,omitempty"` // The date that the record was last updated. + // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` } @@ -110,6 +112,14 @@ func (m *HashicorpCloudVagrant20220930Architecture) ContextValidate(ctx context. res = append(res, err) } + if err := m.contextValidateCreatedAt(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateUpdatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -137,6 +147,24 @@ func (m *HashicorpCloudVagrant20220930Architecture) contextValidateBoxData(ctx c return nil } +func (m *HashicorpCloudVagrant20220930Architecture) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created_at", "body", strfmt.DateTime(m.CreatedAt)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930Architecture) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "updated_at", "body", strfmt.DateTime(m.UpdatedAt)); err != nil { + return err + } + + return nil +} + // MarshalBinary interface implementation func (m *HashicorpCloudVagrant20220930Architecture) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box.go index 1be79d50..8e9fb0e5 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box.go @@ -21,6 +21,7 @@ import ( type HashicorpCloudVagrant20220930Box struct { // The date the record was created. + // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` @@ -28,9 +29,11 @@ type HashicorpCloudVagrant20220930Box struct { Description string `json:"description,omitempty"` // The HTML rendered description. + // Read Only: true DescriptionHTML string `json:"description_html,omitempty"` // The number of times this box has been downloaded. + // Read Only: true Downloads string `json:"downloads,omitempty"` // Whether or not the Box is private. @@ -45,16 +48,20 @@ type HashicorpCloudVagrant20220930Box struct { ShortDescription string `json:"short_description,omitempty"` // The state of the box. + // Read Only: true State *HashicorpCloudVagrant20220930BoxState `json:"state,omitempty"` // Summary details about this box. + // Read Only: true Summary *HashicorpCloudVagrant20220930BoxSummary `json:"summary,omitempty"` // The date that the record was last updated. + // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` // Versions of box (if expanded). + // Read Only: true Versions []*HashicorpCloudVagrant20220930Version `json:"versions"` } @@ -180,6 +187,18 @@ func (m *HashicorpCloudVagrant20220930Box) validateVersions(formats strfmt.Regis func (m *HashicorpCloudVagrant20220930Box) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateCreatedAt(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDescriptionHTML(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDownloads(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateState(ctx, formats); err != nil { res = append(res, err) } @@ -188,6 +207,10 @@ func (m *HashicorpCloudVagrant20220930Box) ContextValidate(ctx context.Context, res = append(res, err) } + if err := m.contextValidateUpdatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateVersions(ctx, formats); err != nil { res = append(res, err) } @@ -198,6 +221,33 @@ func (m *HashicorpCloudVagrant20220930Box) ContextValidate(ctx context.Context, return nil } +func (m *HashicorpCloudVagrant20220930Box) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created_at", "body", strfmt.DateTime(m.CreatedAt)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930Box) contextValidateDescriptionHTML(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "description_html", "body", string(m.DescriptionHTML)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930Box) contextValidateDownloads(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "downloads", "body", string(m.Downloads)); err != nil { + return err + } + + return nil +} + func (m *HashicorpCloudVagrant20220930Box) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { @@ -240,8 +290,21 @@ func (m *HashicorpCloudVagrant20220930Box) contextValidateSummary(ctx context.Co return nil } +func (m *HashicorpCloudVagrant20220930Box) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "updated_at", "body", strfmt.DateTime(m.UpdatedAt)); err != nil { + return err + } + + return nil +} + func (m *HashicorpCloudVagrant20220930Box) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + if err := validate.ReadOnly(ctx, "versions", "body", []*HashicorpCloudVagrant20220930Version(m.Versions)); err != nil { + return err + } + for i := 0; i < len(m.Versions); i++ { if m.Versions[i] != nil { diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box_data.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box_data.go index 7bec9cef..7eaf9a3a 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box_data.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_box_data.go @@ -27,6 +27,7 @@ type HashicorpCloudVagrant20220930BoxData struct { ChecksumType *HashicorpCloudVagrant20220930ChecksumType `json:"checksum_type,omitempty"` // The date the record was created. + // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` @@ -34,9 +35,11 @@ type HashicorpCloudVagrant20220930BoxData struct { DownloadURL string `json:"download_url,omitempty"` // The size of the box file, if available. + // Read Only: true Size string `json:"size,omitempty"` // The date that the record was last updated. + // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` } @@ -114,6 +117,18 @@ func (m *HashicorpCloudVagrant20220930BoxData) ContextValidate(ctx context.Conte res = append(res, err) } + if err := m.contextValidateCreatedAt(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateSize(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateUpdatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -141,6 +156,33 @@ func (m *HashicorpCloudVagrant20220930BoxData) contextValidateChecksumType(ctx c return nil } +func (m *HashicorpCloudVagrant20220930BoxData) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created_at", "body", strfmt.DateTime(m.CreatedAt)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930BoxData) contextValidateSize(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "size", "body", string(m.Size)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930BoxData) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "updated_at", "body", strfmt.DateTime(m.UpdatedAt)); err != nil { + return err + } + + return nil +} + // MarshalBinary interface implementation func (m *HashicorpCloudVagrant20220930BoxData) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_complete_upload_box_response.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_complete_upload_box_response.go deleted file mode 100644 index d57a64cd..00000000 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_complete_upload_box_response.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// HashicorpCloudVagrant20220930CompleteUploadBoxResponse hashicorp cloud vagrant 20220930 complete upload box response -// -// swagger:model hashicorp.cloud.vagrant_20220930.CompleteUploadBoxResponse -type HashicorpCloudVagrant20220930CompleteUploadBoxResponse interface{} diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_create_architecture_response.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_create_architecture_response.go index 01a1fe63..d59b52a0 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_create_architecture_response.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_create_architecture_response.go @@ -18,7 +18,7 @@ import ( // swagger:model hashicorp.cloud.vagrant_20220930.CreateArchitectureResponse type HashicorpCloudVagrant20220930CreateArchitectureResponse struct { - // The created Architecture + // The created Architecture. Architecture *HashicorpCloudVagrant20220930Architecture `json:"architecture,omitempty"` } diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_download_box_response.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_download_box_response.go index ef91236c..31cf5ac4 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_download_box_response.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_download_box_response.go @@ -18,8 +18,7 @@ import ( // swagger:model hashicorp.cloud.vagrant_20220930.DownloadBoxResponse type HashicorpCloudVagrant20220930DownloadBoxResponse struct { - // (Optional) checksum data to validate the download with. This field may - // not be populated for Hosted Provider downloads. + // (Optional) checksum data to validate the download with. Checksum string `json:"checksum,omitempty"` // The algorithm type for the provided checksum. diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_provider.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_provider.go index 1f026858..aefd7ea5 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_provider.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_provider.go @@ -21,9 +21,11 @@ import ( type HashicorpCloudVagrant20220930Provider struct { // Architectures of provider (if expanded). + // Read Only: true Architectures []*HashicorpCloudVagrant20220930Architecture `json:"architectures"` // The date the record was created. + // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` @@ -31,9 +33,11 @@ type HashicorpCloudVagrant20220930Provider struct { Name string `json:"name,omitempty"` // The ProviderSummary provides quick facts about provider child objects + // Read Only: true Summary *HashicorpCloudVagrant20220930ProviderSummary `json:"summary,omitempty"` // The date that the record was last updated. + // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` } @@ -141,10 +145,18 @@ func (m *HashicorpCloudVagrant20220930Provider) ContextValidate(ctx context.Cont res = append(res, err) } + if err := m.contextValidateCreatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSummary(ctx, formats); err != nil { res = append(res, err) } + if err := m.contextValidateUpdatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -153,6 +165,10 @@ func (m *HashicorpCloudVagrant20220930Provider) ContextValidate(ctx context.Cont func (m *HashicorpCloudVagrant20220930Provider) contextValidateArchitectures(ctx context.Context, formats strfmt.Registry) error { + if err := validate.ReadOnly(ctx, "architectures", "body", []*HashicorpCloudVagrant20220930Architecture(m.Architectures)); err != nil { + return err + } + for i := 0; i < len(m.Architectures); i++ { if m.Architectures[i] != nil { @@ -176,6 +192,15 @@ func (m *HashicorpCloudVagrant20220930Provider) contextValidateArchitectures(ctx return nil } +func (m *HashicorpCloudVagrant20220930Provider) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created_at", "body", strfmt.DateTime(m.CreatedAt)); err != nil { + return err + } + + return nil +} + func (m *HashicorpCloudVagrant20220930Provider) contextValidateSummary(ctx context.Context, formats strfmt.Registry) error { if m.Summary != nil { @@ -197,6 +222,15 @@ func (m *HashicorpCloudVagrant20220930Provider) contextValidateSummary(ctx conte return nil } +func (m *HashicorpCloudVagrant20220930Provider) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "updated_at", "body", strfmt.DateTime(m.UpdatedAt)); err != nil { + return err + } + + return nil +} + // MarshalBinary interface implementation func (m *HashicorpCloudVagrant20220930Provider) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_registry.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_registry.go index 13afb909..149107a6 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_registry.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_registry.go @@ -21,23 +21,28 @@ import ( // swagger:model hashicorp.cloud.vagrant_20220930.Registry type HashicorpCloudVagrant20220930Registry struct { - // Whether or not the Registry is currently activated, ignored on input. - Activated bool `json:"activated,omitempty"` + // Whether or not the Registry is currently activated. + // Read Only: true + Activated *bool `json:"activated,omitempty"` // Boxes of registry (if expanded). + // Read Only: true Boxes []*HashicorpCloudVagrant20220930Box `json:"boxes"` // The date the record was created. + // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` - // The description of the registry, if it exists + // The description of the registry, if it exists. Description string `json:"description,omitempty"` - // The HTML rendered description, ignored on input + // The HTML rendered description + // Read Only: true DescriptionHTML string `json:"description_html,omitempty"` - // The gravatar used for this registry, ignored on input + // The gravatar used for this registry + // Read Only: true GravatarURL string `json:"gravatar_url,omitempty"` // The Location that the Registry resides in. @@ -50,6 +55,7 @@ type HashicorpCloudVagrant20220930Registry struct { Name string `json:"name,omitempty"` // The date that the record was last updated. + // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` } @@ -153,22 +159,55 @@ func (m *HashicorpCloudVagrant20220930Registry) validateUpdatedAt(formats strfmt func (m *HashicorpCloudVagrant20220930Registry) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateActivated(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateBoxes(ctx, formats); err != nil { res = append(res, err) } + if err := m.contextValidateCreatedAt(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDescriptionHTML(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateGravatarURL(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateLocation(ctx, formats); err != nil { res = append(res, err) } + if err := m.contextValidateUpdatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } +func (m *HashicorpCloudVagrant20220930Registry) contextValidateActivated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "activated", "body", m.Activated); err != nil { + return err + } + + return nil +} + func (m *HashicorpCloudVagrant20220930Registry) contextValidateBoxes(ctx context.Context, formats strfmt.Registry) error { + if err := validate.ReadOnly(ctx, "boxes", "body", []*HashicorpCloudVagrant20220930Box(m.Boxes)); err != nil { + return err + } + for i := 0; i < len(m.Boxes); i++ { if m.Boxes[i] != nil { @@ -192,6 +231,33 @@ func (m *HashicorpCloudVagrant20220930Registry) contextValidateBoxes(ctx context return nil } +func (m *HashicorpCloudVagrant20220930Registry) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created_at", "body", strfmt.DateTime(m.CreatedAt)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930Registry) contextValidateDescriptionHTML(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "description_html", "body", string(m.DescriptionHTML)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930Registry) contextValidateGravatarURL(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "gravatar_url", "body", string(m.GravatarURL)); err != nil { + return err + } + + return nil +} + func (m *HashicorpCloudVagrant20220930Registry) contextValidateLocation(ctx context.Context, formats strfmt.Registry) error { if m.Location != nil { @@ -213,6 +279,15 @@ func (m *HashicorpCloudVagrant20220930Registry) contextValidateLocation(ctx cont return nil } +func (m *HashicorpCloudVagrant20220930Registry) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "updated_at", "body", strfmt.DateTime(m.UpdatedAt)); err != nil { + return err + } + + return nil +} + // MarshalBinary interface implementation func (m *HashicorpCloudVagrant20220930Registry) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_version.go b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_version.go index 838b0721..5b8c54bd 100644 --- a/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_version.go +++ b/clients/cloud-vagrant-box-registry/stable/2022-09-30/models/hashicorp_cloud_vagrant20220930_version.go @@ -21,6 +21,7 @@ import ( type HashicorpCloudVagrant20220930Version struct { // The date the record was created. + // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` @@ -28,6 +29,7 @@ type HashicorpCloudVagrant20220930Version struct { Description string `json:"description,omitempty"` // The HTML rendered description. + // Read Only: true DescriptionHTML string `json:"description_html,omitempty"` // The version string, ie: v0.0.1 or v2006010201, etc. Must be unique within @@ -35,15 +37,19 @@ type HashicorpCloudVagrant20220930Version struct { Name string `json:"name,omitempty"` // Providers of version (if expanded). + // Read Only: true Providers []*HashicorpCloudVagrant20220930Provider `json:"providers"` // The release status of the Version. + // Read Only: true State *HashicorpCloudVagrant20220930VersionState `json:"state,omitempty"` - // Summary details about this version.bool + // Summary details about this version. + // Read Only: true Summary *HashicorpCloudVagrant20220930VersionSummary `json:"summary,omitempty"` // The date that the record was last updated. + // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` } @@ -170,6 +176,14 @@ func (m *HashicorpCloudVagrant20220930Version) validateUpdatedAt(formats strfmt. func (m *HashicorpCloudVagrant20220930Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateCreatedAt(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDescriptionHTML(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateProviders(ctx, formats); err != nil { res = append(res, err) } @@ -182,14 +196,40 @@ func (m *HashicorpCloudVagrant20220930Version) ContextValidate(ctx context.Conte res = append(res, err) } + if err := m.contextValidateUpdatedAt(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } +func (m *HashicorpCloudVagrant20220930Version) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created_at", "body", strfmt.DateTime(m.CreatedAt)); err != nil { + return err + } + + return nil +} + +func (m *HashicorpCloudVagrant20220930Version) contextValidateDescriptionHTML(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "description_html", "body", string(m.DescriptionHTML)); err != nil { + return err + } + + return nil +} + func (m *HashicorpCloudVagrant20220930Version) contextValidateProviders(ctx context.Context, formats strfmt.Registry) error { + if err := validate.ReadOnly(ctx, "providers", "body", []*HashicorpCloudVagrant20220930Provider(m.Providers)); err != nil { + return err + } + for i := 0; i < len(m.Providers); i++ { if m.Providers[i] != nil { @@ -255,6 +295,15 @@ func (m *HashicorpCloudVagrant20220930Version) contextValidateSummary(ctx contex return nil } +func (m *HashicorpCloudVagrant20220930Version) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "updated_at", "body", strfmt.DateTime(m.UpdatedAt)); err != nil { + return err + } + + return nil +} + // MarshalBinary interface implementation func (m *HashicorpCloudVagrant20220930Version) MarshalBinary() ([]byte, error) { if m == nil {