Class: Google::Apis::ServiceconsumermanagementV1::TenantResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceconsumermanagement_v1/classes.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb

Overview

Resource constituting the TenancyUnit.

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

Returns a new instance of TenantResource



3667
3668
3669
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3667

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

Instance Attribute Details

#resourceString

For cloud projects, it is in the form 'projects/number'. For example 'projects/123456'. Corresponds to the JSON property resource

Returns:

  • (String)


3655
3656
3657
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3655

def resource
  @resource
end

#statusString

Status of tenant resource. Corresponds to the JSON property status

Returns:

  • (String)


3660
3661
3662
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3660

def status
  @status
end

#tagString

Unique per single tenancy unit. Corresponds to the JSON property tag

Returns:

  • (String)


3665
3666
3667
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3665

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3672
3673
3674
3675
3676
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3672

def update!(**args)
  @resource = args[:resource] if args.key?(:resource)
  @status = args[:status] if args.key?(:status)
  @tag = args[:tag] if args.key?(:tag)
end