alpha

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package alpha defines operations in the declarative SDK.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const ConnectionMaxPage = -1
View Source
const RepositoryMaxPage = -1

Variables

View Source
var YAML_connection = []byte("info:\n  title: Cloudbuildv2/Connection\n  description: The Cloudbuildv2 Connection resource\n  x-dcl-struct-name: Connection\n  x-dcl-has-iam: false\npaths:\n  get:\n    description: The function used to get information about a Connection\n    parameters:\n    - name: connection\n      required: true\n      description: A full instance of a Connection\n  apply:\n    description: The function used to apply information about a Connection\n    parameters:\n    - name: connection\n      required: true\n      description: A full instance of a Connection\n  delete:\n    description: The function used to delete a Connection\n    parameters:\n    - name: connection\n      required: true\n      description: A full instance of a Connection\n  deleteAll:\n    description: The function used to delete all Connection\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n  list:\n    description: The function used to list information about many Connection\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\ncomponents:\n  schemas:\n    Connection:\n      title: Connection\n      x-dcl-id: projects/{{project}}/locations/{{location}}/connections/{{name}}\n      x-dcl-parent-container: project\n      x-dcl-has-create: true\n      x-dcl-has-iam: false\n      x-dcl-read-timeout: 0\n      x-dcl-apply-timeout: 0\n      x-dcl-delete-timeout: 0\n      type: object\n      required:\n      - name\n      - project\n      - location\n      properties:\n        annotations:\n          type: object\n          additionalProperties:\n            type: string\n          x-dcl-go-name: Annotations\n          description: Allows clients to store small amounts of arbitrary data.\n        bitbucketDataCenterConfig:\n          type: object\n          x-dcl-go-name: BitbucketDataCenterConfig\n          x-dcl-go-type: ConnectionBitbucketDataCenterConfig\n          description: Configuration for connections to Bitbucket Data Center.\n          x-dcl-conflicts:\n          - githubConfig\n          - githubEnterpriseConfig\n          - gitlabConfig\n          required:\n          - hostUri\n          - webhookSecretSecretVersion\n          - readAuthorizerCredential\n          - authorizerCredential\n          properties:\n            authorizerCredential:\n              type: object\n              x-dcl-go-name: AuthorizerCredential\n              x-dcl-go-type: ConnectionBitbucketDataCenterConfigAuthorizerCredential\n              description: Required. A http access token with the `REPO_ADMIN` scope\n                access.\n              required:\n              - userTokenSecretVersion\n              properties:\n                userTokenSecretVersion:\n                  type: string\n                  x-dcl-go-name: UserTokenSecretVersion\n                  description: 'Required. A SecretManager resource containing the\n                    user token that authorizes the Cloud Build connection. Format:\n                    `projects/*/secrets/*/versions/*`.'\n                  x-dcl-references:\n                  - resource: Secretmanager/SecretVersion\n                    field: selfLink\n                username:\n                  type: string\n                  x-dcl-go-name: Username\n                  readOnly: true\n                  description: Output only. The username associated to this token.\n            hostUri:\n              type: string\n              x-dcl-go-name: HostUri\n              description: Required. The URI of the Bitbucket Data Center instance\n                or cluster this connection is for.\n            readAuthorizerCredential:\n              type: object\n              x-dcl-go-name: ReadAuthorizerCredential\n              x-dcl-go-type: ConnectionBitbucketDataCenterConfigReadAuthorizerCredential\n              description: Required. A http access token with the `REPO_READ` access.\n              required:\n              - userTokenSecretVersion\n              properties:\n                userTokenSecretVersion:\n                  type: string\n                  x-dcl-go-name: UserTokenSecretVersion\n                  description: 'Required. A SecretManager resource containing the\n                    user token that authorizes the Cloud Build connection. Format:\n                    `projects/*/secrets/*/versions/*`.'\n                  x-dcl-references:\n                  - resource: Secretmanager/SecretVersion\n                    field: selfLink\n                username:\n                  type: string\n                  x-dcl-go-name: Username\n                  readOnly: true\n                  description: Output only. The username associated to this token.\n            serverVersion:\n              type: string\n              x-dcl-go-name: ServerVersion\n              readOnly: true\n              description: Output only. Version of the Bitbucket Data Center running\n                on the `host_uri`.\n            serviceDirectoryConfig:\n              type: object\n              x-dcl-go-name: ServiceDirectoryConfig\n              x-dcl-go-type: ConnectionBitbucketDataCenterConfigServiceDirectoryConfig\n              description: Optional. Configuration for using Service Directory to\n                privately connect to a Bitbucket Data Center. This should only be\n                set if the Bitbucket Data Center is hosted on-premises and not reachable\n                by public internet. If this field is left empty, calls to the Bitbucket\n                Data Center will be made over the public internet.\n              required:\n              - service\n              properties:\n                service:\n                  type: string\n                  x-dcl-go-name: Service\n                  description: 'Required. The Service Directory service name. Format:\n                    projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.'\n                  x-dcl-references:\n                  - resource: Servicedirectory/Service\n                    field: selfLink\n            sslCa:\n              type: string\n              x-dcl-go-name: SslCa\n              description: Optional. SSL certificate to use for requests to the Bitbucket\n                Data Center.\n            webhookSecretSecretVersion:\n              type: string\n              x-dcl-go-name: WebhookSecretSecretVersion\n              description: Required. Immutable. SecretManager resource containing\n                the webhook secret used to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.\n              x-dcl-references:\n              - resource: Secretmanager/SecretVersion\n                field: selfLink\n        createTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: CreateTime\n          readOnly: true\n          description: Output only. Server assigned timestamp for when the connection\n            was created.\n          x-kubernetes-immutable: true\n        disabled:\n          type: boolean\n          x-dcl-go-name: Disabled\n          description: If disabled is set to true, functionality is disabled for this\n            connection. Repository based API methods and webhooks processing for repositories\n            in this connection will be disabled.\n        etag:\n          type: string\n          x-dcl-go-name: Etag\n          readOnly: true\n          description: This checksum is computed by the server based on the value\n            of other fields, and may be sent on update and delete requests to ensure\n            the client has an up-to-date value before proceeding.\n          x-kubernetes-immutable: true\n        githubConfig:\n          type: object\n          x-dcl-go-name: GithubConfig\n          x-dcl-go-type: ConnectionGithubConfig\n          description: Configuration for connections to github.com.\n          x-dcl-conflicts:\n          - githubEnterpriseConfig\n          - gitlabConfig\n          - bitbucketDataCenterConfig\n          properties:\n            appInstallationId:\n              type: integer\n              format: int64\n              x-dcl-go-name: AppInstallationId\n              description: GitHub App installation id.\n            authorizerCredential:\n              type: object\n              x-dcl-go-name: AuthorizerCredential\n              x-dcl-go-type: ConnectionGithubConfigAuthorizerCredential\n              description: OAuth credential of the account that authorized the Cloud\n                Build GitHub App. It is recommended to use a robot account instead\n                of a human user account. The OAuth token must be tied to the Cloud\n                Build GitHub App.\n              properties:\n                oauthTokenSecretVersion:\n                  type: string\n                  x-dcl-go-name: OAuthTokenSecretVersion\n                  description: 'A SecretManager resource containing the OAuth token\n                    that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.'\n                  x-dcl-references:\n                  - resource: Secretmanager/SecretVersion\n                    field: selfLink\n                username:\n                  type: string\n                  x-dcl-go-name: Username\n                  readOnly: true\n                  description: Output only. The username associated to this token.\n        githubEnterpriseConfig:\n          type: object\n          x-dcl-go-name: GithubEnterpriseConfig\n          x-dcl-go-type: ConnectionGithubEnterpriseConfig\n          description: Configuration for connections to an instance of GitHub Enterprise.\n          x-dcl-conflicts:\n          - githubConfig\n          - gitlabConfig\n          - bitbucketDataCenterConfig\n          required:\n          - hostUri\n          properties:\n            appId:\n              type: integer\n              format: int64\n              x-dcl-go-name: AppId\n              description: Id of the GitHub App created from the manifest.\n            appInstallationId:\n              type: integer\n              format: int64\n              x-dcl-go-name: AppInstallationId\n              description: ID of the installation of the GitHub App.\n            appSlug:\n              type: string\n              x-dcl-go-name: AppSlug\n              description: The URL-friendly name of the GitHub App.\n            hostUri:\n              type: string\n              x-dcl-go-name: HostUri\n              description: Required. The URI of the GitHub Enterprise host this connection\n                is for.\n            privateKeySecretVersion:\n              type: string\n              x-dcl-go-name: PrivateKeySecretVersion\n              description: SecretManager resource containing the private key of the\n                GitHub App, formatted as `projects/*/secrets/*/versions/*`.\n              x-dcl-references:\n              - resource: Secretmanager/SecretVersion\n                field: selfLink\n            serviceDirectoryConfig:\n              type: object\n              x-dcl-go-name: ServiceDirectoryConfig\n              x-dcl-go-type: ConnectionGithubEnterpriseConfigServiceDirectoryConfig\n              description: Configuration for using Service Directory to privately\n                connect to a GitHub Enterprise server. This should only be set if\n                the GitHub Enterprise server is hosted on-premises and not reachable\n                by public internet. If this field is left empty, calls to the GitHub\n                Enterprise server will be made over the public internet.\n              required:\n              - service\n              properties:\n                service:\n                  type: string\n                  x-dcl-go-name: Service\n                  description: 'Required. The Service Directory service name. Format:\n                    projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.'\n                  x-dcl-references:\n                  - resource: Servicedirectory/Service\n                    field: selfLink\n            sslCa:\n              type: string\n              x-dcl-go-name: SslCa\n              description: SSL certificate to use for requests to GitHub Enterprise.\n            webhookSecretSecretVersion:\n              type: string\n              x-dcl-go-name: WebhookSecretSecretVersion\n              description: SecretManager resource containing the webhook secret of\n                the GitHub App, formatted as `projects/*/secrets/*/versions/*`.\n              x-dcl-references:\n              - resource: Secretmanager/SecretVersion\n                field: selfLink\n        gitlabConfig:\n          type: object\n          x-dcl-go-name: GitlabConfig\n          x-dcl-go-type: ConnectionGitlabConfig\n          description: Configuration for connections to gitlab.com or an instance\n            of GitLab Enterprise.\n          x-dcl-conflicts:\n          - githubConfig\n          - githubEnterpriseConfig\n          - bitbucketDataCenterConfig\n          required:\n          - webhookSecretSecretVersion\n          - readAuthorizerCredential\n          - authorizerCredential\n          properties:\n            authorizerCredential:\n              type: object\n              x-dcl-go-name: AuthorizerCredential\n              x-dcl-go-type: ConnectionGitlabConfigAuthorizerCredential\n              description: Required. A GitLab personal access token with the `api`\n                scope access.\n              required:\n              - userTokenSecretVersion\n              properties:\n                userTokenSecretVersion:\n                  type: string\n                  x-dcl-go-name: UserTokenSecretVersion\n                  description: 'Required. A SecretManager resource containing the\n                    user token that authorizes the Cloud Build connection. Format:\n                    `projects/*/secrets/*/versions/*`.'\n                  x-dcl-references:\n                  - resource: Secretmanager/SecretVersion\n                    field: selfLink\n                username:\n                  type: string\n                  x-dcl-go-name: Username\n                  readOnly: true\n                  description: Output only. The username associated to this token.\n            hostUri:\n              type: string\n              x-dcl-go-name: HostUri\n              description: The URI of the GitLab Enterprise host this connection is\n                for. If not specified, the default value is https://gitlab.com.\n              x-dcl-server-default: true\n            readAuthorizerCredential:\n              type: object\n              x-dcl-go-name: ReadAuthorizerCredential\n              x-dcl-go-type: ConnectionGitlabConfigReadAuthorizerCredential\n              description: Required. A GitLab personal access token with the minimum\n                `read_api` scope access.\n              required:\n              - userTokenSecretVersion\n              properties:\n                userTokenSecretVersion:\n                  type: string\n                  x-dcl-go-name: UserTokenSecretVersion\n                  description: 'Required. A SecretManager resource containing the\n                    user token that authorizes the Cloud Build connection. Format:\n                    `projects/*/secrets/*/versions/*`.'\n                  x-dcl-references:\n                  - resource: Secretmanager/SecretVersion\n                    field: selfLink\n                username:\n                  type: string\n                  x-dcl-go-name: Username\n                  readOnly: true\n                  description: Output only. The username associated to this token.\n            serverVersion:\n              type: string\n              x-dcl-go-name: ServerVersion\n              readOnly: true\n              description: Output only. Version of the GitLab Enterprise server running\n                on the `host_uri`.\n            serviceDirectoryConfig:\n              type: object\n              x-dcl-go-name: ServiceDirectoryConfig\n              x-dcl-go-type: ConnectionGitlabConfigServiceDirectoryConfig\n              description: Configuration for using Service Directory to privately\n                connect to a GitLab Enterprise server. This should only be set if\n                the GitLab Enterprise server is hosted on-premises and not reachable\n                by public internet. If this field is left empty, calls to the GitLab\n                Enterprise server will be made over the public internet.\n              required:\n              - service\n              properties:\n                service:\n                  type: string\n                  x-dcl-go-name: Service\n                  description: 'Required. The Service Directory service name. Format:\n                    projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.'\n                  x-dcl-references:\n                  - resource: Servicedirectory/Service\n                    field: selfLink\n            sslCa:\n              type: string\n              x-dcl-go-name: SslCa\n              description: SSL certificate to use for requests to GitLab Enterprise.\n            webhookSecretSecretVersion:\n              type: string\n              x-dcl-go-name: WebhookSecretSecretVersion\n              description: Required. Immutable. SecretManager resource containing\n                the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.\n              x-dcl-references:\n              - resource: Secretmanager/SecretVersion\n                field: selfLink\n        installationState:\n          type: object\n          x-dcl-go-name: InstallationState\n          x-dcl-go-type: ConnectionInstallationState\n          readOnly: true\n          description: Output only. Installation state of the Connection.\n          x-kubernetes-immutable: true\n          properties:\n            actionUri:\n              type: string\n              x-dcl-go-name: ActionUri\n              readOnly: true\n              description: Output only. Link to follow for next action. Empty string\n                if the installation is already complete.\n              x-kubernetes-immutable: true\n            message:\n              type: string\n              x-dcl-go-name: Message\n              readOnly: true\n              description: Output only. Message of what the user should do next to\n                continue the installation. Empty string if the installation is already\n                complete.\n              x-kubernetes-immutable: true\n            stage:\n              type: string\n              x-dcl-go-name: Stage\n              x-dcl-go-type: ConnectionInstallationStateStageEnum\n              readOnly: true\n              description: 'Output only. Current step of the installation process.\n                Possible values: STAGE_UNSPECIFIED, PENDING_CREATE_APP, PENDING_USER_OAUTH,\n                PENDING_INSTALL_APP, COMPLETE'\n              x-kubernetes-immutable: true\n              enum:\n              - STAGE_UNSPECIFIED\n              - PENDING_CREATE_APP\n              - PENDING_USER_OAUTH\n              - PENDING_INSTALL_APP\n              - COMPLETE\n        location:\n          type: string\n          x-dcl-go-name: Location\n          description: The location for the resource\n          x-kubernetes-immutable: true\n        name:\n          type: string\n          x-dcl-go-name: Name\n          description: Immutable. The resource name of the connection, in the format\n            `projects/{project}/locations/{location}/connections/{connection_id}`.\n          x-kubernetes-immutable: true\n        project:\n          type: string\n          x-dcl-go-name: Project\n          description: The project for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudresourcemanager/Project\n            field: name\n            parent: true\n        reconciling:\n          type: boolean\n          x-dcl-go-name: Reconciling\n          readOnly: true\n          description: Output only. Set to true when the connection is being set up\n            or updated in the background.\n          x-kubernetes-immutable: true\n        updateTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: UpdateTime\n          readOnly: true\n          description: Output only. Server assigned timestamp for when the connection\n            was updated.\n          x-kubernetes-immutable: true\n")

blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudbuildv2/alpha/connection.yaml

View Source
var YAML_repository = []byte("info:\n  title: Cloudbuildv2/Repository\n  description: The Cloudbuildv2 Repository resource\n  x-dcl-struct-name: Repository\n  x-dcl-has-iam: false\npaths:\n  get:\n    description: The function used to get information about a Repository\n    parameters:\n    - name: repository\n      required: true\n      description: A full instance of a Repository\n  apply:\n    description: The function used to apply information about a Repository\n    parameters:\n    - name: repository\n      required: true\n      description: A full instance of a Repository\n  delete:\n    description: The function used to delete a Repository\n    parameters:\n    - name: repository\n      required: true\n      description: A full instance of a Repository\n  deleteAll:\n    description: The function used to delete all Repository\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n    - name: connection\n      required: true\n      schema:\n        type: string\n  list:\n    description: The function used to list information about many Repository\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n    - name: connection\n      required: true\n      schema:\n        type: string\ncomponents:\n  schemas:\n    Repository:\n      title: Repository\n      x-dcl-id: projects/{{project}}/locations/{{location}}/connections/{{connection}}/repositories/{{name}}\n      x-dcl-parent-container: project\n      x-dcl-has-create: true\n      x-dcl-has-iam: false\n      x-dcl-read-timeout: 0\n      x-dcl-apply-timeout: 0\n      x-dcl-delete-timeout: 0\n      type: object\n      required:\n      - name\n      - remoteUri\n      - connection\n      properties:\n        annotations:\n          type: object\n          additionalProperties:\n            type: string\n          x-dcl-go-name: Annotations\n          description: Allows clients to store small amounts of arbitrary data.\n          x-kubernetes-immutable: true\n        connection:\n          type: string\n          x-dcl-go-name: Connection\n          description: The connection for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudbuildv2/Connection\n            field: name\n            parent: true\n        createTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: CreateTime\n          readOnly: true\n          description: Output only. Server assigned timestamp for when the connection\n            was created.\n          x-kubernetes-immutable: true\n        etag:\n          type: string\n          x-dcl-go-name: Etag\n          readOnly: true\n          description: This checksum is computed by the server based on the value\n            of other fields, and may be sent on update and delete requests to ensure\n            the client has an up-to-date value before proceeding.\n          x-kubernetes-immutable: true\n        location:\n          type: string\n          x-dcl-go-name: Location\n          description: The location for the resource\n          x-kubernetes-immutable: true\n          x-dcl-extract-if-empty: true\n        name:\n          type: string\n          x-dcl-go-name: Name\n          description: Name of the repository.\n          x-kubernetes-immutable: true\n        project:\n          type: string\n          x-dcl-go-name: Project\n          description: The project for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudresourcemanager/Project\n            field: name\n            parent: true\n          x-dcl-extract-if-empty: true\n        remoteUri:\n          type: string\n          x-dcl-go-name: RemoteUri\n          description: Required. Git Clone HTTPS URI.\n          x-kubernetes-immutable: true\n        updateTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: UpdateTime\n          readOnly: true\n          description: Output only. Server assigned timestamp for when the connection\n            was updated.\n          x-kubernetes-immutable: true\n")

blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudbuildv2/alpha/repository.yaml

Functions

func DCLConnectionSchema

func DCLConnectionSchema() *dcl.Schema

func DCLRepositorySchema

func DCLRepositorySchema() *dcl.Schema

Types

type Client

type Client struct {
	Config *dcl.Config
}

The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.

func NewClient

func NewClient(c *dcl.Config) *Client

NewClient creates a client that retries all operations a few times each.

func (*Client) ApplyConnection

func (c *Client) ApplyConnection(ctx context.Context, rawDesired *Connection, opts ...dcl.ApplyOption) (*Connection, error)

func (*Client) ApplyRepository

func (c *Client) ApplyRepository(ctx context.Context, rawDesired *Repository, opts ...dcl.ApplyOption) (*Repository, error)

func (*Client) DeleteAllConnection

func (c *Client) DeleteAllConnection(ctx context.Context, project, location string, filter func(*Connection) bool) error

DeleteAllConnection deletes all resources that the filter functions returns true on.

func (*Client) DeleteAllRepository

func (c *Client) DeleteAllRepository(ctx context.Context, project, location, connection string, filter func(*Repository) bool) error

DeleteAllRepository deletes all resources that the filter functions returns true on.

func (*Client) DeleteConnection

func (c *Client) DeleteConnection(ctx context.Context, r *Connection) error

