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

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

Overview

Resource constituting the TenancyUnit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TenantResource

Returns a new instance of TenantResource.



3896
3897
3898
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3896

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

Instance Attribute Details

#resourceString

Output only. @OutputOnly Identifier of the tenant resource. For cloud projects, it is in the form 'projects/number'. For example 'projects/123456'. Corresponds to the JSON property resource

Returns:

  • (String)


3884
3885
3886
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3884

def resource
  @resource
end

#statusString

Status of tenant resource. Corresponds to the JSON property status

Returns:

  • (String)


3889
3890
3891
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3889

def status
  @status
end

#tagString

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

Returns:

  • (String)


3894
3895
3896
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3894

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3901
3902
3903
3904
3905
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 3901

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