Class: Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets

Inherits:
Object
  • Object
show all
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

GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitHubEnterpriseSecrets

Returns a new instance of GitHubEnterpriseSecrets.



2103
2104
2105
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2103

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#oauth_client_id_nameString

The resource name for the OAuth client ID secret in Secret Manager. Corresponds to the JSON property oauthClientIdName

Returns:

  • (String)


2066
2067
2068
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2066

def oauth_client_id_name
  @oauth_client_id_name
end

#oauth_client_id_version_nameString

The resource name for the OAuth client ID secret version in Secret Manager. Corresponds to the JSON property oauthClientIdVersionName

Returns:

  • (String)


2071
2072
2073
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2071

def oauth_client_id_version_name
  @oauth_client_id_version_name
end

#oauth_secret_nameString

The resource name for the OAuth secret in Secret Manager. Corresponds to the JSON property oauthSecretName

Returns:

  • (String)


2076
2077
2078
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2076

def oauth_secret_name
  @oauth_secret_name
end

#oauth_secret_version_nameString

The resource name for the OAuth secret secret version in Secret Manager. Corresponds to the JSON property oauthSecretVersionName

Returns:

  • (String)


2081
2082
2083
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2081

def oauth_secret_version_name
  @oauth_secret_version_name
end

#private_key_nameString

The resource name for the private key secret. Corresponds to the JSON property privateKeyName

Returns:

  • (String)


2086
2087
2088
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2086

def private_key_name
  @private_key_name
end

#private_key_version_nameString

The resource name for the private key secret version. Corresponds to the JSON property privateKeyVersionName

Returns:

  • (String)


2091
2092
2093
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2091

def private_key_version_name
  @private_key_version_name
end

#webhook_secret_nameString

The resource name for the webhook secret in Secret Manager. Corresponds to the JSON property webhookSecretName

Returns:

  • (String)


2096
2097
2098
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2096

def webhook_secret_name
  @webhook_secret_name
end

#webhook_secret_version_nameString

The resource name for the webhook secret secret version in Secret Manager. Corresponds to the JSON property webhookSecretVersionName

Returns:

  • (String)


2101
2102
2103
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2101

def webhook_secret_version_name
  @webhook_secret_version_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2108

def update!(**args)
  @oauth_client_id_name = args[:oauth_client_id_name] if args.key?(:oauth_client_id_name)
  @oauth_client_id_version_name = args[:oauth_client_id_version_name] if args.key?(:oauth_client_id_version_name)
  @oauth_secret_name = args[:oauth_secret_name] if args.key?(:oauth_secret_name)
  @oauth_secret_version_name = args[:oauth_secret_version_name] if args.key?(:oauth_secret_version_name)
  @private_key_name = args[:private_key_name] if args.key?(:private_key_name)
  @private_key_version_name = args[:private_key_version_name] if args.key?(:private_key_version_name)
  @webhook_secret_name = args[:webhook_secret_name] if args.key?(:webhook_secret_name)
  @webhook_secret_version_name = args[:webhook_secret_version_name] if args.key?(:webhook_secret_version_name)
end