func (*Client) DeleteRepository

func (c *Client) DeleteRepository(ctx context.Context, r *Repository) error

func (*Client) GetConnection

func (c *Client) GetConnection(ctx context.Context, r *Connection) (*Connection, error)

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, r *Repository) (*Repository, error)

func (*Client) ListConnection

func (c *Client) ListConnection(ctx context.Context, project, location string) (*ConnectionList, error)

func (*Client) ListConnectionWithMaxResults

func (c *Client) ListConnectionWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*ConnectionList, error)

func (*Client) ListRepository

func (c *Client) ListRepository(ctx context.Context, project, location, connection string) (*RepositoryList, error)

func (*Client) ListRepositoryWithMaxResults

func (c *Client) ListRepositoryWithMaxResults(ctx context.Context, project, location, connection string, pageSize int32) (*RepositoryList, error)

type Connection

type Connection struct {
	Name                      *string                              `json:"name"`
	CreateTime                *string                              `json:"createTime"`
	UpdateTime                *string                              `json:"updateTime"`
	GithubConfig              *ConnectionGithubConfig              `json:"githubConfig"`
	GithubEnterpriseConfig    *ConnectionGithubEnterpriseConfig    `json:"githubEnterpriseConfig"`
	GitlabConfig              *ConnectionGitlabConfig              `json:"gitlabConfig"`
	BitbucketDataCenterConfig *ConnectionBitbucketDataCenterConfig `json:"bitbucketDataCenterConfig"`
	InstallationState         *ConnectionInstallationState         `json:"installationState"`
	Disabled                  *bool                                `json:"disabled"`
	Reconciling               *bool                                `json:"reconciling"`
	Annotations               map[string]string                    `json:"annotations"`
	Etag                      *string                              `json:"etag"`
	Project                   *string                              `json:"project"`
	Location                  *string                              `json:"location"`
}

func (*Connection) Describe

func (r *Connection) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*Connection) ID

func (r *Connection) ID() (string, error)

func (*Connection) String

func (r *Connection) String() string

type ConnectionBitbucketDataCenterConfig added in v1.60.0

type ConnectionBitbucketDataCenterConfig struct {
	HostUri                    *string                                                      `json:"hostUri"`
	WebhookSecretSecretVersion *string                                                      `json:"webhookSecretSecretVersion"`
	ReadAuthorizerCredential   *ConnectionBitbucketDataCenterConfigReadAuthorizerCredential `json:"readAuthorizerCredential"`
	AuthorizerCredential       *ConnectionBitbucketDataCenterConfigAuthorizerCredential     `json:"authorizerCredential"`
	ServiceDirectoryConfig     *ConnectionBitbucketDataCenterConfigServiceDirectoryConfig   `json:"serviceDirectoryConfig"`
	SslCa                      *string                                                      `json:"sslCa"`
	ServerVersion              *string                                                      `json:"serverVersion"`
	// contains filtered or unexported fields
}
var EmptyConnectionBitbucketDataCenterConfig *ConnectionBitbucketDataCenterConfig = &ConnectionBitbucketDataCenterConfig{empty: true}

This object is used to assert a desired state where this ConnectionBitbucketDataCenterConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionBitbucketDataCenterConfig) Empty added in v1.60.0

