Class: Google::Apis::JobsV4::Tenant
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::Tenant
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/jobs_v4/classes.rb,
lib/google/apis/jobs_v4/representations.rb,
lib/google/apis/jobs_v4/representations.rb
Overview
A Tenant resource represents a tenant in the service. A tenant is a group or entity that shares common access with specific privileges for resources like jobs. Customer may create multiple tenants to provide data isolation for different groups.
Instance Attribute Summary collapse
-
#external_id ⇒ String
Required.
-
#name ⇒ String
Required during tenant update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tenant
constructor
A new instance of Tenant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tenant
Returns a new instance of Tenant.
2497 2498 2499 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 2497 def initialize(**args) update!(**args) end |
Instance Attribute Details
#external_id ⇒ String
Required. Client side tenant identifier, used to uniquely identify the tenant.
The maximum number of allowed characters is 255.
Corresponds to the JSON property externalId
2488 2489 2490 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 2488 def external_id @external_id end |
#name ⇒ String
Required during tenant update. The resource name for a tenant. This is
generated by the service when a tenant is created. The format is "projects/
project_id
/tenants/tenant_id
", for example, "projects/foo/tenants/bar".
Corresponds to the JSON property name
2495 2496 2497 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 2495 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2502 2503 2504 2505 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 2502 def update!(**args) @external_id = args[:external_id] if args.key?(:external_id) @name = args[:name] if args.key?(:name) end |