Class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Plan

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

Plan message describes a Service Plan.

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

Returns a new instance of GoogleCloudServicebrokerV1beta1Plan



599
600
601
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 599

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

Instance Attribute Details

#bindableBoolean Also known as: bindable?

Specifies whether instances of the service can be bound to applications. If not specified, Service.bindable will be presumed. Corresponds to the JSON property bindable

Returns:

  • (Boolean)


560
561
562
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 560

def bindable
  @bindable
end

#descriptionString

Textual description of the plan. Optional. Corresponds to the JSON property description

Returns:

  • (String)


566
567
568
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 566

def description
  @description
end

#freeBoolean Also known as: free?

Whether the service is free. Corresponds to the JSON property free

Returns:

  • (Boolean)


571
572
573
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 571

def free
  @free
end

#idString

ID is a globally unique identifier used to uniquely identify the plan. User must make no presumption about the format of this field. Corresponds to the JSON property id

Returns:

  • (String)


578
579
580
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 578

def id
  @id
end

#metadataHash<String,Object>

A list of metadata for a service offering. Metadata is an arbitrary JSON object. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


584
585
586
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 584

def 
  @metadata
end

#nameString

User friendly name of the plan. The name must be globally unique within GCP project. Note, which is different from ("This must be globally unique within a platform marketplace"). Corresponds to the JSON property name

Returns:

  • (String)


592
593
594
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 592

def name
  @name
end

#schemasHash<String,Object>

Schema definitions for service instances and bindings for the plan. Corresponds to the JSON property schemas

Returns:

  • (Hash<String,Object>)


597
598
599
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 597

def schemas
  @schemas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



604
605
606
607
608
609
610
611
612
# File 'generated/google/apis/servicebroker_v1beta1/classes.rb', line 604

def update!(**args)
  @bindable = args[:bindable] if args.key?(:bindable)
  @description = args[:description] if args.key?(:description)
  @free = args[:free] if args.key?(:free)
  @id = args[:id] if args.key?(:id)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @schemas = args[:schemas] if args.key?(:schemas)
end