Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudbuild/v1.GitLabConfig
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new GitLabConfig
. This API is experimental
Create GitLabConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitLabConfig(name: string, args: GitLabConfigArgs, opts?: CustomResourceOptions);
@overload
def GitLabConfig(resource_name: str,
args: GitLabConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitLabConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
secrets: Optional[GitLabSecretsArgs] = 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,
username: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var gitLabConfigResource = new GoogleNative.CloudBuild.V1.GitLabConfig("gitLabConfigResource", new()
{
Secrets = new GoogleNative.CloudBuild.V1.Inputs.GitLabSecretsArgs
{
ApiAccessTokenVersion = "string",
ApiKeyVersion = "string",
ReadAccessTokenVersion = "string",
WebhookSecretVersion = "string",
},
ConnectedRepositories = new[]
{
new GoogleNative.CloudBuild.V1.Inputs.GitLabRepositoryIdArgs
{
Id = "string",
},
},
EnterpriseConfig = new GoogleNative.CloudBuild.V1.Inputs.GitLabEnterpriseConfigArgs
{
HostUri = "string",
ServiceDirectoryConfig = new GoogleNative.CloudBuild.V1.Inputs.ServiceDirectoryConfigArgs
{
Service = "string",
},
SslCa = "string",
},
GitlabConfigId = "string",
Location = "string",
Name = "string",
Project = "string",
Username = "string",
});
example, err := cloudbuild.NewGitLabConfig(ctx, "gitLabConfigResource", &cloudbuild.GitLabConfigArgs{
Secrets: &cloudbuild.GitLabSecretsArgs{
ApiAccessTokenVersion: pulumi.String("string"),
ApiKeyVersion: pulumi.String("string"),
ReadAccessTokenVersion: pulumi.String("string"),
WebhookSecretVersion: pulumi.String("string"),
},
ConnectedRepositories: cloudbuild.GitLabRepositoryIdArray{
&cloudbuild.GitLabRepositoryIdArgs{
Id: pulumi.String("string"),
},
},
EnterpriseConfig: &cloudbuild.GitLabEnterpriseConfigArgs{
HostUri: pulumi.String("string"),
ServiceDirectoryConfig: &cloudbuild.ServiceDirectoryConfigArgs{
Service: pulumi.String("string"),
},
SslCa: pulumi.String("string"),
},
GitlabConfigId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
Username: pulumi.String("string"),
})
var gitLabConfigResource = new GitLabConfig("gitLabConfigResource", GitLabConfigArgs.builder()
.secrets(GitLabSecretsArgs.builder()
.apiAccessTokenVersion("string")
.apiKeyVersion("string")
.readAccessTokenVersion("string")
.webhookSecretVersion("string")
.build())
.connectedRepositories(GitLabRepositoryIdArgs.builder()
.id("string")
.build())
.enterpriseConfig(GitLabEnterpriseConfigArgs.builder()
.hostUri("string")
.serviceDirectoryConfig(ServiceDirectoryConfigArgs.builder()
.service("string")
.build())
.sslCa("string")
.build())
.gitlabConfigId("string")
.location("string")
.name("string")
.project("string")
.username("string")
.build());
git_lab_config_resource = google_native.cloudbuild.v1.GitLabConfig("gitLabConfigResource",
secrets={
"api_access_token_version": "string",
"api_key_version": "string",
"read_access_token_version": "string",
"webhook_secret_version": "string",
},
connected_repositories=[{
"id": "string",
}],
enterprise_config={
"host_uri": "string",
"service_directory_config": {
"service": "string",
},
"ssl_ca": "string",
},
gitlab_config_id="string",
location="string",
name="string",
project="string",
username="string")
const gitLabConfigResource = new google_native.cloudbuild.v1.GitLabConfig("gitLabConfigResource", {
secrets: {
apiAccessTokenVersion: "string",
apiKeyVersion: "string",
readAccessTokenVersion: "string",
webhookSecretVersion: "string",
},
connectedRepositories: [{
id: "string",
}],
enterpriseConfig: {
hostUri: "string",
serviceDirectoryConfig: {
service: "string",
},
sslCa: "string",
},
gitlabConfigId: "string",
location: "string",
name: "string",
project: "string",
username: "string",
});
type: google-native:cloudbuild/v1:GitLabConfig
properties:
connectedRepositories:
- id: string
enterpriseConfig:
hostUri: string
serviceDirectoryConfig:
service: string
sslCa: string
gitlabConfigId: string
location: string
name: string
project: string
secrets:
apiAccessTokenVersion: string
apiKeyVersion: string
readAccessTokenVersion: string
webhookSecretVersion: string
username: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GitLabConfig resource accepts the following input properties:
- Secrets
Pulumi.
Google Native. Cloud Build. V1. Inputs. Git Lab Secrets - Secret Manager secrets needed by the config.
- Connected
Repositories List<Pulumi.Google Native. Cloud Build. V1. Inputs. Git Lab Repository Id> - Connected GitLab.com or GitLabEnterprise repositories for this config.
- Enterprise
Config Pulumi.Google Native. Cloud Build. V1. Inputs. Git Lab Enterprise Config - 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 - Secret Manager secrets needed by the config.
- connected
Repositories List<GitLab Repository Id> - Connected GitLab.com or GitLabEnterprise repositories for this config.
- enterprise
Config GitLab Enterprise Config - 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 - Secret Manager secrets needed by the config.
- connected
Repositories GitLab Repository Id[] - Connected GitLab.com or GitLabEnterprise repositories for this config.
- enterprise
Config GitLab Enterprise Config - 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, GitLabEnterpriseConfigArgs
- 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, GitLabEnterpriseConfigResponseArgs
- 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, GitLabRepositoryIdArgs
- 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, GitLabRepositoryIdResponseArgs
- 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, GitLabSecretsArgs
- 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, GitLabSecretsResponseArgs
- 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, ServiceDirectoryConfigArgs
- 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, ServiceDirectoryConfigResponseArgs
- 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
Google Cloud Native is in preview. Google Cloud Classic is fully supported.