Class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Binding

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

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

Returns a new instance of GoogleCloudServicebrokerV1alpha1Binding



68
69
70
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 68

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_v1alpha1/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_v1alpha1/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_v1alpha1/classes.rb', line 46

def create_time
  @create_time
end

#parametersHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


51
52
53
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 51

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)


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

def plan_id
  @plan_id
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)


66
67
68
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 66

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



73
74
75
76
77
78
79
80
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 73

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)
  @parameters = args[:parameters] if args.key?(:parameters)
  @plan_id = args[:plan_id] if args.key?(:plan_id)
  @service_id = args[:service_id] if args.key?(:service_id)
end