Class: Google::Apis::StoragetransferV1::FederatedIdentityConfig

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

Overview

The identity of an Azure application through which Storage Transfer Service can authenticate requests using Azure workload identity federation. Storage Transfer Service can issue requests to Azure Storage through registered Azure applications, eliminating the need to pass credentials to Storage Transfer Service directly. To configure federated identity, see Configure access to Microsoft Azure Storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FederatedIdentityConfig

Returns a new instance of FederatedIdentityConfig.



537
538
539
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 537

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

Instance Attribute Details

#client_idString

Required. The client (application) ID of the application with federated credentials. Corresponds to the JSON property clientId

Returns:

  • (String)


529
530
531
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 529

def client_id
  @client_id
end

#tenant_idString

Required. The tenant (directory) ID of the application with federated credentials. Corresponds to the JSON property tenantId

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 535

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



542
543
544
545
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 542

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end