func (*ConnectionBitbucketDataCenterConfig) HashCode added in v1.60.0

func (*ConnectionBitbucketDataCenterConfig) String added in v1.60.0

func (*ConnectionBitbucketDataCenterConfig) UnmarshalJSON added in v1.60.0

func (r *ConnectionBitbucketDataCenterConfig) UnmarshalJSON(data []byte) error

type ConnectionBitbucketDataCenterConfigAuthorizerCredential added in v1.60.0

type ConnectionBitbucketDataCenterConfigAuthorizerCredential struct {
	UserTokenSecretVersion *string `json:"userTokenSecretVersion"`
	Username               *string `json:"username"`
	// contains filtered or unexported fields
}
var EmptyConnectionBitbucketDataCenterConfigAuthorizerCredential *ConnectionBitbucketDataCenterConfigAuthorizerCredential = &ConnectionBitbucketDataCenterConfigAuthorizerCredential{empty: true}

This object is used to assert a desired state where this ConnectionBitbucketDataCenterConfigAuthorizerCredential is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionBitbucketDataCenterConfigAuthorizerCredential) Empty added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigAuthorizerCredential) HashCode added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigAuthorizerCredential) String added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigAuthorizerCredential) UnmarshalJSON added in v1.60.0

type ConnectionBitbucketDataCenterConfigReadAuthorizerCredential added in v1.60.0

type ConnectionBitbucketDataCenterConfigReadAuthorizerCredential struct {
	UserTokenSecretVersion *string `json:"userTokenSecretVersion"`
	Username               *string `json:"username"`
	// contains filtered or unexported fields
}
var EmptyConnectionBitbucketDataCenterConfigReadAuthorizerCredential *ConnectionBitbucketDataCenterConfigReadAuthorizerCredential = &ConnectionBitbucketDataCenterConfigReadAuthorizerCredential{empty: true}

This object is used to assert a desired state where this ConnectionBitbucketDataCenterConfigReadAuthorizerCredential is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionBitbucketDataCenterConfigReadAuthorizerCredential) Empty added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigReadAuthorizerCredential) HashCode added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigReadAuthorizerCredential) String added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigReadAuthorizerCredential) UnmarshalJSON added in v1.60.0

type ConnectionBitbucketDataCenterConfigServiceDirectoryConfig added in v1.60.0

type ConnectionBitbucketDataCenterConfigServiceDirectoryConfig struct {
	Service *string `json:"service"`
	// contains filtered or unexported fields
}
var EmptyConnectionBitbucketDataCenterConfigServiceDirectoryConfig *ConnectionBitbucketDataCenterConfigServiceDirectoryConfig = &ConnectionBitbucketDataCenterConfigServiceDirectoryConfig{empty: true}

This object is used to assert a desired state where this ConnectionBitbucketDataCenterConfigServiceDirectoryConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionBitbucketDataCenterConfigServiceDirectoryConfig) Empty added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigServiceDirectoryConfig) HashCode added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigServiceDirectoryConfig) String added in v1.60.0

func (*ConnectionBitbucketDataCenterConfigServiceDirectoryConfig) UnmarshalJSON added in v1.60.0

type ConnectionGithubConfig

type ConnectionGithubConfig struct {
	AuthorizerCredential *ConnectionGithubConfigAuthorizerCredential `json:"authorizerCredential"`
	AppInstallationId    *int64                                      `json:"appInstallationId"`
	// contains filtered or unexported fields
}
var EmptyConnectionGithubConfig *ConnectionGithubConfig = &ConnectionGithubConfig{empty: true}

This object is used to assert a desired state where this ConnectionGithubConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGithubConfig) Empty

func (r *ConnectionGithubConfig) Empty() bool

func (*ConnectionGithubConfig) HashCode

func (r *ConnectionGithubConfig) HashCode() string

func (*ConnectionGithubConfig) String

func (r *ConnectionGithubConfig) String() string

func (*ConnectionGithubConfig) UnmarshalJSON

func (r *ConnectionGithubConfig) UnmarshalJSON(data []byte) error

type ConnectionGithubConfigAuthorizerCredential

type ConnectionGithubConfigAuthorizerCredential struct {
	OAuthTokenSecretVersion *string `json:"oauthTokenSecretVersion"`
	Username                *string `json:"username"`
	// contains filtered or unexported fields
}
var EmptyConnectionGithubConfigAuthorizerCredential *ConnectionGithubConfigAuthorizerCredential = &ConnectionGithubConfigAuthorizerCredential{empty: true}

This object is used to assert a desired state where this ConnectionGithubConfigAuthorizerCredential is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGithubConfigAuthorizerCredential) Empty

func (*ConnectionGithubConfigAuthorizerCredential) HashCode

func (*ConnectionGithubConfigAuthorizerCredential) String

func (*ConnectionGithubConfigAuthorizerCredential) UnmarshalJSON

