Class: Google::Apis::StoragetransferV1::AzureBlobStorageData
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::AzureBlobStorageData
- 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
An AzureBlobStorageData resource can be a data source, but not a data sink. An AzureBlobStorageData resource represents one Azure container. The storage account determines the Azure endpoint. In an AzureBlobStorageData resource, a blobs's name is the Azure Blob Storage blob's key name.
Instance Attribute Summary collapse
-
#azure_credentials ⇒ Google::Apis::StoragetransferV1::AzureCredentials
Azure credentials For information on our data retention policy for user credentials, see User credentials.
-
#container ⇒ String
Required.
-
#credentials_secret ⇒ String
Optional.
-
#federated_identity_config ⇒ Google::Apis::StoragetransferV1::FederatedIdentityConfig
The identity of an Azure application through which Storage Transfer Service can authenticate requests using Azure workload identity federation.
-
#path ⇒ String
Root path to transfer objects.
-
#private_network_service ⇒ String
Service Directory Service to be used as the endpoint for transfers from a custom VPC.
-
#storage_account ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AzureBlobStorageData
constructor
A new instance of AzureBlobStorageData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AzureBlobStorageData
Returns a new instance of AzureBlobStorageData.
289 290 291 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 289 def initialize(**args) update!(**args) end |
Instance Attribute Details
#azure_credentials ⇒ Google::Apis::StoragetransferV1::AzureCredentials
Azure credentials For information on our data retention policy for user
credentials, see User credentials.
Corresponds to the JSON property azureCredentials
240 241 242 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 240 def azure_credentials @azure_credentials end |
#container ⇒ String
Required. The container to transfer from the Azure Storage account.
Corresponds to the JSON property container
245 246 247 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 245 def container @container end |
#credentials_secret ⇒ String
Optional. The Resource name of a secret in Secret Manager. The Azure SAS token
must be stored in Secret Manager in JSON format: "sas_token" : "SAS_TOKEN"
GoogleServiceAccount must be granted roles/secretmanager.secretAccessor for
the resource. See Configure access to a source: Microsoft Azure Blob Storage for more information. If credentials_secret is specified, do
not specify azure_credentials. Format: projects/project_number/secrets/
secret_name`
Corresponds to the JSON propertycredentialsSecret`
257 258 259 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 257 def credentials_secret @credentials_secret end |
#federated_identity_config ⇒ Google::Apis::StoragetransferV1::FederatedIdentityConfig
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.
Corresponds to the JSON property federatedIdentityConfig
268 269 270 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 268 def federated_identity_config @federated_identity_config end |
#path ⇒ String
Root path to transfer objects. Must be an empty string or full path name that
ends with a '/'. This field is treated as an object prefix. As such, it should
generally not begin with a '/'.
Corresponds to the JSON property path
275 276 277 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 275 def path @path end |
#private_network_service ⇒ String
Service Directory Service to be used as the endpoint for transfers from a
custom VPC. Format: projects/project_id/locations/location/namespaces/
namespace/services/service`
Corresponds to the JSON propertyprivateNetworkService`
282 283 284 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 282 def private_network_service @private_network_service end |
#storage_account ⇒ String
Required. The name of the Azure Storage account.
Corresponds to the JSON property storageAccount
287 288 289 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 287 def storage_account @storage_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
294 295 296 297 298 299 300 301 302 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 294 def update!(**args) @azure_credentials = args[:azure_credentials] if args.key?(:azure_credentials) @container = args[:container] if args.key?(:container) @credentials_secret = args[:credentials_secret] if args.key?(:credentials_secret) @federated_identity_config = args[:federated_identity_config] if args.key?(:federated_identity_config) @path = args[:path] if args.key?(:path) @private_network_service = args[:private_network_service] if args.key?(:private_network_service) @storage_account = args[:storage_account] if args.key?(:storage_account) end |