branching_model

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 branching model API

func (*Client) GetRepositoriesWorkspaceRepoSlugBranchingModel

GetRepositoriesWorkspaceRepoSlugBranchingModel Return the branching model as applied to the repository. This view is

read-only. The branching model settings can be changed using the [settings](branching-model/settings#get) API.

The returned object:

  1. Always has a `development` property. `development.branch` contains the actual repository branch object that is considered to be the `development` branch. `development.branch` will not be present if it does not exist.
  2. Might have a `production` property. `production` will not be present when `production` is disabled. `production.branch` contains the actual branch object that is considered to be the `production` branch. `production.branch` will not be present if it does not exist.
  3. Always has a `branch_types` array which contains all enabled branch types.

Example body:

```

{
  "development": {
    "name": "master",
    "branch": {
      "type": "branch",
      "name": "master",
      "target": {
        "hash": "16dffcb0de1b22e249db6799532074cf32efe80f"
      }
    },
    "use_mainbranch": true
  },
  "production": {
    "name": "production",
    "branch": {
      "type": "branch",
      "name": "production",
      "target": {
        "hash": "16dffcb0de1b22e249db6799532074cf32efe80f"
      }
    },
    "use_mainbranch": false
  },
  "branch_types": [
    {
      "kind": "release",
      "prefix": "release/"
    },
    {
      "kind": "hotfix",
      "prefix": "hotfix/"
    },
    {
      "kind": "feature",
      "prefix": "feature/"
    },
    {
      "kind": "bugfix",
      "prefix": "bugfix/"
    }
  ],
  "type": "branching_model",
  "links": {
    "self": {
      "href": "https://api.bitbucket.org/.../branching-model"
    }
  }
}

```

func (*Client) GetRepositoriesWorkspaceRepoSlugBranchingModelSettings

GetRepositoriesWorkspaceRepoSlugBranchingModelSettings Return the branching model configuration for a repository. The returned

object:

  1. Always has a `development` property for the development branch.
  2. Always a `production` property for the production branch. The production branch can be disabled.
  3. The `branch_types` contains all the branch types.

This is the raw configuration for the branching model. A client wishing to see the branching model with its actual current branches may find the [active model API](../branching-model#get) more useful.

Example body:

```

{
  "development": {
    "is_valid": true,
    "name": null,
    "use_mainbranch": true
  },
  "production": {
    "is_valid": true,
    "name": "production",
    "use_mainbranch": false,
    "enabled": false
  },
  "branch_types": [
    {
      "kind": "release",
      "enabled": true,
      "prefix": "release/"
    },
    {
      "kind": "hotfix",
      "enabled": true,
      "prefix": "hotfix/"
    },
    {
      "kind": "feature",
      "enabled": true,
      "prefix": "feature/"
    },
    {
      "kind": "bugfix",
      "enabled": false,
      "prefix": "bugfix/"
    }
  ],
  "type": "branching_model_settings",
  "links": {
    "self": {
      "href": "https://api.bitbucket.org/.../branching-model/settings"
    }
  }
}

```

func (*Client) PutRepositoriesWorkspaceRepoSlugBranchingModelSettings

PutRepositoriesWorkspaceRepoSlugBranchingModelSettings Update the branching model configuration for a repository.

The `development` branch can be configured to a specific branch or to track the main branch. When set to a specific branch it must currently exist. Only the passed properties will be updated. The properties not passed will be left unchanged. A request without a `development` property will leave the development branch unchanged.

It is possible for the `development` branch to be invalid. This happens when it points at a specific branch that has been deleted. This is indicated in the `is_valid` field for the branch. It is not possible to update the settings for `development` if that would leave the branch in an invalid state. Such a request will be rejected.

The `production` branch can be a specific branch, the main branch or disabled. When set to a specific branch it must currently exist. The `enabled` property can be used to enable (`true`) or disable (`false`) it. Only the passed properties will be updated. The properties not passed will be left unchanged. A request without a `production` property will leave the production branch unchanged.

It is possible for the `production` branch to be invalid. This happens when it points at a specific branch that has been deleted. This is indicated in the `is_valid` field for the branch. A request that would leave `production` enabled and invalid will be rejected. It is possible to update `production` and make it invalid if it would also be left disabled.

The `branch_types` property contains the branch types to be updated. Only the branch types passed will be updated. All updates will be rejected if it would leave the branching model in an invalid state. For branch types this means that:

  1. The prefixes for all enabled branch types are valid. For example, it is not possible to use '*' inside a Git prefix.
  2. A prefix of an enabled branch type must not be a prefix of another enabled branch type. This is to ensure that a branch can be easily classified by its prefix unambiguously.

It is possible to store an invalid prefix if that branch type would be left disabled. Only the passed properties will be updated. The properties not passed will be left unchanged. Each branch type must have a `kind` property to identify it.

Example Body:

```

{
  "development": {
    "use_mainbranch": true
  },
  "production": {
    "enabled": true,
    "use_mainbranch": false,
    "name": "production"
  },
  "branch_types": [
    {
      "kind": "bugfix",
      "enabled": true,
      "prefix": "bugfix/"
    },
    {
      "kind": "feature",
      "enabled": true,
      "prefix": "feature/"
    },
    {
      "kind": "hotfix",
      "prefix": "hotfix/"
    },
    {
      "kind": "release",
      "enabled": false,
    }
  ]
}

```

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetRepositoriesWorkspaceRepoSlugBranchingModel(params *GetRepositoriesWorkspaceRepoSlugBranchingModelParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesWorkspaceRepoSlugBranchingModelOK, error)

	GetRepositoriesWorkspaceRepoSlugBranchingModelSettings(params *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK, error)

	PutRepositoriesWorkspaceRepoSlugBranchingModelSettings(params *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK, 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 branching model API client.

type GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden

type GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden handles this case with default header values.

If the authenticated user does not have read access to the repository

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelForbidden

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelForbidden() *GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden

NewGetRepositoriesWorkspaceRepoSlugBranchingModelForbidden creates a GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelForbidden) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound

type GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound handles this case with default header values.

If the repository does not exist

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelNotFound

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelNotFound() *GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound

NewGetRepositoriesWorkspaceRepoSlugBranchingModelNotFound creates a GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelNotFound) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelOK

type GetRepositoriesWorkspaceRepoSlugBranchingModelOK struct {
	Payload *models.BranchingModel
}

GetRepositoriesWorkspaceRepoSlugBranchingModelOK handles this case with default header values.

The branching model object

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelOK

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelOK() *GetRepositoriesWorkspaceRepoSlugBranchingModelOK

NewGetRepositoriesWorkspaceRepoSlugBranchingModelOK creates a GetRepositoriesWorkspaceRepoSlugBranchingModelOK with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelOK) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelOK) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelParams

type GetRepositoriesWorkspaceRepoSlugBranchingModelParams struct {

	/*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
}

GetRepositoriesWorkspaceRepoSlugBranchingModelParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug branching model operation typically these are written to a http.Request

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParams

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParams() *GetRepositoriesWorkspaceRepoSlugBranchingModelParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelParams creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelParams object with the default values initialized.

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithContext

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchingModelParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithContext creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelParams object with the default values initialized, and the ability to set a context for a request

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithHTTPClient

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchingModelParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithHTTPClient creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithTimeout

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchingModelParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelParamsWithTimeout creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) SetContext

SetContext adds the context to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) SetWorkspace

SetWorkspace adds the workspace to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) WithContext

WithContext adds the context to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug branching model params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesWorkspaceRepoSlugBranchingModelReader

type GetRepositoriesWorkspaceRepoSlugBranchingModelReader struct {
	// contains filtered or unexported fields
}

GetRepositoriesWorkspaceRepoSlugBranchingModelReader is a Reader for the GetRepositoriesWorkspaceRepoSlugBranchingModel structure.

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelReader) ReadResponse

func (o *GetRepositoriesWorkspaceRepoSlugBranchingModelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden handles this case with default header values.

If the authenticated user does not have admin access to the repository

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden() *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden creates a GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound handles this case with default header values.

If the repository does not exist

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound() *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound creates a GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK struct {
	Payload *models.BranchingModelSettings
}

GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK handles this case with default header values.

The branching model configuration

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK() *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK creates a GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams struct {

	/*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
}

GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams contains all the parameters to send to the API endpoint for the get repositories workspace repo slug branching model settings operation typically these are written to a http.Request

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams() *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized.

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithContext

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithContext(ctx context.Context) *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithContext creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized, and the ability to set a context for a request

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithHTTPClient

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithHTTPClient(client *http.Client) *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithHTTPClient creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithTimeout

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithTimeout(timeout time.Duration) *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithTimeout creates a new GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetContext

SetContext adds the context to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetTimeout

SetTimeout adds the timeout to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetWorkspace

SetWorkspace adds the workspace to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithContext

WithContext adds the context to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithTimeout

WithTimeout adds the timeout to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithWorkspace

WithWorkspace adds the workspace to the get repositories workspace repo slug branching model settings params

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader struct {
	// contains filtered or unexported fields
}

GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader is a Reader for the GetRepositoriesWorkspaceRepoSlugBranchingModelSettings structure.

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized

type GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized handles this case with default header values.

If the request was not authenticated

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized() *GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized

NewGetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized creates a GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized) GetPayload

type GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized

type GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized struct {
	Payload *models.Error
}

GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized handles this case with default header values.

If the request was not authenticated

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized

func NewGetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized() *GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized

NewGetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized creates a GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized with default headers values

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized) Error

func (*GetRepositoriesWorkspaceRepoSlugBranchingModelUnauthorized) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest struct {
	Payload *models.Error
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest handles this case with default header values.

If the request contains invalid branching model configuration

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest() *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest creates a PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest with default headers values

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest) Error

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsBadRequest) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden struct {
	Payload *models.Error
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden handles this case with default header values.

If the authenticated user does not have admin access to the repository

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden() *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden creates a PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden with default headers values

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden) Error

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsForbidden) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound struct {
	Payload *models.Error
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound handles this case with default header values.

If the repository does not exist

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound() *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound creates a PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound with default headers values

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound) Error

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsNotFound) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK struct {
	Payload *models.BranchingModelSettings
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK handles this case with default header values.

The updated branching model configuration

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK() *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK creates a PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK with default headers values

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK) Error

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsOK) GetPayload

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams struct {

	/*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
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams contains all the parameters to send to the API endpoint for the put repositories workspace repo slug branching model settings operation typically these are written to a http.Request

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams() *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams creates a new PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized.

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithContext

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithContext(ctx context.Context) *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithContext creates a new PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized, and the ability to set a context for a request

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithHTTPClient

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithHTTPClient(client *http.Client) *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithHTTPClient creates a new PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithTimeout

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithTimeout(timeout time.Duration) *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParamsWithTimeout creates a new PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetContext

SetContext adds the context to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetRepoSlug

SetRepoSlug adds the repoSlug to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetTimeout

SetTimeout adds the timeout to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) SetWorkspace

SetWorkspace adds the workspace to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithContext

WithContext adds the context to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithRepoSlug

WithRepoSlug adds the repoSlug to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithTimeout

WithTimeout adds the timeout to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WithWorkspace

WithWorkspace adds the workspace to the put repositories workspace repo slug branching model settings params

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader struct {
	// contains filtered or unexported fields
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader is a Reader for the PutRepositoriesWorkspaceRepoSlugBranchingModelSettings structure.

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsReader) ReadResponse

ReadResponse reads a server response into the received o.

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized

type PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized struct {
	Payload *models.Error
}

PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized handles this case with default header values.

If the request was not authenticated

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized

func NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized() *PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized

NewPutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized creates a PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized with default headers values

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized) Error

func (*PutRepositoriesWorkspaceRepoSlugBranchingModelSettingsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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