Class: Google::Apis::ComputeBeta::ShareSettings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Overview

The share setting for reservations and sole tenancy node groups.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShareSettings

Returns a new instance of ShareSettings.



32647
32648
32649
# File 'lib/google/apis/compute_beta/classes.rb', line 32647

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

Instance Attribute Details

#project_mapHash<String,Google::Apis::ComputeBeta::ShareSettingsProjectConfig>

A map of project id and project config. Using map format to ease add-to/remove- from the Project list in PATCH command. In future we will deprecate (And later remove) the array one. Corresponds to the JSON property projectMap



32634
32635
32636
# File 'lib/google/apis/compute_beta/classes.rb', line 32634

def project_map
  @project_map
end

#projectsArray<String>

A List of Project names to specify consumer projects for this shared- reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. Corresponds to the JSON property projects

Returns:

  • (Array<String>)


32640
32641
32642
# File 'lib/google/apis/compute_beta/classes.rb', line 32640

def projects
  @projects
end

#share_typeString

Type of sharing for this shared-reservation Corresponds to the JSON property shareType

Returns:

  • (String)


32645
32646
32647
# File 'lib/google/apis/compute_beta/classes.rb', line 32645

def share_type
  @share_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32652
32653
32654
32655
32656
# File 'lib/google/apis/compute_beta/classes.rb', line 32652

def update!(**args)
  @project_map = args[:project_map] if args.key?(:project_map)
  @projects = args[:projects] if args.key?(:projects)
  @share_type = args[:share_type] if args.key?(:share_type)
end