func (r *ConnectionGithubConfigAuthorizerCredential) UnmarshalJSON(data []byte) error

type ConnectionGithubEnterpriseConfig

type ConnectionGithubEnterpriseConfig struct {
	HostUri                    *string                                                 `json:"hostUri"`
	AppId                      *int64                                                  `json:"appId"`
	AppSlug                    *string                                                 `json:"appSlug"`
	PrivateKeySecretVersion    *string                                                 `json:"privateKeySecretVersion"`
	WebhookSecretSecretVersion *string                                                 `json:"webhookSecretSecretVersion"`
	AppInstallationId          *int64                                                  `json:"appInstallationId"`
	ServiceDirectoryConfig     *ConnectionGithubEnterpriseConfigServiceDirectoryConfig `json:"serviceDirectoryConfig"`
	SslCa                      *string                                                 `json:"sslCa"`
	// contains filtered or unexported fields
}
var EmptyConnectionGithubEnterpriseConfig *ConnectionGithubEnterpriseConfig = &ConnectionGithubEnterpriseConfig{empty: true}

This object is used to assert a desired state where this ConnectionGithubEnterpriseConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGithubEnterpriseConfig) Empty

func (*ConnectionGithubEnterpriseConfig) HashCode

func (*ConnectionGithubEnterpriseConfig) String

func (*ConnectionGithubEnterpriseConfig) UnmarshalJSON

func (r *ConnectionGithubEnterpriseConfig) UnmarshalJSON(data []byte) error

type ConnectionGithubEnterpriseConfigServiceDirectoryConfig

type ConnectionGithubEnterpriseConfigServiceDirectoryConfig struct {
	Service *string `json:"service"`
	// contains filtered or unexported fields
}
var EmptyConnectionGithubEnterpriseConfigServiceDirectoryConfig *ConnectionGithubEnterpriseConfigServiceDirectoryConfig = &ConnectionGithubEnterpriseConfigServiceDirectoryConfig{empty: true}

This object is used to assert a desired state where this ConnectionGithubEnterpriseConfigServiceDirectoryConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGithubEnterpriseConfigServiceDirectoryConfig) Empty

func (*ConnectionGithubEnterpriseConfigServiceDirectoryConfig) HashCode

func (*ConnectionGithubEnterpriseConfigServiceDirectoryConfig) String

func (*ConnectionGithubEnterpriseConfigServiceDirectoryConfig) UnmarshalJSON

type ConnectionGitlabConfig added in v1.40.0

type ConnectionGitlabConfig struct {
	HostUri                    *string                                         `json:"hostUri"`
	WebhookSecretSecretVersion *string                                         `json:"webhookSecretSecretVersion"`
	ReadAuthorizerCredential   *ConnectionGitlabConfigReadAuthorizerCredential `json:"readAuthorizerCredential"`
	AuthorizerCredential       *ConnectionGitlabConfigAuthorizerCredential     `json:"authorizerCredential"`
	ServiceDirectoryConfig     *ConnectionGitlabConfigServiceDirectoryConfig   `json:"serviceDirectoryConfig"`
	SslCa                      *string                                         `json:"sslCa"`
	ServerVersion              *string                                         `json:"serverVersion"`
	// contains filtered or unexported fields
}
var EmptyConnectionGitlabConfig *ConnectionGitlabConfig = &ConnectionGitlabConfig{empty: true}

This object is used to assert a desired state where this ConnectionGitlabConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGitlabConfig) Empty added in v1.40.0

func (r *ConnectionGitlabConfig) Empty() bool

func (*ConnectionGitlabConfig) HashCode added in v1.40.0

func (r *ConnectionGitlabConfig) HashCode() string

func (*ConnectionGitlabConfig) String added in v1.40.0

func (r *ConnectionGitlabConfig) String() string

func (*ConnectionGitlabConfig) UnmarshalJSON added in v1.40.0

func (r *ConnectionGitlabConfig) UnmarshalJSON(data []byte) error

type ConnectionGitlabConfigAuthorizerCredential added in v1.40.0

type ConnectionGitlabConfigAuthorizerCredential struct {
	UserTokenSecretVersion *string `json:"userTokenSecretVersion"`
	Username               *string `json:"username"`
	// contains filtered or unexported fields
}
var EmptyConnectionGitlabConfigAuthorizerCredential *ConnectionGitlabConfigAuthorizerCredential = &ConnectionGitlabConfigAuthorizerCredential{empty: true}

This object is used to assert a desired state where this ConnectionGitlabConfigAuthorizerCredential is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGitlabConfigAuthorizerCredential) Empty added in v1.40.0

func (*ConnectionGitlabConfigAuthorizerCredential) HashCode added in v1.40.0

func (*ConnectionGitlabConfigAuthorizerCredential) String added in v1.40.0

func (*ConnectionGitlabConfigAuthorizerCredential) UnmarshalJSON added in v1.40.0

func (r *ConnectionGitlabConfigAuthorizerCredential) UnmarshalJSON(data []byte) error

type ConnectionGitlabConfigReadAuthorizerCredential added in v1.40.0

type ConnectionGitlabConfigReadAuthorizerCredential struct {
	UserTokenSecretVersion *string `json:"userTokenSecretVersion"`
	Username               *string `json:"username"`
	// contains filtered or unexported fields
}
var EmptyConnectionGitlabConfigReadAuthorizerCredential *ConnectionGitlabConfigReadAuthorizerCredential = &ConnectionGitlabConfigReadAuthorizerCredential{empty: true}

This object is used to assert a desired state where this ConnectionGitlabConfigReadAuthorizerCredential is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGitlabConfigReadAuthorizerCredential) Empty added in v1.40.0

func (*ConnectionGitlabConfigReadAuthorizerCredential) HashCode added in v1.40.0

func (*ConnectionGitlabConfigReadAuthorizerCredential) String added in v1.40.0

func (*ConnectionGitlabConfigReadAuthorizerCredential) UnmarshalJSON added in v1.40.0

type ConnectionGitlabConfigServiceDirectoryConfig added in v1.40.0

type ConnectionGitlabConfigServiceDirectoryConfig struct {
	Service *string `json:"service"`
	// contains filtered or unexported fields
}
var EmptyConnectionGitlabConfigServiceDirectoryConfig *ConnectionGitlabConfigServiceDirectoryConfig = &ConnectionGitlabConfigServiceDirectoryConfig{empty: true}

This object is used to assert a desired state where this ConnectionGitlabConfigServiceDirectoryConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionGitlabConfigServiceDirectoryConfig) Empty added in v1.40.0

func (*ConnectionGitlabConfigServiceDirectoryConfig) HashCode added in v1.40.0

func (*ConnectionGitlabConfigServiceDirectoryConfig) String added in v1.40.0

func (*ConnectionGitlabConfigServiceDirectoryConfig) UnmarshalJSON added in v1.40.0

func (r *ConnectionGitlabConfigServiceDirectoryConfig) UnmarshalJSON(data []byte) error

type ConnectionInstallationState

type ConnectionInstallationState struct {
	Stage     *ConnectionInstallationStateStageEnum `json:"stage"`
	Message   *string                               `json:"message"`
	ActionUri *string                               `json:"actionUri"`
	// contains filtered or unexported fields
}
var EmptyConnectionInstallationState *ConnectionInstallationState = &ConnectionInstallationState{empty: true}

This object is used to assert a desired state where this ConnectionInstallationState is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*ConnectionInstallationState) Empty

func (r *ConnectionInstallationState) Empty() bool

func (*ConnectionInstallationState) HashCode

func (r *ConnectionInstallationState) HashCode() string

func (*ConnectionInstallationState) String

func (r *ConnectionInstallationState) String() string

func (*ConnectionInstallationState) UnmarshalJSON

func (r *ConnectionInstallationState) UnmarshalJSON(data []byte) error

type ConnectionInstallationStateStageEnum

type ConnectionInstallationStateStageEnum string

The enum ConnectionInstallationStateStageEnum.

func ConnectionInstallationStateStageEnumRef

func ConnectionInstallationStateStageEnumRef(s string) *ConnectionInstallationStateStageEnum

ConnectionInstallationStateStageEnumRef returns a *ConnectionInstallationStateStageEnum with the value of string s If the empty string is provided, nil is returned.

func (ConnectionInstallationStateStageEnum) Validate

type ConnectionList

type ConnectionList struct {
	Items []*Connection
	// contains filtered or unexported fields
}

func (*ConnectionList) HasNext

func (l *ConnectionList) HasNext() bool

func (*ConnectionList) Next

func (l *ConnectionList) Next(ctx context.Context, c *Client) error

type Repository

type Repository struct {
	Name        *string           `json:"name"`
	RemoteUri   *string           `json:"remoteUri"`
	CreateTime  *string           `json:"createTime"`
	UpdateTime  *string           `json:"updateTime"`
	Annotations map[string]string `json:"annotations"`
	Etag        *string           `json:"etag"`
	Project     *string           `json:"project"`
	Location    *string           `json:"location"`
	Connection  *string           `json:"connection"`
}

func (*Repository) Describe

func (r *Repository) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*Repository) ID

func (r *Repository) ID() (string, error)

func (*Repository) String

func (r *Repository) String() string

type RepositoryList

type RepositoryList struct {
	Items []*Repository
	// contains filtered or unexported fields
}

func (*RepositoryList) HasNext

func (l *RepositoryList) HasNext() bool

func (*RepositoryList) Next

func (l *RepositoryList) Next(ctx context.Context, c *Client) error

Jump to

Keyboard shortcuts

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