Class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance

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

Overview

Message describing inputs to Provision and Update Service instance requests.

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) ⇒ GoogleCloudServicebrokerV1alpha1ServiceInstance

Returns a new instance of GoogleCloudServicebrokerV1alpha1ServiceInstance



676
677
678
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 676

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

Instance Attribute Details

#contextHash<String,Object>

Platform specific contextual information under which the service instance is to be provisioned. This replaces organization_guid and space_guid. But can also contain anything. Currently only used for logging context information. Corresponds to the JSON property context

Returns:

  • (Hash<String,Object>)


614
615
616
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 614

def context
  @context
end

#create_timeString

Output only. Timestamp for when the instance was created. Corresponds to the JSON property createTime

Returns:

  • (String)


620
621
622
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 620

def create_time
  @create_time
end

#instance_idString

The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. Corresponds to the JSON property instance_id

Returns:

  • (String)


627
628
629
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 627

def instance_id
  @instance_id
end

#organization_guidString

The platform GUID for the organization under which the service is to be provisioned. Required. Corresponds to the JSON property organization_guid

Returns:

  • (String)


634
635
636
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 634

def organization_guid
  @organization_guid
end

#parametersHash<String,Object>

Configuration options for the service instance. Parameters is JSON object serialized to string. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


640
641
642
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 640

def parameters
  @parameters
end

#plan_idString

The ID of the plan. See Service and Plan resources for details. Maximum length is 64, GUID recommended. Required. Corresponds to the JSON property plan_id

Returns:

  • (String)


647
648
649
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 647

def plan_id
  @plan_id
end

#previous_valuesHash<String,Object>

Used only in UpdateServiceInstance request to optionally specify previous fields. Corresponds to the JSON property previous_values

Returns:

  • (Hash<String,Object>)


653
654
655
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 653

def previous_values
  @previous_values
end

#resource_nameString

Output only. The resource name of the instance, e.g. projects/project_id/brokers/broker_id/service_instances/instance_id Corresponds to the JSON property resourceName

Returns:

  • (String)


660
661
662
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 660

def resource_name
  @resource_name
end

#service_idString

The id of the service. Must be a valid identifier of a service contained in the list from a ListServices() call. Maximum length is 64, GUID recommended. Required. Corresponds to the JSON property service_id

Returns:

  • (String)


668
669
670
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 668

def service_id
  @service_id
end

#space_guidString

The identifier for the project space within the platform organization. Required. Corresponds to the JSON property space_guid

Returns:

  • (String)


674
675
676
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 674

def space_guid
  @space_guid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



681
682
683
684
685
686
687
688
689
690
691
692
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 681

def update!(**args)
  @context = args[:context] if args.key?(:context)
  @create_time = args[:create_time] if args.key?(:create_time)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @organization_guid = args[:organization_guid] if args.key?(:organization_guid)
  @parameters = args[:parameters] if args.key?(:parameters)
  @plan_id = args[:plan_id] if args.key?(:plan_id)
  @previous_values = args[:previous_values] if args.key?(:previous_values)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @service_id = args[:service_id] if args.key?(:service_id)
  @space_guid = args[:space_guid] if args.key?(:space_guid)
end