Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, ...) (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent, error)
- func (a *Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictions(params *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams, ...) (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK, error)
- func (a *Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, ...) (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK, error)
- func (a *Client) PostRepositoriesWorkspaceRepoSlugBranchRestrictions(params *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams, ...) (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated, error)
- func (a *Client) PutRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, ...) (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden
- type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent
- type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound
- type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams() *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext(ctx context.Context) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient(client *http.Client) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout(timeout time.Duration) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext(ctx context.Context)
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID(id string)
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug(repoSlug string)
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace(workspace string)
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext(ctx context.Context) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient(client *http.Client) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID(id string) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug(repoSlug string) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout(timeout time.Duration) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace(workspace string) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader
- type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext(ctx context.Context)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient(client *http.Client)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID(id string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug(repoSlug string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout(timeout time.Duration)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace(workspace string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID(id string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug(repoSlug string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace(workspace string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext(ctx context.Context)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient(client *http.Client)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetKind(kind *string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetPattern(pattern *string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug(repoSlug string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout(timeout time.Duration)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace(workspace string)
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithKind(kind *string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithPattern(pattern *string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug(repoSlug string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace(workspace string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsReader
- type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized
- type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated
- type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden
- type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound
- type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams() *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext(ctx context.Context) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient(client *http.Client) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout(timeout time.Duration) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetBody(body *models.Branchrestriction)
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext(ctx context.Context)
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient(client *http.Client)
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug(repoSlug string)
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout(timeout time.Duration)
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace(workspace string)
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithBody(body *models.Branchrestriction) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext(ctx context.Context) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient(client *http.Client) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug(repoSlug string) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout(timeout time.Duration) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace(workspace string) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
- func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsReader
- type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized
- type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden
- type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound
- type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK
- type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams() *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext(ctx context.Context) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient(client *http.Client) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout(timeout time.Duration) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetBody(body *models.Branchrestriction)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext(ctx context.Context)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient(client *http.Client)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID(id string)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug(repoSlug string)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout(timeout time.Duration)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace(workspace string)
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithBody(body *models.Branchrestriction) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext(ctx context.Context) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient(client *http.Client) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID(id string) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug(repoSlug string) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout(timeout time.Duration) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace(workspace string) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
- func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader
- type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for branchrestrictions API
func (*Client) DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID ¶
func (a *Client) DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent, error)
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID Deletes an existing branch restriction rule.
func (*Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictions ¶
func (a *Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictions(params *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK, error)
GetRepositoriesWorkspaceRepoSlugBranchRestrictions Returns a paginated list of all branch restrictions on the
repository.
func (*Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID ¶
func (a *Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK, error)
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID Returns a specific branch restriction rule.
func (*Client) PostRepositoriesWorkspaceRepoSlugBranchRestrictions ¶
func (a *Client) PostRepositoriesWorkspaceRepoSlugBranchRestrictions(params *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams, authInfo runtime.ClientAuthInfoWriter) (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated, error)
PostRepositoriesWorkspaceRepoSlugBranchRestrictions Creates a new branch restriction rule for a repository.
`kind` describes what will be restricted. Allowed values include: `push`, `force`, `delete` and `restrict_merges`.
Different kinds of branch restrictions have different requirements:
- `push` and `restrict_merges` require `users` and `groups` to be specified. Empty lists are allowed, in which case permission is denied for everybody.
- `force` can not be specified in a Mercurial repository.
The restriction applies to all branches that match. There are two ways to match a branch. It is configured in `branch_match_kind`:
- `glob`: Matches a branch against the `pattern`. A `'*'` in `pattern` will expand to match zero or more characters, and every other character matches itself. For example, `'foo*'` will match `'foo'` and `'foobar'`, but not `'barfoo'`. `'*'` will match all branches.
- `branching_model`: Matches a branch against the repository's branching model. The `branch_type` controls the type of branch to match. Allowed values include: `production`, `development`, `bugfix`, `release`, `feature` and `hotfix`.
The combination of `kind` and match must be unique. This means that two `glob` restrictions in a repository cannot have the same `kind` and `pattern`. Additionally, two `branching_model` restrictions in a repository cannot have the same `kind` and `branch_type`.
`users` and `groups` are lists of users and groups that are except from the restriction. They can only be configured in `push` and `restrict_merges` restrictions. The `push` restriction stops a user pushing to matching branches unless that user is in `users` or is a member of a group in `groups`. The `restrict_merges` stops a user merging pull requests to matching branches unless that user is in `users` or is a member of a group in `groups`. Adding new users or groups to an existing restriction should be done via `PUT`.
Note that branch restrictions with overlapping matchers is allowed, but the resulting behavior may be surprising.
func (*Client) PutRepositoriesWorkspaceRepoSlugBranchRestrictionsID ¶
func (a *Client) PutRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, authInfo runtime.ClientAuthInfoWriter) (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK, error)
PutRepositoriesWorkspaceRepoSlugBranchRestrictionsID Updates an existing branch restriction rule.
Fields not present in the request body are ignored.
See [`POST`](../branch-restrictions#post) for details.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent, error) GetRepositoriesWorkspaceRepoSlugBranchRestrictions(params *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK, error) GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK, error) PostRepositoriesWorkspaceRepoSlugBranchRestrictions(params *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams, authInfo runtime.ClientAuthInfoWriter) (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated, error) PutRepositoriesWorkspaceRepoSlugBranchRestrictionsID(params *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams, authInfo runtime.ClientAuthInfoWriter) (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new branchrestrictions API client.
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden ¶
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden struct {
Payload *models.Error
}
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden handles this case with default header values.
If the authenticated user does not have admin access to the repository
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden() *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden creates a DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden with default headers values
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) Error ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) Error() string
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload() *models.Error
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent ¶
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent struct { }
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent handles this case with default header values.
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent delete repositories workspace repo slug branch restrictions Id no content
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent() *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent creates a DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent with default headers values
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent) Error ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNoContent) Error() string
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound ¶
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound struct {
Payload *models.Error
}
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound handles this case with default header values.
If the repository or branch restriction id does not exist
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound() *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound creates a DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound with default headers values
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) Error ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) Error() string
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload() *models.Error
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams ¶
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams struct { /*ID The restriction rule's id */ ID string /*RepoSlug This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. */ RepoSlug string /*Workspace This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. */ Workspace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams contains all the parameters to send to the API endpoint for the delete repositories workspace repo slug branch restrictions ID operation typically these are written to a http.Request
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams() *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams creates a new DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized.
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext(ctx context.Context) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext creates a new DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient(client *http.Client) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient creates a new DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout(timeout time.Duration) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout creates a new DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID(id string)
SetID adds the id to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace(workspace string)
SetWorkspace adds the workspace to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext(ctx context.Context) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithContext adds the context to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient(client *http.Client) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithHTTPClient adds the HTTPClient to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID(id string) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithID adds the id to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug(repoSlug string) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithRepoSlug adds the repoSlug to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout(timeout time.Duration) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithTimeout adds the timeout to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace(workspace string) *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithWorkspace adds the workspace to the delete repositories workspace repo slug branch restrictions ID params
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader ¶
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader struct {
// contains filtered or unexported fields
}
DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader is a Reader for the DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID structure.
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader) ReadResponse ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized ¶
type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized struct {
}DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized handles this case with default header values.
If the request was not authenticated
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized ¶
func NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized() *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized
NewDeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized creates a DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized with default headers values
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) Error ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) Error() string
func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload ¶
func (o *DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload() *models.Error
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden ¶
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden handles this case with default header values.
If the authenticated user does not have admin access to the repository
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) GetPayload() *models.Error
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden ¶
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden handles this case with default header values.
If the authenticated user does not have admin access to the repository
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload() *models.Error
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound ¶
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound handles this case with default header values.
If the repository or branch restriction id does not exist
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload() *models.Error
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK struct {
Payload *models.Branchrestriction
}
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK handles this case with default header values.
The branch restriction rule
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) GetPayload() *models.Branchrestriction
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams struct { /*ID The restriction rule's id */ ID string /*RepoSlug This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. */ RepoSlug string /*Workspace This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. */ Workspace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug branch restrictions ID operation typically these are written to a http.Request
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized.
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID(id string)
SetID adds the id to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace(workspace string)
SetWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithContext adds the context to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID(id string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithID adds the id to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug(repoSlug string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithTimeout adds the timeout to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace(workspace string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions ID params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader struct {
// contains filtered or unexported fields
}
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader is a Reader for the GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID structure.
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader) ReadResponse ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized struct {
}GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized handles this case with default header values.
If the request was not authenticated
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload() *models.Error
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound ¶
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound handles this case with default header values.
If the repository does not exist
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) GetPayload() *models.Error
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK struct {
Payload *models.PaginatedBranchrestrictions
}
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK handles this case with default header values.
A paginated list of branch restrictions
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK) GetPayload() *models.PaginatedBranchrestrictions
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams struct { /*Kind Branch restrictions of this type */ Kind *string /*Pattern Branch restrictions applied to branches of this pattern */ Pattern *string /*RepoSlug This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. */ RepoSlug string /*Workspace This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. */ Workspace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug branch restrictions operation typically these are written to a http.Request
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized.
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized, and the ability to set a context for a request
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout creates a new GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext(ctx context.Context)
SetContext adds the context to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetKind ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetKind(kind *string)
SetKind adds the kind to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetPattern ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetPattern(pattern *string)
SetPattern adds the pattern to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace(workspace string)
SetWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithContext adds the context to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithKind ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithKind(kind *string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithKind adds the kind to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithPattern ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithPattern(pattern *string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithPattern adds the pattern to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug(repoSlug string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithTimeout adds the timeout to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace(workspace string) *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions params
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsReader ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsReader struct {
// contains filtered or unexported fields
}
GetRepositoriesWorkspaceRepoSlugBranchRestrictionsReader is a Reader for the GetRepositoriesWorkspaceRepoSlugBranchRestrictions structure.
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsReader) ReadResponse ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized ¶
type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized struct {
}GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized handles this case with default header values.
If the request was not authenticated
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized ¶
func NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized() *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized
NewGetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized creates a GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized with default headers values
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) Error ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) Error() string
func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) GetPayload ¶
func (o *GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) GetPayload() *models.Error
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated ¶
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated struct {
Payload *models.Branchrestriction
}
PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated handles this case with default header values.
A paginated list of branch restrictions
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated() *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated creates a PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated with default headers values
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated) Error ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated) Error() string
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated) GetPayload ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated) GetPayload() *models.Branchrestriction
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden ¶
PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden handles this case with default header values.
If the authenticated user does not have admin access to the repository
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden() *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden creates a PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden with default headers values
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) Error ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) Error() string
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) GetPayload ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) GetPayload() *models.Error
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound ¶
PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound handles this case with default header values.
If the repository does not exist
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound() *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound creates a PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound with default headers values
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) Error ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) Error() string
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) GetPayload ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) GetPayload() *models.Error
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams ¶
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams struct { /*Body The new rule */ Body *models.Branchrestriction /*RepoSlug This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. */ RepoSlug string /*Workspace This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. */ Workspace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams contains all the parameters to send to the API endpoint for the post repositories workspace repo slug branch restrictions operation typically these are written to a http.Request
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams() *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams creates a new PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized.
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext(ctx context.Context) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithContext creates a new PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized, and the ability to set a context for a request
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient(client *http.Client) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithHTTPClient creates a new PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout(timeout time.Duration) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsParamsWithTimeout creates a new PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetBody ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetBody(body *models.Branchrestriction)
SetBody adds the body to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext(ctx context.Context)
SetContext adds the context to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace(workspace string)
SetWorkspace adds the workspace to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithBody ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithBody(body *models.Branchrestriction) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithBody adds the body to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext(ctx context.Context) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithContext adds the context to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient(client *http.Client) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithHTTPClient adds the HTTPClient to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug(repoSlug string) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithRepoSlug adds the repoSlug to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout(timeout time.Duration) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithTimeout adds the timeout to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace(workspace string) *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams
WithWorkspace adds the workspace to the post repositories workspace repo slug branch restrictions params
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsReader ¶
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsReader struct {
// contains filtered or unexported fields
}
PostRepositoriesWorkspaceRepoSlugBranchRestrictionsReader is a Reader for the PostRepositoriesWorkspaceRepoSlugBranchRestrictions structure.
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsReader) ReadResponse ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized ¶
type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized struct {
}PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized handles this case with default header values.
If the request was not authenticated
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized ¶
func NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized() *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized
NewPostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized creates a PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized with default headers values
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) Error ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) Error() string
func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) GetPayload ¶
func (o *PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) GetPayload() *models.Error
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden ¶
PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden handles this case with default header values.
If the authenticated user does not have admin access to the repository
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden() *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden creates a PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden with default headers values
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) Error ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) Error() string
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload() *models.Error
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound ¶
PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound handles this case with default header values.
If the repository or branch restriction id does not exist
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound() *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound creates a PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound with default headers values
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) Error ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) Error() string
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload() *models.Error
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK ¶
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK struct {
Payload *models.Branchrestriction
}
PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK handles this case with default header values.
The updated branch restriction rule
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK() *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK creates a PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK with default headers values
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) Error ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) Error() string
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) GetPayload ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) GetPayload() *models.Branchrestriction
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams ¶
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams struct { /*Body The new version of the existing rule */ Body *models.Branchrestriction /*ID The restriction rule's id */ ID string /*RepoSlug This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. */ RepoSlug string /*Workspace This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. */ Workspace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams contains all the parameters to send to the API endpoint for the put repositories workspace repo slug branch restrictions ID operation typically these are written to a http.Request
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams() *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams creates a new PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized.
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext(ctx context.Context) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithContext creates a new PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a context for a request
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient(client *http.Client) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithHTTPClient creates a new PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout(timeout time.Duration) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParamsWithTimeout creates a new PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetBody ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetBody(body *models.Branchrestriction)
SetBody adds the body to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID(id string)
SetID adds the id to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug(repoSlug string)
SetRepoSlug adds the repoSlug to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace(workspace string)
SetWorkspace adds the workspace to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithBody ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithBody(body *models.Branchrestriction) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithBody adds the body to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext(ctx context.Context) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithContext adds the context to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient(client *http.Client) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithHTTPClient adds the HTTPClient to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID(id string) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithID adds the id to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug(repoSlug string) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithRepoSlug adds the repoSlug to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout(timeout time.Duration) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithTimeout adds the timeout to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace(workspace string) *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams
WithWorkspace adds the workspace to the put repositories workspace repo slug branch restrictions ID params
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader ¶
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader struct {
// contains filtered or unexported fields
}
PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader is a Reader for the PutRepositoriesWorkspaceRepoSlugBranchRestrictionsID structure.
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader) ReadResponse ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized ¶
type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized struct {
}PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized handles this case with default header values.
If the request was not authenticated
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized ¶
func NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized() *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized
NewPutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized creates a PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized with default headers values
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) Error ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) Error() string
func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload ¶
func (o *PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload() *models.Error
Source Files ¶
- branchrestrictions_client.go
- delete_repositories_workspace_repo_slug_branch_restrictions_id_parameters.go
- delete_repositories_workspace_repo_slug_branch_restrictions_id_responses.go
- get_repositories_workspace_repo_slug_branch_restrictions_id_parameters.go
- get_repositories_workspace_repo_slug_branch_restrictions_id_responses.go
- get_repositories_workspace_repo_slug_branch_restrictions_parameters.go
- get_repositories_workspace_repo_slug_branch_restrictions_responses.go
- post_repositories_workspace_repo_slug_branch_restrictions_parameters.go
- post_repositories_workspace_repo_slug_branch_restrictions_responses.go
- put_repositories_workspace_repo_slug_branch_restrictions_id_parameters.go
- put_repositories_workspace_repo_slug_branch_restrictions_id_responses.go