// WriteToRequest writes these params to a swagger request func (o *UpdateOrganizationPrototypePermissionParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.PrototypeUpdate) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param orgname if err := r.SetPathParam("orgname", o.Orgname); err != nil { return err } // path param prototypeid if err := r.SetPathParam("prototypeid", o.Prototypeid); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *ChangeTokenParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.TokenPermission) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param code if err := r.SetPathParam("code", o.Code); err != nil { return err } // path param repository if err := r.SetPathParam("repository", o.Repository); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *UpdateOrganizationTeamParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.TeamDescription) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param orgname if err := r.SetPathParam("orgname", o.Orgname); err != nil { return err } // path param teamname if err := r.SetPathParam("teamname", o.Teamname); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *ManuallyStartBuildTriggerParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.RunParameters) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param repository if err := r.SetPathParam("repository", o.Repository); err != nil { return err } // path param trigger_uuid if err := r.SetPathParam("trigger_uuid", o.TriggerUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *ChangeTagImageParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.MoveTag) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param repository if err := r.SetPathParam("repository", o.Repository); err != nil { return err } // path param tag if err := r.SetPathParam("tag", o.Tag); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *UpdateOrganizationApplicationParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.UpdateApp) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param client_id if err := r.SetPathParam("client_id", o.ClientID); err != nil { return err } // path param orgname if err := r.SetPathParam("orgname", o.Orgname); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *PublishComponentReleaseParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.ComponentVersion) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param component if err := r.SetPathParam("component", o.Component); err != nil { return err } // path param release if err := r.SetPathParam("release", o.Release); err != nil { return err } // path param train if err := r.SetPathParam("train", o.Train); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *CreateTaskParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if err := r.SetBodyParam(o.Body); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *BatchCreateSubscriptionsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Request == nil { o.Request = new(models.CreateSubscriptionBatchRequest) } if err := r.SetBodyParam(o.Request); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *CreateClusterDetailsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.Cluster) } if err := r.SetBodyParam(o.Body); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *UpdateProfileParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Request == nil { o.Request = new(models.UpdateProfileRequest) } if err := r.SetBodyParam(o.Request); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *UpdateTaskParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if err := r.SetBodyParam(o.Body); err != nil { return err } // path param id if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *UpdateOneParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err } if o.Body != nil { if err := r.SetBodyParam(o.Body); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *CreateRepoNotificationParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.NotificationCreateRequest) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param repository if err := r.SetPathParam("repository", o.Repository); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *CancelSubscriptionParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error // path param subscription-ID if err := r.SetPathParam("subscription-ID", o.SubscriptionID); err != nil { return err } if o.SubscriptionCancellation == nil { o.SubscriptionCancellation = new(models.MutableBillingEntity) } if err := r.SetBodyParam(o.SubscriptionCancellation); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
// WriteToRequest writes these params to a swagger request func (o *PublishDoctorInfoParams) WriteToRequest(r client.Request, reg strfmt.Registry) error { var res []error if o.Body == nil { o.Body = new(models.DoctorInfo) } if err := r.SetBodyParam(o.Body); err != nil { return err } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }