Class: Google::Apis::ServicenetworkingV1beta::ServiceIdentity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicenetworking_v1beta/classes.rb,
generated/google/apis/servicenetworking_v1beta/representations.rb,
generated/google/apis/servicenetworking_v1beta/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceIdentity

Returns a new instance of ServiceIdentity.



3308
3309
3310
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3308

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


3293
3294
3295
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3293

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


3299
3300
3301
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3299

def display_name
  @display_name
end

#service_account_parentString

A service account project that hosts the service accounts. An example name would be: projects/123456789 Corresponds to the JSON property serviceAccountParent

Returns:

  • (String)


3306
3307
3308
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3306

def 
  @service_account_parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3313
3314
3315
3316
3317
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3313

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