Class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Binding

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

Overview

Describes the binding.

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

Returns a new instance of GoogleCloudServicebrokerV1beta1Binding



83
84
85
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 83

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

Instance Attribute Details

#bind_resourceHash<String,Object>

A JSON object that contains data for platform resources associated with the binding to be created. Corresponds to the JSON property bind_resource

Returns:

  • (Hash<String,Object>)


33
34
35
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 33

def bind_resource
  @bind_resource
end

#binding_idString

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

Returns:

  • (String)


40
41
42
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 40

def binding_id
  @binding_id
end

#create_timeString

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

Returns:

  • (String)


46
47
48
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 46

def create_time
  @create_time
end

#deployment_nameString

Output only. String containing the Deployment Manager deployment name that was created for this binding, Corresponds to the JSON property deploymentName

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 53

def deployment_name
  @deployment_name
end

#parametersHash<String,Object>

Configuration options for the service binding. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


58
59
60
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 58

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)


65
66
67
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 65

def plan_id
  @plan_id
end

#resource_nameString

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

Returns:

  • (String)


73
74
75
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 73

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)


81
82
83
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 81

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
92
93
94
95
96
97
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 88

def update!(**args)
  @bind_resource = args[:bind_resource] if args.key?(:bind_resource)
  @binding_id = args[:binding_id] if args.key?(:binding_id)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deployment_name = args[:deployment_name] if args.key?(:deployment_name)
  @parameters = args[:parameters] if args.key?(:parameters)
  @plan_id = args[:plan_id] if args.key?(:plan_id)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @service_id = args[:service_id] if args.key?(:service_id)
end