Class: Google::Apis::ServiceconsumermanagementV1::ServiceIdentity
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1::ServiceIdentity
- 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
The per-product per-project service identity for a service. Use this field to configure per-product per-project service identity. Example of a service identity configuration. usage: service_identity:
- service_account_parent: "projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used as the identity of Cloud XXX to access resources"
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Optional.
-
#service_account_parent ⇒ String
A service account project that hosts the service accounts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceIdentity
constructor
A new instance of ServiceIdentity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceIdentity
Returns a new instance of ServiceIdentity.
3337 3338 3339 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. A user-specified opaque description of the service account.
Must be less than or equal to 256 UTF-8 bytes.
Corresponds to the JSON property description
3322 3323 3324 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3322 def description @description end |
#display_name ⇒ String
Optional. A user-specified name for the service account.
Must be less than or equal to 100 UTF-8 bytes.
Corresponds to the JSON property displayName
3328 3329 3330 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3328 def display_name @display_name end |
#service_account_parent ⇒ String
A service account project that hosts the service accounts.
An example name would be:
projects/123456789
Corresponds to the JSON property serviceAccountParent
3335 3336 3337 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3335 def service_account_parent @service_account_parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3342 3343 3344 3345 3346 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3342 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @service_account_parent = args[:service_account_parent] if args.key?(:service_account_parent) end |