Class: Google::Apis::ConnectorsV1::ProvisionedResource

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

Overview

Describes provisioned dataplane resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProvisionedResource

Returns a new instance of ProvisionedResource.



4365
4366
4367
# File 'lib/google/apis/connectors_v1/classes.rb', line 4365

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

Instance Attribute Details

#resource_typeString

Type of the resource. This can be either a GCP resource or a custom one (e.g. another cloud provider's VM). For GCP compute resources use singular form of the names listed in GCP compute API documentation (https://cloud.google.com/ compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: ' compute-instance', 'compute-disk', 'compute-autoscaler'. Corresponds to the JSON property resourceType

Returns:

  • (String)


4357
4358
4359
# File 'lib/google/apis/connectors_v1/classes.rb', line 4357

def resource_type
  @resource_type
end

#resource_urlString

URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/ projects/...)". Corresponds to the JSON property resourceUrl

Returns:

  • (String)


4363
4364
4365
# File 'lib/google/apis/connectors_v1/classes.rb', line 4363

def resource_url
  @resource_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4370
4371
4372
4373
# File 'lib/google/apis/connectors_v1/classes.rb', line 4370

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