Class: Google::Apis::ComputeV1::XpnResourceId

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

Overview

Service resource (a.k.a service project) ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpnResourceId

Returns a new instance of XpnResourceId.



39916
39917
39918
# File 'lib/google/apis/compute_v1/classes.rb', line 39916

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

Instance Attribute Details

#idString

The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678). Corresponds to the JSON property id

Returns:

  • (String)


39909
39910
39911
# File 'lib/google/apis/compute_v1/classes.rb', line 39909

def id
  @id
end

#typeString

The type of the service resource. Corresponds to the JSON property type

Returns:

  • (String)


39914
39915
39916
# File 'lib/google/apis/compute_v1/classes.rb', line 39914

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39921
39922
39923
39924
# File 'lib/google/apis/compute_v1/classes.rb', line 39921

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @type = args[:type] if args.key?(:type)
end