Google Cloud Native v0.30.0, Apr 14 23
Google Cloud Native v0.30.0, Apr 14 23
google-native.cloudbuild/v1.GitLabConfig
Explore with Pulumi AI
Creates a new GitLabConfig
. This API is experimental
Create GitLabConfig Resource
new GitLabConfig(name: string, args: GitLabConfigArgs, opts?: CustomResourceOptions);
@overload
def GitLabConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
connected_repositories: Optional[Sequence[GitLabRepositoryIdArgs]] = None,
enterprise_config: Optional[GitLabEnterpriseConfigArgs] = None,
gitlab_config_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
secrets: Optional[GitLabSecretsArgs] = None,
username: Optional[str] = None)
@overload
def GitLabConfig(resource_name: str,
args: GitLabConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewGitLabConfig(ctx *Context, name string, args GitLabConfigArgs, opts ...ResourceOption) (*GitLabConfig, error)
public GitLabConfig(string name, GitLabConfigArgs args, CustomResourceOptions? opts = null)
public GitLabConfig(String name, GitLabConfigArgs args)
public GitLabConfig(String name, GitLabConfigArgs args, CustomResourceOptions options)
type: google-native:cloudbuild/v1:GitLabConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitLabConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GitLabConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GitLabConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitLabConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitLabConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GitLabConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GitLabConfig resource accepts the following input properties:
- Secrets
Pulumi.
Google Native. Cloud Build. V1. Inputs. Git Lab Secrets Args Secret Manager secrets needed by the config.
- Connected
Repositories List<Pulumi.Google Native. Cloud Build. V1. Inputs. Git Lab Repository Id Args> Connected GitLab.com or GitLabEnterprise repositories for this config.
- Enterprise
Config Pulumi.Google Native. Cloud Build. V1. Inputs. Git Lab Enterprise Config Args Optional. GitLabEnterprise config.
- Gitlab
Config stringId Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- Location string
- Name string
The resource name for the config.
- Project string
- Username string
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
- Secrets
Git
Lab Secrets Args Secret Manager secrets needed by the config.
- Connected
Repositories []GitLab Repository Id Args Connected GitLab.com or GitLabEnterprise repositories for this config.
- Enterprise
Config GitLab Enterprise Config Args Optional. GitLabEnterprise config.
- Gitlab
Config stringId Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- Location string
- Name string
The resource name for the config.
- Project string
- Username string
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
- secrets
Git
Lab Secrets Args Secret Manager secrets needed by the config.
- connected
Repositories List<GitLab Repository Id Args> Connected GitLab.com or GitLabEnterprise repositories for this config.
- enterprise
Config GitLab Enterprise Config Args Optional. GitLabEnterprise config.
- gitlab
Config StringId Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- location String
- name String
The resource name for the config.
- project String
- username String
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
- secrets
Git
Lab Secrets Args Secret Manager secrets needed by the config.
- connected
Repositories GitLab Repository Id Args[] Connected GitLab.com or GitLabEnterprise repositories for this config.
- enterprise
Config GitLab Enterprise Config Args Optional. GitLabEnterprise config.
- gitlab
Config stringId Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- location string
- name string
The resource name for the config.
- project string
- username string
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
- secrets
Git
Lab Secrets Args Secret Manager secrets needed by the config.
- connected_
repositories Sequence[GitLab Repository Id Args] Connected GitLab.com or GitLabEnterprise repositories for this config.
- enterprise_
config GitLab Enterprise Config Args Optional. GitLabEnterprise config.
- gitlab_
config_ strid Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- location str
- name str
The resource name for the config.
- project str
- username str
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
- secrets Property Map
Secret Manager secrets needed by the config.
- connected
Repositories List<Property Map> Connected GitLab.com or GitLabEnterprise repositories for this config.
- enterprise
Config Property Map Optional. GitLabEnterprise config.
- gitlab
Config StringId Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
- location String
- name String
The resource name for the config.
- project String
- username String
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitLabConfig resource produces the following output properties:
- Create
Time string Time when the config was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Webhook
Key string UUID included in webhook requests. The UUID is used to look up the corresponding config.
- Create
Time string Time when the config was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Webhook
Key string UUID included in webhook requests. The UUID is used to look up the corresponding config.
- create
Time String Time when the config was created.
- id String
The provider-assigned unique ID for this managed resource.
- webhook
Key String UUID included in webhook requests. The UUID is used to look up the corresponding config.
- create
Time string Time when the config was created.
- id string
The provider-assigned unique ID for this managed resource.
- webhook
Key string UUID included in webhook requests. The UUID is used to look up the corresponding config.
- create_
time str Time when the config was created.
- id str
The provider-assigned unique ID for this managed resource.
- webhook_
key str UUID included in webhook requests. The UUID is used to look up the corresponding config.
- create
Time String Time when the config was created.
- id String
The provider-assigned unique ID for this managed resource.
- webhook
Key String UUID included in webhook requests. The UUID is used to look up the corresponding config.
Supporting Types
GitLabEnterpriseConfig
- Host
Uri string Immutable. The URI of the GitlabEnterprise host.
- Service
Directory Pulumi.Config Google Native. Cloud Build. V1. Inputs. Service Directory Config The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- Ssl
Ca string The SSL certificate to use in requests to GitLab Enterprise instances.
- Host
Uri string Immutable. The URI of the GitlabEnterprise host.
- Service
Directory ServiceConfig Directory Config The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- Ssl
Ca string The SSL certificate to use in requests to GitLab Enterprise instances.
- host
Uri String Immutable. The URI of the GitlabEnterprise host.
- service
Directory ServiceConfig Directory Config The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl
Ca String The SSL certificate to use in requests to GitLab Enterprise instances.
- host
Uri string Immutable. The URI of the GitlabEnterprise host.
- service
Directory ServiceConfig Directory Config The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl
Ca string The SSL certificate to use in requests to GitLab Enterprise instances.
- host_
uri str Immutable. The URI of the GitlabEnterprise host.
- service_
directory_ Serviceconfig Directory Config The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl_
ca str The SSL certificate to use in requests to GitLab Enterprise instances.
- host
Uri String Immutable. The URI of the GitlabEnterprise host.
- service
Directory Property MapConfig The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl
Ca String The SSL certificate to use in requests to GitLab Enterprise instances.
GitLabEnterpriseConfigResponse
- Host
Uri string Immutable. The URI of the GitlabEnterprise host.
- Service
Directory Pulumi.Config Google Native. Cloud Build. V1. Inputs. Service Directory Config Response The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- Ssl
Ca string The SSL certificate to use in requests to GitLab Enterprise instances.
- Host
Uri string Immutable. The URI of the GitlabEnterprise host.
- Service
Directory ServiceConfig Directory Config Response The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- Ssl
Ca string The SSL certificate to use in requests to GitLab Enterprise instances.
- host
Uri String Immutable. The URI of the GitlabEnterprise host.
- service
Directory ServiceConfig Directory Config Response The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl
Ca String The SSL certificate to use in requests to GitLab Enterprise instances.
- host
Uri string Immutable. The URI of the GitlabEnterprise host.
- service
Directory ServiceConfig Directory Config Response The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl
Ca string The SSL certificate to use in requests to GitLab Enterprise instances.
- host_
uri str Immutable. The URI of the GitlabEnterprise host.
- service_
directory_ Serviceconfig Directory Config Response The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl_
ca str The SSL certificate to use in requests to GitLab Enterprise instances.
- host
Uri String Immutable. The URI of the GitlabEnterprise host.
- service
Directory Property MapConfig The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
- ssl
Ca String The SSL certificate to use in requests to GitLab Enterprise instances.
GitLabRepositoryId
- Id string
Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID
- Id string
Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID
- id String
Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID
- id string
Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID
- id str
Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID
- id String
Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID
GitLabRepositoryIdResponse
- Webhook
Id int The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
- Webhook
Id int The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
- webhook
Id Integer The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
- webhook
Id number The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
- webhook_
id int The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
- webhook
Id Number The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
GitLabSecrets
- Api
Access stringToken Version The resource name for the api access token’s secret version
- Api
Key stringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- Read
Access stringToken Version The resource name for the read access token’s secret version
- Webhook
Secret stringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- Api
Access stringToken Version The resource name for the api access token’s secret version
- Api
Key stringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- Read
Access stringToken Version The resource name for the read access token’s secret version
- Webhook
Secret stringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api
Access StringToken Version The resource name for the api access token’s secret version
- api
Key StringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read
Access StringToken Version The resource name for the read access token’s secret version
- webhook
Secret StringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api
Access stringToken Version The resource name for the api access token’s secret version
- api
Key stringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read
Access stringToken Version The resource name for the read access token’s secret version
- webhook
Secret stringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api_
access_ strtoken_ version The resource name for the api access token’s secret version
- api_
key_ strversion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read_
access_ strtoken_ version The resource name for the read access token’s secret version
- webhook_
secret_ strversion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api
Access StringToken Version The resource name for the api access token’s secret version
- api
Key StringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read
Access StringToken Version The resource name for the read access token’s secret version
- webhook
Secret StringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
GitLabSecretsResponse
- Api
Access stringToken Version The resource name for the api access token’s secret version
- Api
Key stringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- Read
Access stringToken Version The resource name for the read access token’s secret version
- Webhook
Secret stringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- Api
Access stringToken Version The resource name for the api access token’s secret version
- Api
Key stringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- Read
Access stringToken Version The resource name for the read access token’s secret version
- Webhook
Secret stringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api
Access StringToken Version The resource name for the api access token’s secret version
- api
Key StringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read
Access StringToken Version The resource name for the read access token’s secret version
- webhook
Secret StringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api
Access stringToken Version The resource name for the api access token’s secret version
- api
Key stringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read
Access stringToken Version The resource name for the read access token’s secret version
- webhook
Secret stringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api_
access_ strtoken_ version The resource name for the api access token’s secret version
- api_
key_ strversion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read_
access_ strtoken_ version The resource name for the read access token’s secret version
- webhook_
secret_ strversion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
- api
Access StringToken Version The resource name for the api access token’s secret version
- api
Key StringVersion Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
- read
Access StringToken Version The resource name for the read access token’s secret version
- webhook
Secret StringVersion Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
ServiceDirectoryConfig
- Service string
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- Service string
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service string
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service str
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
ServiceDirectoryConfigResponse
- Service string
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- Service string
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service string
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service str
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
- service String
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0