Class: Google::Apis::CloudbuildV1::GitLabSecrets
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::GitLabSecrets
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
GitLabSecrets represents the secrets in Secret Manager for a GitLab integration.
Instance Attribute Summary collapse
-
#api_access_token_version ⇒ String
Required.
-
#api_key_version ⇒ String
Required.
-
#read_access_token_version ⇒ String
Required.
-
#webhook_secret_version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitLabSecrets
constructor
A new instance of GitLabSecrets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GitLabSecrets
Returns a new instance of GitLabSecrets.
2598 2599 2600 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2598 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_access_token_version ⇒ String
Required. The resource name for the api access token’s secret version
Corresponds to the JSON property apiAccessTokenVersion
2578 2579 2580 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2578 def api_access_token_version @api_access_token_version end |
#api_key_version ⇒ String
Required. Immutable. API Key that will be attached to webhook requests from
GitLab to Cloud Build.
Corresponds to the JSON property apiKeyVersion
2584 2585 2586 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2584 def api_key_version @api_key_version end |
#read_access_token_version ⇒ String
Required. The resource name for the read access token’s secret version
Corresponds to the JSON property readAccessTokenVersion
2589 2590 2591 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2589 def read_access_token_version @read_access_token_version end |
#webhook_secret_version ⇒ String
Required. 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.
Corresponds to the JSON property webhookSecretVersion
2596 2597 2598 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2596 def webhook_secret_version @webhook_secret_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2603 2604 2605 2606 2607 2608 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2603 def update!(**args) @api_access_token_version = args[:api_access_token_version] if args.key?(:api_access_token_version) @api_key_version = args[:api_key_version] if args.key?(:api_key_version) @read_access_token_version = args[:read_access_token_version] if args.key?(:read_access_token_version) @webhook_secret_version = args[:webhook_secret_version] if args.key?(:webhook_secret_version) end |