branchrestrictions

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsID Deletes an existing branch restriction rule.

func (*Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictions

GetRepositoriesWorkspaceRepoSlugBranchRestrictions Returns a paginated list of all branch restrictions on the

repository.

func (*Client) GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID

GetRepositoriesWorkspaceRepoSlugBranchRestrictionsID Returns a specific branch restriction rule.

func (*Client) PostRepositoriesWorkspaceRepoSlugBranchRestrictions

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`:

  1. `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.
  2. `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

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

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 (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload

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

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 (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload

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

SetContext adds the context to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID

SetID adds the id to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout

SetTimeout adds the timeout to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace

SetWorkspace adds the workspace to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext

WithContext adds the context to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID

WithID adds the id to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout

WithTimeout adds the timeout to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace

WithWorkspace adds the workspace to the delete repositories workspace repo slug branch restrictions ID params

func (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized

type DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized struct {
	Payload *models.Error
}

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 (*DeleteRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden struct {
	Payload *models.Error
}

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden struct {
	Payload *models.Error
}

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound struct {
	Payload *models.Error
}

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) GetPayload

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

SetContext adds the context to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID

SetID adds the id to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace

SetWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext

WithContext adds the context to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID

WithID adds the id to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions ID params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized struct {
	Payload *models.Error
}

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound

type GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound struct {
	Payload *models.Error
}

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) GetPayload

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsOK) GetPayload

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

SetContext adds the context to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetKind

SetKind adds the kind to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetPattern

SetPattern adds the pattern to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace

SetWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext

WithContext adds the context to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithKind

WithKind adds the kind to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithPattern

WithPattern adds the pattern to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug branch restrictions params

func (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest

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 {
	Payload *models.Error
}

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 (*GetRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) GetPayload

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 (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsCreated) GetPayload

type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden

type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden struct {
	Payload *models.Error
}

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 (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsForbidden) GetPayload

type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound

type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound struct {
	Payload *models.Error
}

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 (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsNotFound) GetPayload

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

SetBody adds the body to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetContext

SetContext adds the context to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetTimeout

SetTimeout adds the timeout to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) SetWorkspace

SetWorkspace adds the workspace to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithBody

WithBody adds the body to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithContext

WithContext adds the context to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithTimeout

WithTimeout adds the timeout to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WithWorkspace

WithWorkspace adds the workspace to the post repositories workspace repo slug branch restrictions params

func (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized

type PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized struct {
	Payload *models.Error
}

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 (*PostRepositoriesWorkspaceRepoSlugBranchRestrictionsUnauthorized) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden

type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden struct {
	Payload *models.Error
}

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 (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDForbidden) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound

type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound struct {
	Payload *models.Error
}

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 (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDNotFound) GetPayload

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 (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDOK) GetPayload

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

SetBody adds the body to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetContext

SetContext adds the context to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetID

SetID adds the id to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetTimeout

SetTimeout adds the timeout to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) SetWorkspace

SetWorkspace adds the workspace to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithBody

WithBody adds the body to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithContext

WithContext adds the context to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithID

WithID adds the id to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithTimeout

WithTimeout adds the timeout to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WithWorkspace

WithWorkspace adds the workspace to the put repositories workspace repo slug branch restrictions ID params

func (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized

type PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized struct {
	Payload *models.Error
}

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 (*PutRepositoriesWorkspaceRepoSlugBranchRestrictionsIDUnauthorized) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL