kubernetes_git_ops

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 14 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 kubernetes git ops API

func (*Client) CreateGitRepo

CreateGitRepo creates a new git repo configuration

Create a new GitRepo configuration to enable continuous deployment from a Git repository. This allows automatic synchronization of Kubernetes manifests or Helm charts from a Git repository to target clusters.

**Example Request:** ```json

{
  "metadata": {
    "name": "app-manifests",
    "title": "Application Manifests Repository",
    "description": "Git repository containing production application manifests"
  },
  "data": {
    "project_id": "proj-12345",
    "repo_details": {
      "url": "https://github.com/myorg/k8s-manifests.git",
      "branch": "main",
      "path_list": ["applications/", "ingress/"]
    },
    "auth": {
      "git": {
        "secret": {
          "type": "SECRET_TYPE_OPAQUE",
          "name": "git-credentials"
        }
      }
    },
    "target": {
      "type": "GIT_REPO_TARGET_TYPE_CLUSTER",
      "value": "cluster-abc123"
    }
  }
}

```

**Example Response:** ```json

{
  "operationType": "OPS_TYPE_UNSPECIFIED",
  "operationStatus": "OPS_STATUS_UNSPECIFIED",
  "objectKind": "",
  "objectId": "gitrepo-abc123",
  "objectName": "app-manifests",
  "objectRevision": "",
  "objectType": "OBJECT_TYPE_UNSPECIFIED",
  "operationTime": "",
  "startTime": "",
  "endTime": "",
  "user": "",
  "httpStatusCode": 201,
  "httpStatusMsg": "",
  "jobId": "",
  "error": [
    {
      "ec": "zMsgSucess",
      "location": "",
      "details": ""
    }
  ]
}

```

func (*Client) DeleteGitRepo

func (a *Client) DeleteGitRepo(params *DeleteGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGitRepoOK, error)
DeleteGitRepo deletes git repo configuration

Delete a GitRepo configuration. This will stop the synchronization from the Git repository and remove all associated resources from the target clusters. This action is irreversible.

**Example Request:** ``` DELETE /v1/cluster/instances/kubernetes/gitrepos/id/gitrepo-abc123 ```

**Example Response:** ```json

{
  "operationType": "OPS_TYPE_UNSPECIFIED",
  "operationStatus": "OPS_STATUS_UNSPECIFIED",
  "objectKind": "",
  "objectId": "gitrepo-abc123",
  "objectName": "app-manifests",
  "objectRevision": "",
  "objectType": "OBJECT_TYPE_UNSPECIFIED",
  "operationTime": "",
  "startTime": "",
  "endTime": "",
  "user": "",
  "httpStatusCode": 200,
  "httpStatusMsg": "",
  "jobId": "",
  "error": [
    {
      "ec": "zMsgSucess",
      "location": "",
      "details": ""
    }
  ]
}

```

**Warning:** This operation will remove the GitRepo configuration and stop synchronization. All resources deployed through this GitRepo will be removed from target clusters.

**Note:** The gitrepo_id parameter is **required** and must be a valid GitRepo identifier.

func (*Client) GetGitRepo

func (a *Client) GetGitRepo(params *GetGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGitRepoOK, error)
GetGitRepo gets git repo configuration by ID

Retrieve detailed information about a specific GitRepo configuration including its current status, sync information, and metadata.

**Example Request:** ``` GET /v1/cluster/instances/kubernetes/gitrepos/id/gitrepo-abc123 ```

**Example Response:** ```json

{
  "id": "gitrepo-abc123",
  "name": "app-manifests",
  "title": "Application Manifests Repository",
  "description": "Git repository containing production application manifests",
  "workspace": "default",
  "data": {
    "project_id": "proj-12345",
    "repo_details": {
      "url": "https://github.com/myorg/k8s-manifests.git",
      "branch": "main",
      "commit": "a1b2c3d4e5f6",
      "path_list": ["applications/", "ingress/"]
    },
    "target": {
      "type": "GIT_REPO_TARGET_TYPE_CLUSTER",
      "value": "cluster-abc123"
    }
  },
  "status": {
    "display": {
      "ready_bundle_deployments": "3/3",
      "state": "Active"
    },
    "conditions": [
      {
        "type": "Ready",
        "status": "True",
        "message": "GitRepo is ready and syncing"
      }
    ],
    "resource_counts": {
      "ready": 3,
      "desired_ready": 3
    }
  },
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T11:00:00Z",
  "created_by": "user@example.com",
  "updated_by": "user@example.com"
}

```

func (*Client) ListGitRepos

func (a *Client) ListGitRepos(params *ListGitReposParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGitReposOK, error)
ListGitRepos lists all git repo configurations

Retrieve a list of all GitRepo configurations with their status and summary information. Includes statistics about sync status and resource counts.

**Example Request:** ``` GET /v1/cluster/instances/kubernetes/gitrepos ```

**Example Response:** ```json

{
  "totalCount": 2,
  "stateSummary": {
    "description": "GitRepo Status Summary",
    "total": 2,
    "values": {
      "Active": 1,
      "Pending": 1
    }
  },
  "gitrepos": [
    {
      "id": "gitrepo-abc123",
      "name": "app-manifests",
      "title": "Application Manifests Repository",
      "description": "Git repository containing production application manifests",
      "workspace": "default",
      "status": {
        "display": {
          "ready_bundle_deployments": "3/3",
          "state": "Active"
        }
      },
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T11:00:00Z"
    },
    {
      "id": "gitrepo-def456",
      "name": "helm-charts",
      "title": "Helm Charts Repository",
      "description": "Repository containing Helm chart definitions",
      "workspace": "default",
      "status": {
        "display": {
          "ready_bundle_deployments": "0/2",
          "state": "Pending"
        }
      },
      "created_at": "2024-01-14T15:20:00Z",
      "updated_at": "2024-01-14T15:25:00Z"
    }
  ]
}

```

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateGitRepo

func (a *Client) UpdateGitRepo(params *UpdateGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGitRepoOK, error)
UpdateGitRepo updates git repo configuration

Update an existing GitRepo configuration. This allows modification of repository details, authentication settings, and target configuration. The GitRepo name cannot be changed after creation.

**Example Request:** ```json

{
  "gitrepo_id": "gitrepo-abc123",
  "metadata": {
    "name": "app-manifests",
    "title": "Updated Application Manifests Repository",
    "description": "Updated Git repository containing production application manifests"
  },
  "data": {
    "project_id": "proj-12345",
    "repo_details": {
      "url": "https://github.com/myorg/k8s-manifests.git",
      "branch": "production",
      "path_list": ["applications/", "ingress/", "monitoring/"]
    },
    "auth": {
      "git": {
        "secret": {
          "type": "SECRET_TYPE_OPAQUE",
          "name": "updated-git-credentials"
        }
      }
    },
    "target": {
      "type": "GIT_REPO_TARGET_TYPE_CLUSTER_GROUP",
      "value": "production-clusters"
    }
  }
}

```

**Example Response:** ```json

{
  "operationType": "OPS_TYPE_UNSPECIFIED",
  "operationStatus": "OPS_STATUS_UNSPECIFIED",
  "objectKind": "",
  "objectId": "gitrepo-abc123",
  "objectName": "app-manifests",
  "objectRevision": "",
  "objectType": "OBJECT_TYPE_UNSPECIFIED",
  "operationTime": "",
  "startTime": "",
  "endTime": "",
  "user": "",
  "httpStatusCode": 200,
  "httpStatusMsg": "",
  "jobId": "",
  "error": [
    {
      "ec": "zMsgSucess",
      "location": "",
      "details": ""
    }
  ]
}

```

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateGitRepo(params *CreateGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGitRepoOK, *CreateGitRepoCreated, error)

	DeleteGitRepo(params *DeleteGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGitRepoOK, error)

	GetGitRepo(params *GetGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGitRepoOK, error)

	ListGitRepos(params *ListGitReposParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGitReposOK, error)

	UpdateGitRepo(params *UpdateGitRepoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGitRepoOK, 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 kubernetes git ops API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new kubernetes git ops API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new kubernetes git ops API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateGitRepoBadRequest

type CreateGitRepoBadRequest struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoBadRequest describes a response with status code 400, with default header values.

Bad Request. Invalid GitRepo configuration or missing required fields.

func NewCreateGitRepoBadRequest

func NewCreateGitRepoBadRequest() *CreateGitRepoBadRequest

NewCreateGitRepoBadRequest creates a CreateGitRepoBadRequest with default headers values

func (*CreateGitRepoBadRequest) Code

func (o *CreateGitRepoBadRequest) Code() int

Code gets the status code for the kubernetes git ops create git repo bad request response

func (*CreateGitRepoBadRequest) Error

func (o *CreateGitRepoBadRequest) Error() string

func (*CreateGitRepoBadRequest) GetPayload

func (o *CreateGitRepoBadRequest) GetPayload() *models.ZsrvResponse

func (*CreateGitRepoBadRequest) IsClientError

func (o *CreateGitRepoBadRequest) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo bad request response has a 4xx status code

func (*CreateGitRepoBadRequest) IsCode

func (o *CreateGitRepoBadRequest) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo bad request response a status code equal to that given

func (*CreateGitRepoBadRequest) IsRedirect

func (o *CreateGitRepoBadRequest) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo bad request response has a 3xx status code

func (*CreateGitRepoBadRequest) IsServerError

func (o *CreateGitRepoBadRequest) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo bad request response has a 5xx status code

func (*CreateGitRepoBadRequest) IsSuccess

func (o *CreateGitRepoBadRequest) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo bad request response has a 2xx status code

func (*CreateGitRepoBadRequest) String

func (o *CreateGitRepoBadRequest) String() string

type CreateGitRepoConflict

type CreateGitRepoConflict struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoConflict describes a response with status code 409, with default header values.

Conflict. GitRepo configuration with the same name already exists.

func NewCreateGitRepoConflict

func NewCreateGitRepoConflict() *CreateGitRepoConflict

NewCreateGitRepoConflict creates a CreateGitRepoConflict with default headers values

func (*CreateGitRepoConflict) Code

func (o *CreateGitRepoConflict) Code() int

Code gets the status code for the kubernetes git ops create git repo conflict response

func (*CreateGitRepoConflict) Error

func (o *CreateGitRepoConflict) Error() string

func (*CreateGitRepoConflict) GetPayload

func (o *CreateGitRepoConflict) GetPayload() *models.ZsrvResponse

func (*CreateGitRepoConflict) IsClientError

func (o *CreateGitRepoConflict) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo conflict response has a 4xx status code

func (*CreateGitRepoConflict) IsCode

func (o *CreateGitRepoConflict) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo conflict response a status code equal to that given

func (*CreateGitRepoConflict) IsRedirect

func (o *CreateGitRepoConflict) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo conflict response has a 3xx status code

func (*CreateGitRepoConflict) IsServerError

func (o *CreateGitRepoConflict) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo conflict response has a 5xx status code

func (*CreateGitRepoConflict) IsSuccess

func (o *CreateGitRepoConflict) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo conflict response has a 2xx status code

func (*CreateGitRepoConflict) String

func (o *CreateGitRepoConflict) String() string

type CreateGitRepoCreated

type CreateGitRepoCreated struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoCreated describes a response with status code 201, with default header values.

Successfully created GitRepo configuration

func NewCreateGitRepoCreated

func NewCreateGitRepoCreated() *CreateGitRepoCreated

NewCreateGitRepoCreated creates a CreateGitRepoCreated with default headers values

func (*CreateGitRepoCreated) Code

func (o *CreateGitRepoCreated) Code() int

Code gets the status code for the kubernetes git ops create git repo created response

func (*CreateGitRepoCreated) Error

func (o *CreateGitRepoCreated) Error() string

func (*CreateGitRepoCreated) GetPayload

func (o *CreateGitRepoCreated) GetPayload() *models.ZsrvResponse

func (*CreateGitRepoCreated) IsClientError

func (o *CreateGitRepoCreated) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo created response has a 4xx status code

func (*CreateGitRepoCreated) IsCode

func (o *CreateGitRepoCreated) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo created response a status code equal to that given

func (*CreateGitRepoCreated) IsRedirect

func (o *CreateGitRepoCreated) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo created response has a 3xx status code

func (*CreateGitRepoCreated) IsServerError

func (o *CreateGitRepoCreated) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo created response has a 5xx status code

func (*CreateGitRepoCreated) IsSuccess

func (o *CreateGitRepoCreated) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo created response has a 2xx status code

func (*CreateGitRepoCreated) String

func (o *CreateGitRepoCreated) String() string

type CreateGitRepoDefault

type CreateGitRepoDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

CreateGitRepoDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCreateGitRepoDefault

func NewCreateGitRepoDefault(code int) *CreateGitRepoDefault

NewCreateGitRepoDefault creates a CreateGitRepoDefault with default headers values

func (*CreateGitRepoDefault) Code

func (o *CreateGitRepoDefault) Code() int

Code gets the status code for the kubernetes git ops create git repo default response

func (*CreateGitRepoDefault) Error

func (o *CreateGitRepoDefault) Error() string

func (*CreateGitRepoDefault) GetPayload

func (o *CreateGitRepoDefault) GetPayload() *models.GooglerpcStatus

func (*CreateGitRepoDefault) IsClientError

func (o *CreateGitRepoDefault) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo default response has a 4xx status code

func (*CreateGitRepoDefault) IsCode

func (o *CreateGitRepoDefault) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo default response a status code equal to that given

func (*CreateGitRepoDefault) IsRedirect

func (o *CreateGitRepoDefault) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo default response has a 3xx status code

func (*CreateGitRepoDefault) IsServerError

func (o *CreateGitRepoDefault) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo default response has a 5xx status code

func (*CreateGitRepoDefault) IsSuccess

func (o *CreateGitRepoDefault) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo default response has a 2xx status code

func (*CreateGitRepoDefault) String

func (o *CreateGitRepoDefault) String() string

type CreateGitRepoForbidden

type CreateGitRepoForbidden struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoForbidden describes a response with status code 403, with default header values.

Forbidden. User does not have permission to create GitRepo configurations.

func NewCreateGitRepoForbidden

func NewCreateGitRepoForbidden() *CreateGitRepoForbidden

NewCreateGitRepoForbidden creates a CreateGitRepoForbidden with default headers values

func (*CreateGitRepoForbidden) Code

func (o *CreateGitRepoForbidden) Code() int

Code gets the status code for the kubernetes git ops create git repo forbidden response

func (*CreateGitRepoForbidden) Error

func (o *CreateGitRepoForbidden) Error() string

func (*CreateGitRepoForbidden) GetPayload

func (o *CreateGitRepoForbidden) GetPayload() *models.ZsrvResponse

func (*CreateGitRepoForbidden) IsClientError

func (o *CreateGitRepoForbidden) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo forbidden response has a 4xx status code

func (*CreateGitRepoForbidden) IsCode

func (o *CreateGitRepoForbidden) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo forbidden response a status code equal to that given

func (*CreateGitRepoForbidden) IsRedirect

func (o *CreateGitRepoForbidden) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo forbidden response has a 3xx status code

func (*CreateGitRepoForbidden) IsServerError

func (o *CreateGitRepoForbidden) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo forbidden response has a 5xx status code

func (*CreateGitRepoForbidden) IsSuccess

func (o *CreateGitRepoForbidden) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo forbidden response has a 2xx status code

func (*CreateGitRepoForbidden) String

func (o *CreateGitRepoForbidden) String() string

type CreateGitRepoInternalServerError

type CreateGitRepoInternalServerError struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoInternalServerError describes a response with status code 500, with default header values.

Internal Server Error. Failed to create GitRepo configuration due to server error.

func NewCreateGitRepoInternalServerError

func NewCreateGitRepoInternalServerError() *CreateGitRepoInternalServerError

NewCreateGitRepoInternalServerError creates a CreateGitRepoInternalServerError with default headers values

func (*CreateGitRepoInternalServerError) Code

Code gets the status code for the kubernetes git ops create git repo internal server error response

func (*CreateGitRepoInternalServerError) Error

func (*CreateGitRepoInternalServerError) GetPayload

func (*CreateGitRepoInternalServerError) IsClientError

func (o *CreateGitRepoInternalServerError) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo internal server error response has a 4xx status code

func (*CreateGitRepoInternalServerError) IsCode

func (o *CreateGitRepoInternalServerError) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo internal server error response a status code equal to that given

func (*CreateGitRepoInternalServerError) IsRedirect

func (o *CreateGitRepoInternalServerError) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo internal server error response has a 3xx status code

func (*CreateGitRepoInternalServerError) IsServerError

func (o *CreateGitRepoInternalServerError) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo internal server error response has a 5xx status code

func (*CreateGitRepoInternalServerError) IsSuccess

func (o *CreateGitRepoInternalServerError) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo internal server error response has a 2xx status code

func (*CreateGitRepoInternalServerError) String

type CreateGitRepoOK

type CreateGitRepoOK struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoOK describes a response with status code 200, with default header values.

A successful response.

func NewCreateGitRepoOK

func NewCreateGitRepoOK() *CreateGitRepoOK

NewCreateGitRepoOK creates a CreateGitRepoOK with default headers values

func (*CreateGitRepoOK) Code

func (o *CreateGitRepoOK) Code() int

Code gets the status code for the kubernetes git ops create git repo o k response

func (*CreateGitRepoOK) Error

func (o *CreateGitRepoOK) Error() string

func (*CreateGitRepoOK) GetPayload

func (o *CreateGitRepoOK) GetPayload() *models.ZsrvResponse

func (*CreateGitRepoOK) IsClientError

func (o *CreateGitRepoOK) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo o k response has a 4xx status code

func (*CreateGitRepoOK) IsCode

func (o *CreateGitRepoOK) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo o k response a status code equal to that given

func (*CreateGitRepoOK) IsRedirect

func (o *CreateGitRepoOK) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo o k response has a 3xx status code

func (*CreateGitRepoOK) IsServerError

func (o *CreateGitRepoOK) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo o k response has a 5xx status code

func (*CreateGitRepoOK) IsSuccess

func (o *CreateGitRepoOK) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo o k response has a 2xx status code

func (*CreateGitRepoOK) String

func (o *CreateGitRepoOK) String() string

type CreateGitRepoParams

type CreateGitRepoParams struct {

	/* XRequestID.

	   User-Agent specified id to track a request
	*/
	XRequestID *string

	// Body.
	Body *models.GitRepoRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateGitRepoParams contains all the parameters to send to the API endpoint

for the kubernetes git ops create git repo operation.

Typically these are written to a http.Request.

func NewCreateGitRepoParams

func NewCreateGitRepoParams() *CreateGitRepoParams

NewCreateGitRepoParams creates a new CreateGitRepoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateGitRepoParamsWithContext

func NewCreateGitRepoParamsWithContext(ctx context.Context) *CreateGitRepoParams

NewCreateGitRepoParamsWithContext creates a new CreateGitRepoParams object with the ability to set a context for a request.

func NewCreateGitRepoParamsWithHTTPClient

func NewCreateGitRepoParamsWithHTTPClient(client *http.Client) *CreateGitRepoParams

NewCreateGitRepoParamsWithHTTPClient creates a new CreateGitRepoParams object with the ability to set a custom HTTPClient for a request.

func NewCreateGitRepoParamsWithTimeout

func NewCreateGitRepoParamsWithTimeout(timeout time.Duration) *CreateGitRepoParams

NewCreateGitRepoParamsWithTimeout creates a new CreateGitRepoParams object with the ability to set a timeout on a request.

func (*CreateGitRepoParams) SetBody

func (o *CreateGitRepoParams) SetBody(body *models.GitRepoRequest)

SetBody adds the body to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) SetContext

func (o *CreateGitRepoParams) SetContext(ctx context.Context)

SetContext adds the context to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) SetDefaults

func (o *CreateGitRepoParams) SetDefaults()

SetDefaults hydrates default values in the kubernetes git ops create git repo params (not the query body).

All values with no default are reset to their zero value.

func (*CreateGitRepoParams) SetHTTPClient

func (o *CreateGitRepoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) SetTimeout

func (o *CreateGitRepoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) SetXRequestID

func (o *CreateGitRepoParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) WithBody

WithBody adds the body to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) WithContext

WithContext adds the context to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) WithDefaults

func (o *CreateGitRepoParams) WithDefaults() *CreateGitRepoParams

WithDefaults hydrates default values in the kubernetes git ops create git repo params (not the query body).

All values with no default are reset to their zero value.

func (*CreateGitRepoParams) WithHTTPClient

func (o *CreateGitRepoParams) WithHTTPClient(client *http.Client) *CreateGitRepoParams

WithHTTPClient adds the HTTPClient to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) WithTimeout

func (o *CreateGitRepoParams) WithTimeout(timeout time.Duration) *CreateGitRepoParams

WithTimeout adds the timeout to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) WithXRequestID

func (o *CreateGitRepoParams) WithXRequestID(xRequestID *string) *CreateGitRepoParams

WithXRequestID adds the xRequestID to the kubernetes git ops create git repo params

func (*CreateGitRepoParams) WriteToRequest

func (o *CreateGitRepoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateGitRepoReader

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

CreateGitRepoReader is a Reader for the CreateGitRepo structure.

func (*CreateGitRepoReader) ReadResponse

func (o *CreateGitRepoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type CreateGitRepoUnauthorized

type CreateGitRepoUnauthorized struct {
	Payload *models.ZsrvResponse
}

CreateGitRepoUnauthorized describes a response with status code 401, with default header values.

Unauthorized. Authentication credentials are missing or invalid.

func NewCreateGitRepoUnauthorized

func NewCreateGitRepoUnauthorized() *CreateGitRepoUnauthorized

NewCreateGitRepoUnauthorized creates a CreateGitRepoUnauthorized with default headers values

func (*CreateGitRepoUnauthorized) Code

func (o *CreateGitRepoUnauthorized) Code() int

Code gets the status code for the kubernetes git ops create git repo unauthorized response

func (*CreateGitRepoUnauthorized) Error

func (o *CreateGitRepoUnauthorized) Error() string

func (*CreateGitRepoUnauthorized) GetPayload

func (*CreateGitRepoUnauthorized) IsClientError

func (o *CreateGitRepoUnauthorized) IsClientError() bool

IsClientError returns true when this kubernetes git ops create git repo unauthorized response has a 4xx status code

func (*CreateGitRepoUnauthorized) IsCode

func (o *CreateGitRepoUnauthorized) IsCode(code int) bool

IsCode returns true when this kubernetes git ops create git repo unauthorized response a status code equal to that given

func (*CreateGitRepoUnauthorized) IsRedirect

func (o *CreateGitRepoUnauthorized) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops create git repo unauthorized response has a 3xx status code

func (*CreateGitRepoUnauthorized) IsServerError

func (o *CreateGitRepoUnauthorized) IsServerError() bool

IsServerError returns true when this kubernetes git ops create git repo unauthorized response has a 5xx status code

func (*CreateGitRepoUnauthorized) IsSuccess

func (o *CreateGitRepoUnauthorized) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops create git repo unauthorized response has a 2xx status code

func (*CreateGitRepoUnauthorized) String

func (o *CreateGitRepoUnauthorized) String() string

type DeleteGitRepoBadRequest

type DeleteGitRepoBadRequest struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoBadRequest describes a response with status code 400, with default header values.

Bad Request. Invalid GitRepo ID format.

func NewDeleteGitRepoBadRequest

func NewDeleteGitRepoBadRequest() *DeleteGitRepoBadRequest

NewDeleteGitRepoBadRequest creates a DeleteGitRepoBadRequest with default headers values

func (*DeleteGitRepoBadRequest) Code

func (o *DeleteGitRepoBadRequest) Code() int

Code gets the status code for the kubernetes git ops delete git repo bad request response

func (*DeleteGitRepoBadRequest) Error

func (o *DeleteGitRepoBadRequest) Error() string

func (*DeleteGitRepoBadRequest) GetPayload

func (o *DeleteGitRepoBadRequest) GetPayload() *models.ZsrvResponse

func (*DeleteGitRepoBadRequest) IsClientError

func (o *DeleteGitRepoBadRequest) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo bad request response has a 4xx status code

func (*DeleteGitRepoBadRequest) IsCode

func (o *DeleteGitRepoBadRequest) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo bad request response a status code equal to that given

func (*DeleteGitRepoBadRequest) IsRedirect

func (o *DeleteGitRepoBadRequest) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo bad request response has a 3xx status code

func (*DeleteGitRepoBadRequest) IsServerError

func (o *DeleteGitRepoBadRequest) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo bad request response has a 5xx status code

func (*DeleteGitRepoBadRequest) IsSuccess

func (o *DeleteGitRepoBadRequest) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo bad request response has a 2xx status code

func (*DeleteGitRepoBadRequest) String

func (o *DeleteGitRepoBadRequest) String() string

type DeleteGitRepoConflict

type DeleteGitRepoConflict struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoConflict describes a response with status code 409, with default header values.

Conflict. Cannot delete GitRepo configuration because it is currently in use or in a transitioning state.

func NewDeleteGitRepoConflict

func NewDeleteGitRepoConflict() *DeleteGitRepoConflict

NewDeleteGitRepoConflict creates a DeleteGitRepoConflict with default headers values

func (*DeleteGitRepoConflict) Code

func (o *DeleteGitRepoConflict) Code() int

Code gets the status code for the kubernetes git ops delete git repo conflict response

func (*DeleteGitRepoConflict) Error

func (o *DeleteGitRepoConflict) Error() string

func (*DeleteGitRepoConflict) GetPayload

func (o *DeleteGitRepoConflict) GetPayload() *models.ZsrvResponse

func (*DeleteGitRepoConflict) IsClientError

func (o *DeleteGitRepoConflict) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo conflict response has a 4xx status code

func (*DeleteGitRepoConflict) IsCode

func (o *DeleteGitRepoConflict) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo conflict response a status code equal to that given

func (*DeleteGitRepoConflict) IsRedirect

func (o *DeleteGitRepoConflict) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo conflict response has a 3xx status code

func (*DeleteGitRepoConflict) IsServerError

func (o *DeleteGitRepoConflict) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo conflict response has a 5xx status code

func (*DeleteGitRepoConflict) IsSuccess

func (o *DeleteGitRepoConflict) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo conflict response has a 2xx status code

func (*DeleteGitRepoConflict) String

func (o *DeleteGitRepoConflict) String() string

type DeleteGitRepoDefault

type DeleteGitRepoDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

DeleteGitRepoDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDeleteGitRepoDefault

func NewDeleteGitRepoDefault(code int) *DeleteGitRepoDefault

NewDeleteGitRepoDefault creates a DeleteGitRepoDefault with default headers values

func (*DeleteGitRepoDefault) Code

func (o *DeleteGitRepoDefault) Code() int

Code gets the status code for the kubernetes git ops delete git repo default response

func (*DeleteGitRepoDefault) Error

func (o *DeleteGitRepoDefault) Error() string

func (*DeleteGitRepoDefault) GetPayload

func (o *DeleteGitRepoDefault) GetPayload() *models.GooglerpcStatus

func (*DeleteGitRepoDefault) IsClientError

func (o *DeleteGitRepoDefault) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo default response has a 4xx status code

func (*DeleteGitRepoDefault) IsCode

func (o *DeleteGitRepoDefault) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo default response a status code equal to that given

func (*DeleteGitRepoDefault) IsRedirect

func (o *DeleteGitRepoDefault) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo default response has a 3xx status code

func (*DeleteGitRepoDefault) IsServerError

func (o *DeleteGitRepoDefault) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo default response has a 5xx status code

func (*DeleteGitRepoDefault) IsSuccess

func (o *DeleteGitRepoDefault) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo default response has a 2xx status code

func (*DeleteGitRepoDefault) String

func (o *DeleteGitRepoDefault) String() string

type DeleteGitRepoForbidden

type DeleteGitRepoForbidden struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoForbidden describes a response with status code 403, with default header values.

Forbidden. User does not have permission to delete this GitRepo configuration.

func NewDeleteGitRepoForbidden

func NewDeleteGitRepoForbidden() *DeleteGitRepoForbidden

NewDeleteGitRepoForbidden creates a DeleteGitRepoForbidden with default headers values

func (*DeleteGitRepoForbidden) Code

func (o *DeleteGitRepoForbidden) Code() int

Code gets the status code for the kubernetes git ops delete git repo forbidden response

func (*DeleteGitRepoForbidden) Error

func (o *DeleteGitRepoForbidden) Error() string

func (*DeleteGitRepoForbidden) GetPayload

func (o *DeleteGitRepoForbidden) GetPayload() *models.ZsrvResponse

func (*DeleteGitRepoForbidden) IsClientError

func (o *DeleteGitRepoForbidden) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo forbidden response has a 4xx status code

func (*DeleteGitRepoForbidden) IsCode

func (o *DeleteGitRepoForbidden) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo forbidden response a status code equal to that given

func (*DeleteGitRepoForbidden) IsRedirect

func (o *DeleteGitRepoForbidden) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo forbidden response has a 3xx status code

func (*DeleteGitRepoForbidden) IsServerError

func (o *DeleteGitRepoForbidden) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo forbidden response has a 5xx status code

func (*DeleteGitRepoForbidden) IsSuccess

func (o *DeleteGitRepoForbidden) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo forbidden response has a 2xx status code

func (*DeleteGitRepoForbidden) String

func (o *DeleteGitRepoForbidden) String() string

type DeleteGitRepoInternalServerError

type DeleteGitRepoInternalServerError struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoInternalServerError describes a response with status code 500, with default header values.

Internal Server Error. Failed to delete GitRepo configuration due to server error.

func NewDeleteGitRepoInternalServerError

func NewDeleteGitRepoInternalServerError() *DeleteGitRepoInternalServerError

NewDeleteGitRepoInternalServerError creates a DeleteGitRepoInternalServerError with default headers values

func (*DeleteGitRepoInternalServerError) Code

Code gets the status code for the kubernetes git ops delete git repo internal server error response

func (*DeleteGitRepoInternalServerError) Error

func (*DeleteGitRepoInternalServerError) GetPayload

func (*DeleteGitRepoInternalServerError) IsClientError

func (o *DeleteGitRepoInternalServerError) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo internal server error response has a 4xx status code

func (*DeleteGitRepoInternalServerError) IsCode

func (o *DeleteGitRepoInternalServerError) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo internal server error response a status code equal to that given

func (*DeleteGitRepoInternalServerError) IsRedirect

func (o *DeleteGitRepoInternalServerError) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo internal server error response has a 3xx status code

func (*DeleteGitRepoInternalServerError) IsServerError

func (o *DeleteGitRepoInternalServerError) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo internal server error response has a 5xx status code

func (*DeleteGitRepoInternalServerError) IsSuccess

func (o *DeleteGitRepoInternalServerError) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo internal server error response has a 2xx status code

func (*DeleteGitRepoInternalServerError) String

type DeleteGitRepoNotFound

type DeleteGitRepoNotFound struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoNotFound describes a response with status code 404, with default header values.

Not Found. GitRepo configuration with the specified ID does not exist.

func NewDeleteGitRepoNotFound

func NewDeleteGitRepoNotFound() *DeleteGitRepoNotFound

NewDeleteGitRepoNotFound creates a DeleteGitRepoNotFound with default headers values

func (*DeleteGitRepoNotFound) Code

func (o *DeleteGitRepoNotFound) Code() int

Code gets the status code for the kubernetes git ops delete git repo not found response

func (*DeleteGitRepoNotFound) Error

func (o *DeleteGitRepoNotFound) Error() string

func (*DeleteGitRepoNotFound) GetPayload

func (o *DeleteGitRepoNotFound) GetPayload() *models.ZsrvResponse

func (*DeleteGitRepoNotFound) IsClientError

func (o *DeleteGitRepoNotFound) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo not found response has a 4xx status code

func (*DeleteGitRepoNotFound) IsCode

func (o *DeleteGitRepoNotFound) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo not found response a status code equal to that given

func (*DeleteGitRepoNotFound) IsRedirect

func (o *DeleteGitRepoNotFound) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo not found response has a 3xx status code

func (*DeleteGitRepoNotFound) IsServerError

func (o *DeleteGitRepoNotFound) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo not found response has a 5xx status code

func (*DeleteGitRepoNotFound) IsSuccess

func (o *DeleteGitRepoNotFound) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo not found response has a 2xx status code

func (*DeleteGitRepoNotFound) String

func (o *DeleteGitRepoNotFound) String() string

type DeleteGitRepoOK

type DeleteGitRepoOK struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoOK describes a response with status code 200, with default header values.

Successfully deleted GitRepo configuration

func NewDeleteGitRepoOK

func NewDeleteGitRepoOK() *DeleteGitRepoOK

NewDeleteGitRepoOK creates a DeleteGitRepoOK with default headers values

func (*DeleteGitRepoOK) Code

func (o *DeleteGitRepoOK) Code() int

Code gets the status code for the kubernetes git ops delete git repo o k response

func (*DeleteGitRepoOK) Error

func (o *DeleteGitRepoOK) Error() string

func (*DeleteGitRepoOK) GetPayload

func (o *DeleteGitRepoOK) GetPayload() *models.ZsrvResponse

func (*DeleteGitRepoOK) IsClientError

func (o *DeleteGitRepoOK) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo o k response has a 4xx status code

func (*DeleteGitRepoOK) IsCode

func (o *DeleteGitRepoOK) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo o k response a status code equal to that given

func (*DeleteGitRepoOK) IsRedirect

func (o *DeleteGitRepoOK) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo o k response has a 3xx status code

func (*DeleteGitRepoOK) IsServerError

func (o *DeleteGitRepoOK) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo o k response has a 5xx status code

func (*DeleteGitRepoOK) IsSuccess

func (o *DeleteGitRepoOK) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo o k response has a 2xx status code

func (*DeleteGitRepoOK) String

func (o *DeleteGitRepoOK) String() string

type DeleteGitRepoParams

type DeleteGitRepoParams struct {

	/* XRequestID.

	   User-Agent specified id to track a request
	*/
	XRequestID *string

	/* GitrepoID.

	   Unique identifier of the GitRepo (required). Example: 'gitrepo-abc123'
	*/
	GitrepoID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteGitRepoParams contains all the parameters to send to the API endpoint

for the kubernetes git ops delete git repo operation.

Typically these are written to a http.Request.

func NewDeleteGitRepoParams

func NewDeleteGitRepoParams() *DeleteGitRepoParams

NewDeleteGitRepoParams creates a new DeleteGitRepoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteGitRepoParamsWithContext

func NewDeleteGitRepoParamsWithContext(ctx context.Context) *DeleteGitRepoParams

NewDeleteGitRepoParamsWithContext creates a new DeleteGitRepoParams object with the ability to set a context for a request.

func NewDeleteGitRepoParamsWithHTTPClient

func NewDeleteGitRepoParamsWithHTTPClient(client *http.Client) *DeleteGitRepoParams

NewDeleteGitRepoParamsWithHTTPClient creates a new DeleteGitRepoParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteGitRepoParamsWithTimeout

func NewDeleteGitRepoParamsWithTimeout(timeout time.Duration) *DeleteGitRepoParams

NewDeleteGitRepoParamsWithTimeout creates a new DeleteGitRepoParams object with the ability to set a timeout on a request.

func (*DeleteGitRepoParams) SetContext

func (o *DeleteGitRepoParams) SetContext(ctx context.Context)

SetContext adds the context to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) SetDefaults

func (o *DeleteGitRepoParams) SetDefaults()

SetDefaults hydrates default values in the kubernetes git ops delete git repo params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteGitRepoParams) SetGitrepoID

func (o *DeleteGitRepoParams) SetGitrepoID(gitrepoID string)

SetGitrepoID adds the gitrepoId to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) SetHTTPClient

func (o *DeleteGitRepoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) SetTimeout

func (o *DeleteGitRepoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) SetXRequestID

func (o *DeleteGitRepoParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) WithContext

WithContext adds the context to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) WithDefaults

func (o *DeleteGitRepoParams) WithDefaults() *DeleteGitRepoParams

WithDefaults hydrates default values in the kubernetes git ops delete git repo params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteGitRepoParams) WithGitrepoID

func (o *DeleteGitRepoParams) WithGitrepoID(gitrepoID string) *DeleteGitRepoParams

WithGitrepoID adds the gitrepoID to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) WithHTTPClient

func (o *DeleteGitRepoParams) WithHTTPClient(client *http.Client) *DeleteGitRepoParams

WithHTTPClient adds the HTTPClient to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) WithTimeout

func (o *DeleteGitRepoParams) WithTimeout(timeout time.Duration) *DeleteGitRepoParams

WithTimeout adds the timeout to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) WithXRequestID

func (o *DeleteGitRepoParams) WithXRequestID(xRequestID *string) *DeleteGitRepoParams

WithXRequestID adds the xRequestID to the kubernetes git ops delete git repo params

func (*DeleteGitRepoParams) WriteToRequest

func (o *DeleteGitRepoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteGitRepoReader

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

DeleteGitRepoReader is a Reader for the DeleteGitRepo structure.

func (*DeleteGitRepoReader) ReadResponse

func (o *DeleteGitRepoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type DeleteGitRepoUnauthorized

type DeleteGitRepoUnauthorized struct {
	Payload *models.ZsrvResponse
}

DeleteGitRepoUnauthorized describes a response with status code 401, with default header values.

Unauthorized. Authentication credentials are missing or invalid.

func NewDeleteGitRepoUnauthorized

func NewDeleteGitRepoUnauthorized() *DeleteGitRepoUnauthorized

NewDeleteGitRepoUnauthorized creates a DeleteGitRepoUnauthorized with default headers values

func (*DeleteGitRepoUnauthorized) Code

func (o *DeleteGitRepoUnauthorized) Code() int

Code gets the status code for the kubernetes git ops delete git repo unauthorized response

func (*DeleteGitRepoUnauthorized) Error

func (o *DeleteGitRepoUnauthorized) Error() string

func (*DeleteGitRepoUnauthorized) GetPayload

func (*DeleteGitRepoUnauthorized) IsClientError

func (o *DeleteGitRepoUnauthorized) IsClientError() bool

IsClientError returns true when this kubernetes git ops delete git repo unauthorized response has a 4xx status code

func (*DeleteGitRepoUnauthorized) IsCode

func (o *DeleteGitRepoUnauthorized) IsCode(code int) bool

IsCode returns true when this kubernetes git ops delete git repo unauthorized response a status code equal to that given

func (*DeleteGitRepoUnauthorized) IsRedirect

func (o *DeleteGitRepoUnauthorized) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops delete git repo unauthorized response has a 3xx status code

func (*DeleteGitRepoUnauthorized) IsServerError

func (o *DeleteGitRepoUnauthorized) IsServerError() bool

IsServerError returns true when this kubernetes git ops delete git repo unauthorized response has a 5xx status code

func (*DeleteGitRepoUnauthorized) IsSuccess

func (o *DeleteGitRepoUnauthorized) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops delete git repo unauthorized response has a 2xx status code

func (*DeleteGitRepoUnauthorized) String

func (o *DeleteGitRepoUnauthorized) String() string

type GetGitRepoBadRequest

type GetGitRepoBadRequest struct {
	Payload *models.ZsrvResponse
}

GetGitRepoBadRequest describes a response with status code 400, with default header values.

Bad Request. Invalid GitRepo ID format.

func NewGetGitRepoBadRequest

func NewGetGitRepoBadRequest() *GetGitRepoBadRequest

NewGetGitRepoBadRequest creates a GetGitRepoBadRequest with default headers values

func (*GetGitRepoBadRequest) Code

func (o *GetGitRepoBadRequest) Code() int

Code gets the status code for the kubernetes git ops get git repo bad request response

func (*GetGitRepoBadRequest) Error

func (o *GetGitRepoBadRequest) Error() string

func (*GetGitRepoBadRequest) GetPayload

func (o *GetGitRepoBadRequest) GetPayload() *models.ZsrvResponse

func (*GetGitRepoBadRequest) IsClientError

func (o *GetGitRepoBadRequest) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo bad request response has a 4xx status code

func (*GetGitRepoBadRequest) IsCode

func (o *GetGitRepoBadRequest) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo bad request response a status code equal to that given

func (*GetGitRepoBadRequest) IsRedirect

func (o *GetGitRepoBadRequest) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo bad request response has a 3xx status code

func (*GetGitRepoBadRequest) IsServerError

func (o *GetGitRepoBadRequest) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo bad request response has a 5xx status code

func (*GetGitRepoBadRequest) IsSuccess

func (o *GetGitRepoBadRequest) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo bad request response has a 2xx status code

func (*GetGitRepoBadRequest) String

func (o *GetGitRepoBadRequest) String() string

type GetGitRepoDefault

type GetGitRepoDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

GetGitRepoDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetGitRepoDefault

func NewGetGitRepoDefault(code int) *GetGitRepoDefault

NewGetGitRepoDefault creates a GetGitRepoDefault with default headers values

func (*GetGitRepoDefault) Code

func (o *GetGitRepoDefault) Code() int

Code gets the status code for the kubernetes git ops get git repo default response

func (*GetGitRepoDefault) Error

func (o *GetGitRepoDefault) Error() string

func (*GetGitRepoDefault) GetPayload

func (o *GetGitRepoDefault) GetPayload() *models.GooglerpcStatus

func (*GetGitRepoDefault) IsClientError

func (o *GetGitRepoDefault) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo default response has a 4xx status code

func (*GetGitRepoDefault) IsCode

func (o *GetGitRepoDefault) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo default response a status code equal to that given

func (*GetGitRepoDefault) IsRedirect

func (o *GetGitRepoDefault) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo default response has a 3xx status code

func (*GetGitRepoDefault) IsServerError

func (o *GetGitRepoDefault) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo default response has a 5xx status code

func (*GetGitRepoDefault) IsSuccess

func (o *GetGitRepoDefault) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo default response has a 2xx status code

func (*GetGitRepoDefault) String

func (o *GetGitRepoDefault) String() string

type GetGitRepoForbidden

type GetGitRepoForbidden struct {
	Payload *models.ZsrvResponse
}

GetGitRepoForbidden describes a response with status code 403, with default header values.

Forbidden. User does not have permission to view this GitRepo configuration.

func NewGetGitRepoForbidden

func NewGetGitRepoForbidden() *GetGitRepoForbidden

NewGetGitRepoForbidden creates a GetGitRepoForbidden with default headers values

func (*GetGitRepoForbidden) Code

func (o *GetGitRepoForbidden) Code() int

Code gets the status code for the kubernetes git ops get git repo forbidden response

func (*GetGitRepoForbidden) Error

func (o *GetGitRepoForbidden) Error() string

func (*GetGitRepoForbidden) GetPayload

func (o *GetGitRepoForbidden) GetPayload() *models.ZsrvResponse

func (*GetGitRepoForbidden) IsClientError

func (o *GetGitRepoForbidden) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo forbidden response has a 4xx status code

func (*GetGitRepoForbidden) IsCode

func (o *GetGitRepoForbidden) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo forbidden response a status code equal to that given

func (*GetGitRepoForbidden) IsRedirect

func (o *GetGitRepoForbidden) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo forbidden response has a 3xx status code

func (*GetGitRepoForbidden) IsServerError

func (o *GetGitRepoForbidden) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo forbidden response has a 5xx status code

func (*GetGitRepoForbidden) IsSuccess

func (o *GetGitRepoForbidden) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo forbidden response has a 2xx status code

func (*GetGitRepoForbidden) String

func (o *GetGitRepoForbidden) String() string

type GetGitRepoInternalServerError

type GetGitRepoInternalServerError struct {
	Payload *models.ZsrvResponse
}

GetGitRepoInternalServerError describes a response with status code 500, with default header values.

Internal Server Error. Failed to retrieve GitRepo configuration due to server error.

func NewGetGitRepoInternalServerError

func NewGetGitRepoInternalServerError() *GetGitRepoInternalServerError

NewGetGitRepoInternalServerError creates a GetGitRepoInternalServerError with default headers values

func (*GetGitRepoInternalServerError) Code

Code gets the status code for the kubernetes git ops get git repo internal server error response

func (*GetGitRepoInternalServerError) Error

func (*GetGitRepoInternalServerError) GetPayload

func (*GetGitRepoInternalServerError) IsClientError

func (o *GetGitRepoInternalServerError) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo internal server error response has a 4xx status code

func (*GetGitRepoInternalServerError) IsCode

func (o *GetGitRepoInternalServerError) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo internal server error response a status code equal to that given

func (*GetGitRepoInternalServerError) IsRedirect

func (o *GetGitRepoInternalServerError) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo internal server error response has a 3xx status code

func (*GetGitRepoInternalServerError) IsServerError

func (o *GetGitRepoInternalServerError) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo internal server error response has a 5xx status code

func (*GetGitRepoInternalServerError) IsSuccess

func (o *GetGitRepoInternalServerError) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo internal server error response has a 2xx status code

func (*GetGitRepoInternalServerError) String

type GetGitRepoNotFound

type GetGitRepoNotFound struct {
	Payload *models.ZsrvResponse
}

GetGitRepoNotFound describes a response with status code 404, with default header values.

Not Found. GitRepo configuration with the specified ID does not exist.

func NewGetGitRepoNotFound

func NewGetGitRepoNotFound() *GetGitRepoNotFound

NewGetGitRepoNotFound creates a GetGitRepoNotFound with default headers values

func (*GetGitRepoNotFound) Code

func (o *GetGitRepoNotFound) Code() int

Code gets the status code for the kubernetes git ops get git repo not found response

func (*GetGitRepoNotFound) Error

func (o *GetGitRepoNotFound) Error() string

func (*GetGitRepoNotFound) GetPayload

func (o *GetGitRepoNotFound) GetPayload() *models.ZsrvResponse

func (*GetGitRepoNotFound) IsClientError

func (o *GetGitRepoNotFound) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo not found response has a 4xx status code

func (*GetGitRepoNotFound) IsCode

func (o *GetGitRepoNotFound) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo not found response a status code equal to that given

func (*GetGitRepoNotFound) IsRedirect

func (o *GetGitRepoNotFound) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo not found response has a 3xx status code

func (*GetGitRepoNotFound) IsServerError

func (o *GetGitRepoNotFound) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo not found response has a 5xx status code

func (*GetGitRepoNotFound) IsSuccess

func (o *GetGitRepoNotFound) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo not found response has a 2xx status code

func (*GetGitRepoNotFound) String

func (o *GetGitRepoNotFound) String() string

type GetGitRepoOK

type GetGitRepoOK struct {
	Payload *models.GitRepoGetResponse
}

GetGitRepoOK describes a response with status code 200, with default header values.

Successfully retrieved GitRepo configuration

func NewGetGitRepoOK

func NewGetGitRepoOK() *GetGitRepoOK

NewGetGitRepoOK creates a GetGitRepoOK with default headers values

func (*GetGitRepoOK) Code

func (o *GetGitRepoOK) Code() int

Code gets the status code for the kubernetes git ops get git repo o k response

func (*GetGitRepoOK) Error

func (o *GetGitRepoOK) Error() string

func (*GetGitRepoOK) GetPayload

func (o *GetGitRepoOK) GetPayload() *models.GitRepoGetResponse

func (*GetGitRepoOK) IsClientError

func (o *GetGitRepoOK) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo o k response has a 4xx status code

func (*GetGitRepoOK) IsCode

func (o *GetGitRepoOK) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo o k response a status code equal to that given

func (*GetGitRepoOK) IsRedirect

func (o *GetGitRepoOK) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo o k response has a 3xx status code

func (*GetGitRepoOK) IsServerError

func (o *GetGitRepoOK) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo o k response has a 5xx status code

func (*GetGitRepoOK) IsSuccess

func (o *GetGitRepoOK) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo o k response has a 2xx status code

func (*GetGitRepoOK) String

func (o *GetGitRepoOK) String() string

type GetGitRepoParams

type GetGitRepoParams struct {

	/* XRequestID.

	   User-Agent specified id to track a request
	*/
	XRequestID *string

	/* GitrepoID.

	   Unique identifier of the GitRepo (required). Example: 'gitrepo-abc123'
	*/
	GitrepoID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGitRepoParams contains all the parameters to send to the API endpoint

for the kubernetes git ops get git repo operation.

Typically these are written to a http.Request.

func NewGetGitRepoParams

func NewGetGitRepoParams() *GetGitRepoParams

NewGetGitRepoParams creates a new GetGitRepoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGitRepoParamsWithContext

func NewGetGitRepoParamsWithContext(ctx context.Context) *GetGitRepoParams

NewGetGitRepoParamsWithContext creates a new GetGitRepoParams object with the ability to set a context for a request.

func NewGetGitRepoParamsWithHTTPClient

func NewGetGitRepoParamsWithHTTPClient(client *http.Client) *GetGitRepoParams

NewGetGitRepoParamsWithHTTPClient creates a new GetGitRepoParams object with the ability to set a custom HTTPClient for a request.

func NewGetGitRepoParamsWithTimeout

func NewGetGitRepoParamsWithTimeout(timeout time.Duration) *GetGitRepoParams

NewGetGitRepoParamsWithTimeout creates a new GetGitRepoParams object with the ability to set a timeout on a request.

func (*GetGitRepoParams) SetContext

func (o *GetGitRepoParams) SetContext(ctx context.Context)

SetContext adds the context to the kubernetes git ops get git repo params

func (*GetGitRepoParams) SetDefaults

func (o *GetGitRepoParams) SetDefaults()

SetDefaults hydrates default values in the kubernetes git ops get git repo params (not the query body).

All values with no default are reset to their zero value.

func (*GetGitRepoParams) SetGitrepoID

func (o *GetGitRepoParams) SetGitrepoID(gitrepoID string)

SetGitrepoID adds the gitrepoId to the kubernetes git ops get git repo params

func (*GetGitRepoParams) SetHTTPClient

func (o *GetGitRepoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the kubernetes git ops get git repo params

func (*GetGitRepoParams) SetTimeout

func (o *GetGitRepoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the kubernetes git ops get git repo params

func (*GetGitRepoParams) SetXRequestID

func (o *GetGitRepoParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the kubernetes git ops get git repo params

func (*GetGitRepoParams) WithContext

func (o *GetGitRepoParams) WithContext(ctx context.Context) *GetGitRepoParams

WithContext adds the context to the kubernetes git ops get git repo params

func (*GetGitRepoParams) WithDefaults

func (o *GetGitRepoParams) WithDefaults() *GetGitRepoParams

WithDefaults hydrates default values in the kubernetes git ops get git repo params (not the query body).

All values with no default are reset to their zero value.

func (*GetGitRepoParams) WithGitrepoID

func (o *GetGitRepoParams) WithGitrepoID(gitrepoID string) *GetGitRepoParams

WithGitrepoID adds the gitrepoID to the kubernetes git ops get git repo params

func (*GetGitRepoParams) WithHTTPClient

func (o *GetGitRepoParams) WithHTTPClient(client *http.Client) *GetGitRepoParams

WithHTTPClient adds the HTTPClient to the kubernetes git ops get git repo params

func (*GetGitRepoParams) WithTimeout

func (o *GetGitRepoParams) WithTimeout(timeout time.Duration) *GetGitRepoParams

WithTimeout adds the timeout to the kubernetes git ops get git repo params

func (*GetGitRepoParams) WithXRequestID

func (o *GetGitRepoParams) WithXRequestID(xRequestID *string) *GetGitRepoParams

WithXRequestID adds the xRequestID to the kubernetes git ops get git repo params

func (*GetGitRepoParams) WriteToRequest

func (o *GetGitRepoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetGitRepoReader

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

GetGitRepoReader is a Reader for the GetGitRepo structure.

func (*GetGitRepoReader) ReadResponse

func (o *GetGitRepoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetGitRepoUnauthorized

type GetGitRepoUnauthorized struct {
	Payload *models.ZsrvResponse
}

GetGitRepoUnauthorized describes a response with status code 401, with default header values.

Unauthorized. Authentication credentials are missing or invalid.

func NewGetGitRepoUnauthorized

func NewGetGitRepoUnauthorized() *GetGitRepoUnauthorized

NewGetGitRepoUnauthorized creates a GetGitRepoUnauthorized with default headers values

func (*GetGitRepoUnauthorized) Code

func (o *GetGitRepoUnauthorized) Code() int

Code gets the status code for the kubernetes git ops get git repo unauthorized response

func (*GetGitRepoUnauthorized) Error

func (o *GetGitRepoUnauthorized) Error() string

func (*GetGitRepoUnauthorized) GetPayload

func (o *GetGitRepoUnauthorized) GetPayload() *models.ZsrvResponse

func (*GetGitRepoUnauthorized) IsClientError

func (o *GetGitRepoUnauthorized) IsClientError() bool

IsClientError returns true when this kubernetes git ops get git repo unauthorized response has a 4xx status code

func (*GetGitRepoUnauthorized) IsCode

func (o *GetGitRepoUnauthorized) IsCode(code int) bool

IsCode returns true when this kubernetes git ops get git repo unauthorized response a status code equal to that given

func (*GetGitRepoUnauthorized) IsRedirect

func (o *GetGitRepoUnauthorized) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops get git repo unauthorized response has a 3xx status code

func (*GetGitRepoUnauthorized) IsServerError

func (o *GetGitRepoUnauthorized) IsServerError() bool

IsServerError returns true when this kubernetes git ops get git repo unauthorized response has a 5xx status code

func (*GetGitRepoUnauthorized) IsSuccess

func (o *GetGitRepoUnauthorized) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops get git repo unauthorized response has a 2xx status code

func (*GetGitRepoUnauthorized) String

func (o *GetGitRepoUnauthorized) String() string

type ListGitReposBadRequest

type ListGitReposBadRequest struct {
	Payload *models.ZsrvResponse
}

ListGitReposBadRequest describes a response with status code 400, with default header values.

Bad Request. The API gateway did not process the request because of invalid value of filter parameters.

func NewListGitReposBadRequest

func NewListGitReposBadRequest() *ListGitReposBadRequest

NewListGitReposBadRequest creates a ListGitReposBadRequest with default headers values

func (*ListGitReposBadRequest) Code

func (o *ListGitReposBadRequest) Code() int

Code gets the status code for the kubernetes git ops list git repos bad request response

func (*ListGitReposBadRequest) Error

func (o *ListGitReposBadRequest) Error() string

func (*ListGitReposBadRequest) GetPayload

func (o *ListGitReposBadRequest) GetPayload() *models.ZsrvResponse

func (*ListGitReposBadRequest) IsClientError

func (o *ListGitReposBadRequest) IsClientError() bool

IsClientError returns true when this kubernetes git ops list git repos bad request response has a 4xx status code

func (*ListGitReposBadRequest) IsCode

func (o *ListGitReposBadRequest) IsCode(code int) bool

IsCode returns true when this kubernetes git ops list git repos bad request response a status code equal to that given

func (*ListGitReposBadRequest) IsRedirect

func (o *ListGitReposBadRequest) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops list git repos bad request response has a 3xx status code

func (*ListGitReposBadRequest) IsServerError

func (o *ListGitReposBadRequest) IsServerError() bool

IsServerError returns true when this kubernetes git ops list git repos bad request response has a 5xx status code

func (*ListGitReposBadRequest) IsSuccess

func (o *ListGitReposBadRequest) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops list git repos bad request response has a 2xx status code

func (*ListGitReposBadRequest) String

func (o *ListGitReposBadRequest) String() string

type ListGitReposDefault

type ListGitReposDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

ListGitReposDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListGitReposDefault

func NewListGitReposDefault(code int) *ListGitReposDefault

NewListGitReposDefault creates a ListGitReposDefault with default headers values

func (*ListGitReposDefault) Code

func (o *ListGitReposDefault) Code() int

Code gets the status code for the kubernetes git ops list git repos default response

func (*ListGitReposDefault) Error

func (o *ListGitReposDefault) Error() string

func (*ListGitReposDefault) GetPayload

func (o *ListGitReposDefault) GetPayload() *models.GooglerpcStatus

func (*ListGitReposDefault) IsClientError

func (o *ListGitReposDefault) IsClientError() bool

IsClientError returns true when this kubernetes git ops list git repos default response has a 4xx status code

func (*ListGitReposDefault) IsCode

func (o *ListGitReposDefault) IsCode(code int) bool

IsCode returns true when this kubernetes git ops list git repos default response a status code equal to that given

func (*ListGitReposDefault) IsRedirect

func (o *ListGitReposDefault) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops list git repos default response has a 3xx status code

func (*ListGitReposDefault) IsServerError

func (o *ListGitReposDefault) IsServerError() bool

IsServerError returns true when this kubernetes git ops list git repos default response has a 5xx status code

func (*ListGitReposDefault) IsSuccess

func (o *ListGitReposDefault) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops list git repos default response has a 2xx status code

func (*ListGitReposDefault) String

func (o *ListGitReposDefault) String() string

type ListGitReposForbidden

type ListGitReposForbidden struct {
	Payload *models.ZsrvResponse
}

ListGitReposForbidden describes a response with status code 403, with default header values.

Forbidden. User does not have permission to list GitRepo configurations.

func NewListGitReposForbidden

func NewListGitReposForbidden() *ListGitReposForbidden

NewListGitReposForbidden creates a ListGitReposForbidden with default headers values

func (*ListGitReposForbidden) Code

func (o *ListGitReposForbidden) Code() int

Code gets the status code for the kubernetes git ops list git repos forbidden response

func (*ListGitReposForbidden) Error

func (o *ListGitReposForbidden) Error() string

func (*ListGitReposForbidden) GetPayload

func (o *ListGitReposForbidden) GetPayload() *models.ZsrvResponse

func (*ListGitReposForbidden) IsClientError

func (o *ListGitReposForbidden) IsClientError() bool

IsClientError returns true when this kubernetes git ops list git repos forbidden response has a 4xx status code

func (*ListGitReposForbidden) IsCode

func (o *ListGitReposForbidden) IsCode(code int) bool

IsCode returns true when this kubernetes git ops list git repos forbidden response a status code equal to that given

func (*ListGitReposForbidden) IsRedirect

func (o *ListGitReposForbidden) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops list git repos forbidden response has a 3xx status code

func (*ListGitReposForbidden) IsServerError

func (o *ListGitReposForbidden) IsServerError() bool

IsServerError returns true when this kubernetes git ops list git repos forbidden response has a 5xx status code

func (*ListGitReposForbidden) IsSuccess

func (o *ListGitReposForbidden) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops list git repos forbidden response has a 2xx status code

func (*ListGitReposForbidden) String

func (o *ListGitReposForbidden) String() string

type ListGitReposInternalServerError

type ListGitReposInternalServerError struct {
	Payload *models.ZsrvResponse
}

ListGitReposInternalServerError describes a response with status code 500, with default header values.

Internal Server Error. Failed to retrieve GitRepo list due to server error.

func NewListGitReposInternalServerError

func NewListGitReposInternalServerError() *ListGitReposInternalServerError

NewListGitReposInternalServerError creates a ListGitReposInternalServerError with default headers values

func (*ListGitReposInternalServerError) Code

Code gets the status code for the kubernetes git ops list git repos internal server error response

func (*ListGitReposInternalServerError) Error

func (*ListGitReposInternalServerError) GetPayload

func (*ListGitReposInternalServerError) IsClientError

func (o *ListGitReposInternalServerError) IsClientError() bool

IsClientError returns true when this kubernetes git ops list git repos internal server error response has a 4xx status code

func (*ListGitReposInternalServerError) IsCode

func (o *ListGitReposInternalServerError) IsCode(code int) bool

IsCode returns true when this kubernetes git ops list git repos internal server error response a status code equal to that given

func (*ListGitReposInternalServerError) IsRedirect

func (o *ListGitReposInternalServerError) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops list git repos internal server error response has a 3xx status code

func (*ListGitReposInternalServerError) IsServerError

func (o *ListGitReposInternalServerError) IsServerError() bool

IsServerError returns true when this kubernetes git ops list git repos internal server error response has a 5xx status code

func (*ListGitReposInternalServerError) IsSuccess

func (o *ListGitReposInternalServerError) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops list git repos internal server error response has a 2xx status code

func (*ListGitReposInternalServerError) String

type ListGitReposOK

type ListGitReposOK struct {
	Payload *models.GitRepoListResponse
}

ListGitReposOK describes a response with status code 200, with default header values.

Successfully retrieved GitRepo configuration list

func NewListGitReposOK

func NewListGitReposOK() *ListGitReposOK

NewListGitReposOK creates a ListGitReposOK with default headers values

func (*ListGitReposOK) Code

func (o *ListGitReposOK) Code() int

Code gets the status code for the kubernetes git ops list git repos o k response

func (*ListGitReposOK) Error

func (o *ListGitReposOK) Error() string

func (*ListGitReposOK) GetPayload

func (o *ListGitReposOK) GetPayload() *models.GitRepoListResponse

func (*ListGitReposOK) IsClientError

func (o *ListGitReposOK) IsClientError() bool

IsClientError returns true when this kubernetes git ops list git repos o k response has a 4xx status code

func (*ListGitReposOK) IsCode

func (o *ListGitReposOK) IsCode(code int) bool

IsCode returns true when this kubernetes git ops list git repos o k response a status code equal to that given

func (*ListGitReposOK) IsRedirect

func (o *ListGitReposOK) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops list git repos o k response has a 3xx status code

func (*ListGitReposOK) IsServerError

func (o *ListGitReposOK) IsServerError() bool

IsServerError returns true when this kubernetes git ops list git repos o k response has a 5xx status code

func (*ListGitReposOK) IsSuccess

func (o *ListGitReposOK) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops list git repos o k response has a 2xx status code

func (*ListGitReposOK) String

func (o *ListGitReposOK) String() string

type ListGitReposParams

type ListGitReposParams struct {

	/* XRequestID.

	   User-Agent specified id to track a request
	*/
	XRequestID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListGitReposParams contains all the parameters to send to the API endpoint

for the kubernetes git ops list git repos operation.

Typically these are written to a http.Request.

func NewListGitReposParams

func NewListGitReposParams() *ListGitReposParams

NewListGitReposParams creates a new ListGitReposParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListGitReposParamsWithContext

func NewListGitReposParamsWithContext(ctx context.Context) *ListGitReposParams

NewListGitReposParamsWithContext creates a new ListGitReposParams object with the ability to set a context for a request.

func NewListGitReposParamsWithHTTPClient

func NewListGitReposParamsWithHTTPClient(client *http.Client) *ListGitReposParams

NewListGitReposParamsWithHTTPClient creates a new ListGitReposParams object with the ability to set a custom HTTPClient for a request.

func NewListGitReposParamsWithTimeout

func NewListGitReposParamsWithTimeout(timeout time.Duration) *ListGitReposParams

NewListGitReposParamsWithTimeout creates a new ListGitReposParams object with the ability to set a timeout on a request.

func (*ListGitReposParams) SetContext

func (o *ListGitReposParams) SetContext(ctx context.Context)

SetContext adds the context to the kubernetes git ops list git repos params

func (*ListGitReposParams) SetDefaults

func (o *ListGitReposParams) SetDefaults()

SetDefaults hydrates default values in the kubernetes git ops list git repos params (not the query body).

All values with no default are reset to their zero value.

func (*ListGitReposParams) SetHTTPClient

func (o *ListGitReposParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the kubernetes git ops list git repos params

func (*ListGitReposParams) SetTimeout

func (o *ListGitReposParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the kubernetes git ops list git repos params

func (*ListGitReposParams) SetXRequestID

func (o *ListGitReposParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the kubernetes git ops list git repos params

func (*ListGitReposParams) WithContext

WithContext adds the context to the kubernetes git ops list git repos params

func (*ListGitReposParams) WithDefaults

func (o *ListGitReposParams) WithDefaults() *ListGitReposParams

WithDefaults hydrates default values in the kubernetes git ops list git repos params (not the query body).

All values with no default are reset to their zero value.

func (*ListGitReposParams) WithHTTPClient

func (o *ListGitReposParams) WithHTTPClient(client *http.Client) *ListGitReposParams

WithHTTPClient adds the HTTPClient to the kubernetes git ops list git repos params

func (*ListGitReposParams) WithTimeout

func (o *ListGitReposParams) WithTimeout(timeout time.Duration) *ListGitReposParams

WithTimeout adds the timeout to the kubernetes git ops list git repos params

func (*ListGitReposParams) WithXRequestID

func (o *ListGitReposParams) WithXRequestID(xRequestID *string) *ListGitReposParams

WithXRequestID adds the xRequestID to the kubernetes git ops list git repos params

func (*ListGitReposParams) WriteToRequest

func (o *ListGitReposParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListGitReposReader

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

ListGitReposReader is a Reader for the ListGitRepos structure.

func (*ListGitReposReader) ReadResponse

func (o *ListGitReposReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ListGitReposUnauthorized

type ListGitReposUnauthorized struct {
	Payload *models.ZsrvResponse
}

ListGitReposUnauthorized describes a response with status code 401, with default header values.

Unauthorized. Authentication credentials are missing or invalid.

func NewListGitReposUnauthorized

func NewListGitReposUnauthorized() *ListGitReposUnauthorized

NewListGitReposUnauthorized creates a ListGitReposUnauthorized with default headers values

func (*ListGitReposUnauthorized) Code

func (o *ListGitReposUnauthorized) Code() int

Code gets the status code for the kubernetes git ops list git repos unauthorized response

func (*ListGitReposUnauthorized) Error

func (o *ListGitReposUnauthorized) Error() string

func (*ListGitReposUnauthorized) GetPayload

func (o *ListGitReposUnauthorized) GetPayload() *models.ZsrvResponse

func (*ListGitReposUnauthorized) IsClientError

func (o *ListGitReposUnauthorized) IsClientError() bool

IsClientError returns true when this kubernetes git ops list git repos unauthorized response has a 4xx status code

func (*ListGitReposUnauthorized) IsCode

func (o *ListGitReposUnauthorized) IsCode(code int) bool

IsCode returns true when this kubernetes git ops list git repos unauthorized response a status code equal to that given

func (*ListGitReposUnauthorized) IsRedirect

func (o *ListGitReposUnauthorized) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops list git repos unauthorized response has a 3xx status code

func (*ListGitReposUnauthorized) IsServerError

func (o *ListGitReposUnauthorized) IsServerError() bool

IsServerError returns true when this kubernetes git ops list git repos unauthorized response has a 5xx status code

func (*ListGitReposUnauthorized) IsSuccess

func (o *ListGitReposUnauthorized) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops list git repos unauthorized response has a 2xx status code

func (*ListGitReposUnauthorized) String

func (o *ListGitReposUnauthorized) String() string

type UpdateGitRepoBadRequest

type UpdateGitRepoBadRequest struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoBadRequest describes a response with status code 400, with default header values.

Bad Request. Invalid GitRepo configuration or missing required fields.

func NewUpdateGitRepoBadRequest

func NewUpdateGitRepoBadRequest() *UpdateGitRepoBadRequest

NewUpdateGitRepoBadRequest creates a UpdateGitRepoBadRequest with default headers values

func (*UpdateGitRepoBadRequest) Code

func (o *UpdateGitRepoBadRequest) Code() int

Code gets the status code for the kubernetes git ops update git repo bad request response

func (*UpdateGitRepoBadRequest) Error

func (o *UpdateGitRepoBadRequest) Error() string

func (*UpdateGitRepoBadRequest) GetPayload

func (o *UpdateGitRepoBadRequest) GetPayload() *models.ZsrvResponse

func (*UpdateGitRepoBadRequest) IsClientError

func (o *UpdateGitRepoBadRequest) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo bad request response has a 4xx status code

func (*UpdateGitRepoBadRequest) IsCode

func (o *UpdateGitRepoBadRequest) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo bad request response a status code equal to that given

func (*UpdateGitRepoBadRequest) IsRedirect

func (o *UpdateGitRepoBadRequest) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo bad request response has a 3xx status code

func (*UpdateGitRepoBadRequest) IsServerError

func (o *UpdateGitRepoBadRequest) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo bad request response has a 5xx status code

func (*UpdateGitRepoBadRequest) IsSuccess

func (o *UpdateGitRepoBadRequest) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo bad request response has a 2xx status code

func (*UpdateGitRepoBadRequest) String

func (o *UpdateGitRepoBadRequest) String() string

type UpdateGitRepoBody

type UpdateGitRepoBody struct {

	// Data specification for the GitRepo (required)
	// Required: true
	Data *models.GitRepoData `json:"data"`

	// Metadata for the GitRepo (name cannot be updated, required)
	// Required: true
	Metadata *models.GitRepoMetadata `json:"metadata"`
}

UpdateGitRepoBody GitRepo update request // // Request message for updating an existing GitRepo configuration swagger:model UpdateGitRepoBody

func (*UpdateGitRepoBody) ContextValidate

func (o *UpdateGitRepoBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this kubernetes git ops update git repo body based on the context it is used

func (*UpdateGitRepoBody) MarshalBinary

func (o *UpdateGitRepoBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateGitRepoBody) UnmarshalBinary

func (o *UpdateGitRepoBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateGitRepoBody) Validate

func (o *UpdateGitRepoBody) Validate(formats strfmt.Registry) error

Validate validates this kubernetes git ops update git repo body

type UpdateGitRepoConflict

type UpdateGitRepoConflict struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoConflict describes a response with status code 409, with default header values.

Conflict. Cannot update GitRepo configuration due to conflicting state.

func NewUpdateGitRepoConflict

func NewUpdateGitRepoConflict() *UpdateGitRepoConflict

NewUpdateGitRepoConflict creates a UpdateGitRepoConflict with default headers values

func (*UpdateGitRepoConflict) Code

func (o *UpdateGitRepoConflict) Code() int

Code gets the status code for the kubernetes git ops update git repo conflict response

func (*UpdateGitRepoConflict) Error

func (o *UpdateGitRepoConflict) Error() string

func (*UpdateGitRepoConflict) GetPayload

func (o *UpdateGitRepoConflict) GetPayload() *models.ZsrvResponse

func (*UpdateGitRepoConflict) IsClientError

func (o *UpdateGitRepoConflict) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo conflict response has a 4xx status code

func (*UpdateGitRepoConflict) IsCode

func (o *UpdateGitRepoConflict) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo conflict response a status code equal to that given

func (*UpdateGitRepoConflict) IsRedirect

func (o *UpdateGitRepoConflict) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo conflict response has a 3xx status code

func (*UpdateGitRepoConflict) IsServerError

func (o *UpdateGitRepoConflict) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo conflict response has a 5xx status code

func (*UpdateGitRepoConflict) IsSuccess

func (o *UpdateGitRepoConflict) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo conflict response has a 2xx status code

func (*UpdateGitRepoConflict) String

func (o *UpdateGitRepoConflict) String() string

type UpdateGitRepoDefault

type UpdateGitRepoDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

UpdateGitRepoDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewUpdateGitRepoDefault

func NewUpdateGitRepoDefault(code int) *UpdateGitRepoDefault

NewUpdateGitRepoDefault creates a UpdateGitRepoDefault with default headers values

func (*UpdateGitRepoDefault) Code

func (o *UpdateGitRepoDefault) Code() int

Code gets the status code for the kubernetes git ops update git repo default response

func (*UpdateGitRepoDefault) Error

func (o *UpdateGitRepoDefault) Error() string

func (*UpdateGitRepoDefault) GetPayload

func (o *UpdateGitRepoDefault) GetPayload() *models.GooglerpcStatus

func (*UpdateGitRepoDefault) IsClientError

func (o *UpdateGitRepoDefault) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo default response has a 4xx status code

func (*UpdateGitRepoDefault) IsCode

func (o *UpdateGitRepoDefault) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo default response a status code equal to that given

func (*UpdateGitRepoDefault) IsRedirect

func (o *UpdateGitRepoDefault) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo default response has a 3xx status code

func (*UpdateGitRepoDefault) IsServerError

func (o *UpdateGitRepoDefault) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo default response has a 5xx status code

func (*UpdateGitRepoDefault) IsSuccess

func (o *UpdateGitRepoDefault) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo default response has a 2xx status code

func (*UpdateGitRepoDefault) String

func (o *UpdateGitRepoDefault) String() string

type UpdateGitRepoForbidden

type UpdateGitRepoForbidden struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoForbidden describes a response with status code 403, with default header values.

Forbidden. User does not have permission to update this GitRepo configuration.

func NewUpdateGitRepoForbidden

func NewUpdateGitRepoForbidden() *UpdateGitRepoForbidden

NewUpdateGitRepoForbidden creates a UpdateGitRepoForbidden with default headers values

func (*UpdateGitRepoForbidden) Code

func (o *UpdateGitRepoForbidden) Code() int

Code gets the status code for the kubernetes git ops update git repo forbidden response

func (*UpdateGitRepoForbidden) Error

func (o *UpdateGitRepoForbidden) Error() string

func (*UpdateGitRepoForbidden) GetPayload

func (o *UpdateGitRepoForbidden) GetPayload() *models.ZsrvResponse

func (*UpdateGitRepoForbidden) IsClientError

func (o *UpdateGitRepoForbidden) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo forbidden response has a 4xx status code

func (*UpdateGitRepoForbidden) IsCode

func (o *UpdateGitRepoForbidden) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo forbidden response a status code equal to that given

func (*UpdateGitRepoForbidden) IsRedirect

func (o *UpdateGitRepoForbidden) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo forbidden response has a 3xx status code

func (*UpdateGitRepoForbidden) IsServerError

func (o *UpdateGitRepoForbidden) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo forbidden response has a 5xx status code

func (*UpdateGitRepoForbidden) IsSuccess

func (o *UpdateGitRepoForbidden) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo forbidden response has a 2xx status code

func (*UpdateGitRepoForbidden) String

func (o *UpdateGitRepoForbidden) String() string

type UpdateGitRepoInternalServerError

type UpdateGitRepoInternalServerError struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoInternalServerError describes a response with status code 500, with default header values.

Internal Server Error. Failed to update GitRepo configuration due to server error.

func NewUpdateGitRepoInternalServerError

func NewUpdateGitRepoInternalServerError() *UpdateGitRepoInternalServerError

NewUpdateGitRepoInternalServerError creates a UpdateGitRepoInternalServerError with default headers values

func (*UpdateGitRepoInternalServerError) Code

Code gets the status code for the kubernetes git ops update git repo internal server error response

func (*UpdateGitRepoInternalServerError) Error

func (*UpdateGitRepoInternalServerError) GetPayload

func (*UpdateGitRepoInternalServerError) IsClientError

func (o *UpdateGitRepoInternalServerError) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo internal server error response has a 4xx status code

func (*UpdateGitRepoInternalServerError) IsCode

func (o *UpdateGitRepoInternalServerError) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo internal server error response a status code equal to that given

func (*UpdateGitRepoInternalServerError) IsRedirect

func (o *UpdateGitRepoInternalServerError) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo internal server error response has a 3xx status code

func (*UpdateGitRepoInternalServerError) IsServerError

func (o *UpdateGitRepoInternalServerError) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo internal server error response has a 5xx status code

func (*UpdateGitRepoInternalServerError) IsSuccess

func (o *UpdateGitRepoInternalServerError) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo internal server error response has a 2xx status code

func (*UpdateGitRepoInternalServerError) String

type UpdateGitRepoNotFound

type UpdateGitRepoNotFound struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoNotFound describes a response with status code 404, with default header values.

Not Found. GitRepo configuration with the specified ID does not exist.

func NewUpdateGitRepoNotFound

func NewUpdateGitRepoNotFound() *UpdateGitRepoNotFound

NewUpdateGitRepoNotFound creates a UpdateGitRepoNotFound with default headers values

func (*UpdateGitRepoNotFound) Code

func (o *UpdateGitRepoNotFound) Code() int

Code gets the status code for the kubernetes git ops update git repo not found response

func (*UpdateGitRepoNotFound) Error

func (o *UpdateGitRepoNotFound) Error() string

func (*UpdateGitRepoNotFound) GetPayload

func (o *UpdateGitRepoNotFound) GetPayload() *models.ZsrvResponse

func (*UpdateGitRepoNotFound) IsClientError

func (o *UpdateGitRepoNotFound) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo not found response has a 4xx status code

func (*UpdateGitRepoNotFound) IsCode

func (o *UpdateGitRepoNotFound) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo not found response a status code equal to that given

func (*UpdateGitRepoNotFound) IsRedirect

func (o *UpdateGitRepoNotFound) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo not found response has a 3xx status code

func (*UpdateGitRepoNotFound) IsServerError

func (o *UpdateGitRepoNotFound) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo not found response has a 5xx status code

func (*UpdateGitRepoNotFound) IsSuccess

func (o *UpdateGitRepoNotFound) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo not found response has a 2xx status code

func (*UpdateGitRepoNotFound) String

func (o *UpdateGitRepoNotFound) String() string

type UpdateGitRepoOK

type UpdateGitRepoOK struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoOK describes a response with status code 200, with default header values.

Successfully updated GitRepo configuration

func NewUpdateGitRepoOK

func NewUpdateGitRepoOK() *UpdateGitRepoOK

NewUpdateGitRepoOK creates a UpdateGitRepoOK with default headers values

func (*UpdateGitRepoOK) Code

func (o *UpdateGitRepoOK) Code() int

Code gets the status code for the kubernetes git ops update git repo o k response

func (*UpdateGitRepoOK) Error

func (o *UpdateGitRepoOK) Error() string

func (*UpdateGitRepoOK) GetPayload

func (o *UpdateGitRepoOK) GetPayload() *models.ZsrvResponse

func (*UpdateGitRepoOK) IsClientError

func (o *UpdateGitRepoOK) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo o k response has a 4xx status code

func (*UpdateGitRepoOK) IsCode

func (o *UpdateGitRepoOK) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo o k response a status code equal to that given

func (*UpdateGitRepoOK) IsRedirect

func (o *UpdateGitRepoOK) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo o k response has a 3xx status code

func (*UpdateGitRepoOK) IsServerError

func (o *UpdateGitRepoOK) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo o k response has a 5xx status code

func (*UpdateGitRepoOK) IsSuccess

func (o *UpdateGitRepoOK) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo o k response has a 2xx status code

func (*UpdateGitRepoOK) String

func (o *UpdateGitRepoOK) String() string

type UpdateGitRepoParams

type UpdateGitRepoParams struct {

	/* XRequestID.

	   User-Agent specified id to track a request
	*/
	XRequestID *string

	// Body.
	Body UpdateGitRepoBody

	/* GitrepoID.

	   Unique identifier of the GitRepo to update (required). Example: 'gitrepo-abc123'
	*/
	GitrepoID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateGitRepoParams contains all the parameters to send to the API endpoint

for the kubernetes git ops update git repo operation.

Typically these are written to a http.Request.

func NewUpdateGitRepoParams

func NewUpdateGitRepoParams() *UpdateGitRepoParams

NewUpdateGitRepoParams creates a new UpdateGitRepoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateGitRepoParamsWithContext

func NewUpdateGitRepoParamsWithContext(ctx context.Context) *UpdateGitRepoParams

NewUpdateGitRepoParamsWithContext creates a new UpdateGitRepoParams object with the ability to set a context for a request.

func NewUpdateGitRepoParamsWithHTTPClient

func NewUpdateGitRepoParamsWithHTTPClient(client *http.Client) *UpdateGitRepoParams

NewUpdateGitRepoParamsWithHTTPClient creates a new UpdateGitRepoParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGitRepoParamsWithTimeout

func NewUpdateGitRepoParamsWithTimeout(timeout time.Duration) *UpdateGitRepoParams

NewUpdateGitRepoParamsWithTimeout creates a new UpdateGitRepoParams object with the ability to set a timeout on a request.

func (*UpdateGitRepoParams) SetBody

func (o *UpdateGitRepoParams) SetBody(body UpdateGitRepoBody)

SetBody adds the body to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) SetContext

func (o *UpdateGitRepoParams) SetContext(ctx context.Context)

SetContext adds the context to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) SetDefaults

func (o *UpdateGitRepoParams) SetDefaults()

SetDefaults hydrates default values in the kubernetes git ops update git repo params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateGitRepoParams) SetGitrepoID

func (o *UpdateGitRepoParams) SetGitrepoID(gitrepoID string)

SetGitrepoID adds the gitrepoId to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) SetHTTPClient

func (o *UpdateGitRepoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) SetTimeout

func (o *UpdateGitRepoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) SetXRequestID

func (o *UpdateGitRepoParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WithBody

WithBody adds the body to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WithContext

WithContext adds the context to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WithDefaults

func (o *UpdateGitRepoParams) WithDefaults() *UpdateGitRepoParams

WithDefaults hydrates default values in the kubernetes git ops update git repo params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateGitRepoParams) WithGitrepoID

func (o *UpdateGitRepoParams) WithGitrepoID(gitrepoID string) *UpdateGitRepoParams

WithGitrepoID adds the gitrepoID to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WithHTTPClient

func (o *UpdateGitRepoParams) WithHTTPClient(client *http.Client) *UpdateGitRepoParams

WithHTTPClient adds the HTTPClient to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WithTimeout

func (o *UpdateGitRepoParams) WithTimeout(timeout time.Duration) *UpdateGitRepoParams

WithTimeout adds the timeout to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WithXRequestID

func (o *UpdateGitRepoParams) WithXRequestID(xRequestID *string) *UpdateGitRepoParams

WithXRequestID adds the xRequestID to the kubernetes git ops update git repo params

func (*UpdateGitRepoParams) WriteToRequest

func (o *UpdateGitRepoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateGitRepoReader

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

UpdateGitRepoReader is a Reader for the UpdateGitRepo structure.

func (*UpdateGitRepoReader) ReadResponse

func (o *UpdateGitRepoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type UpdateGitRepoUnauthorized

type UpdateGitRepoUnauthorized struct {
	Payload *models.ZsrvResponse
}

UpdateGitRepoUnauthorized describes a response with status code 401, with default header values.

Unauthorized. Authentication credentials are missing or invalid.

func NewUpdateGitRepoUnauthorized

func NewUpdateGitRepoUnauthorized() *UpdateGitRepoUnauthorized

NewUpdateGitRepoUnauthorized creates a UpdateGitRepoUnauthorized with default headers values

func (*UpdateGitRepoUnauthorized) Code

func (o *UpdateGitRepoUnauthorized) Code() int

Code gets the status code for the kubernetes git ops update git repo unauthorized response

func (*UpdateGitRepoUnauthorized) Error

func (o *UpdateGitRepoUnauthorized) Error() string

func (*UpdateGitRepoUnauthorized) GetPayload

func (*UpdateGitRepoUnauthorized) IsClientError

func (o *UpdateGitRepoUnauthorized) IsClientError() bool

IsClientError returns true when this kubernetes git ops update git repo unauthorized response has a 4xx status code

func (*UpdateGitRepoUnauthorized) IsCode

func (o *UpdateGitRepoUnauthorized) IsCode(code int) bool

IsCode returns true when this kubernetes git ops update git repo unauthorized response a status code equal to that given

func (*UpdateGitRepoUnauthorized) IsRedirect

func (o *UpdateGitRepoUnauthorized) IsRedirect() bool

IsRedirect returns true when this kubernetes git ops update git repo unauthorized response has a 3xx status code

func (*UpdateGitRepoUnauthorized) IsServerError

func (o *UpdateGitRepoUnauthorized) IsServerError() bool

IsServerError returns true when this kubernetes git ops update git repo unauthorized response has a 5xx status code

func (*UpdateGitRepoUnauthorized) IsSuccess

func (o *UpdateGitRepoUnauthorized) IsSuccess() bool

IsSuccess returns true when this kubernetes git ops update git repo unauthorized response has a 2xx status code

func (*UpdateGitRepoUnauthorized) String

func (o *UpdateGitRepoUnauthorized) String() string

Jump to

Keyboard shortcuts

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