Class: Google::Apis::ParametermanagerV1::Parameter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/parametermanager_v1/classes.rb,
lib/google/apis/parametermanager_v1/representations.rb,
lib/google/apis/parametermanager_v1/representations.rb

Overview

Message describing Parameter resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Parameter

Returns a new instance of Parameter.



220
221
222
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 220

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

Instance Attribute Details

#create_timeString

Output only. [Output only] Create time stamp Corresponds to the JSON property createTime

Returns:

  • (String)


182
183
184
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 182

def create_time
  @create_time
end

#formatString

Optional. Specifies the format of a Parameter. Corresponds to the JSON property format

Returns:

  • (String)


187
188
189
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 187

def format
  @format
end

#kms_keyString

Optional. Customer managed encryption key (CMEK) to use for encrypting the Parameter Versions. If not set, the default Google-managed encryption key will be used. Cloud KMS CryptoKeys must reside in the same location as the Parameter. The expected format is projects/*/locations/*/keyRings/*/ cryptoKeys/*. Corresponds to the JSON property kmsKey

Returns:

  • (String)


196
197
198
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 196

def kms_key
  @kms_key
end

#labelsHash<String,String>

Optional. Labels as key value pairs Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


201
202
203
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 201

def labels
  @labels
end

#nameString

Identifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*. Corresponds to the JSON property name

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 207

def name
  @name
end

#policy_memberGoogle::Apis::ParametermanagerV1::ResourcePolicyMember

Output-only policy member strings of a Google Cloud resource's built-in identity. Corresponds to the JSON property policyMember



213
214
215
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 213

def policy_member
  @policy_member
end

#update_timeString

Output only. [Output only] Update time stamp Corresponds to the JSON property updateTime

Returns:

  • (String)


218
219
220
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 218

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



225
226
227
228
229
230
231
232
233
# File 'lib/google/apis/parametermanager_v1/classes.rb', line 225

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @format = args[:format] if args.key?(:format)
  @kms_key = args[:kms_key] if args.key?(:kms_key)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @policy_member = args[:policy_member] if args.key?(:policy_member)
  @update_time = args[:update_time] if args.key?(:update_time)
end