Class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Plan

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

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

Returns a new instance of GoogleCloudServicebrokerV1alpha1Plan



492
493
494
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 492

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)


453
454
455
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 453

def bindable
  @bindable
end

#descriptionString

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

Returns:

  • (String)


459
460
461
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 459

def description
  @description
end

#freeBoolean Also known as: free?

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

Returns:

  • (Boolean)


464
465
466
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 464

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)


471
472
473
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 471

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


477
478
479
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 477

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)


485
486
487
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 485

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


490
491
492
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 490

def schemas
  @schemas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
500
501
502
503
504
505
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 497

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