Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Reference

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

Overview

A Reference configuration. References must refer to a keystore that also exists in the parent environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1Reference

Returns a new instance of GoogleCloudApigeeV1Reference.


4276
4277
4278
# File 'generated/google/apis/apigee_v1/classes.rb', line 4276

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

Instance Attribute Details

#descriptionString

Optional. A human-readable description of this reference. Corresponds to the JSON property description

Returns:

  • (String)

4255
4256
4257
# File 'generated/google/apis/apigee_v1/classes.rb', line 4255

def description
  @description
end

#nameString

Required. The resource id of this reference. Values must match the regular expression [\w\s-.]+. Corresponds to the JSON property name

Returns:

  • (String)

4261
4262
4263
# File 'generated/google/apis/apigee_v1/classes.rb', line 4261

def name
  @name
end

#refersString

Required. The id of the resource to which this reference refers. Must be the id of a resource that exists in the parent environment and is of the given resource_type. Corresponds to the JSON property refers

Returns:

  • (String)

4268
4269
4270
# File 'generated/google/apis/apigee_v1/classes.rb', line 4268

def refers
  @refers
end

#resource_typeString

The type of resource referred to by this reference. Valid values are 'KeyStore' or 'TrustStore'. Corresponds to the JSON property resourceType

Returns:

  • (String)

4274
4275
4276
# File 'generated/google/apis/apigee_v1/classes.rb', line 4274

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4281
4282
4283
4284
4285
4286
# File 'generated/google/apis/apigee_v1/classes.rb', line 4281

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @refers = args[:refers] if args.key?(:refers)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end