Class: Google::Apis::StoragetransferV1::AzureBlobStorageData

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AzureBlobStorageData

Returns a new instance of AzureBlobStorageData.



125
126
127
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 125

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

Instance Attribute Details

#azure_credentialsGoogle::Apis::StoragetransferV1::AzureCredentials

Azure credentials For information on our data retention policy for user credentials, see User credentials. Corresponds to the JSON property azureCredentials



106
107
108
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 106

def azure_credentials
  @azure_credentials
end

#containerString

Required. The container to transfer from the Azure Storage account. Corresponds to the JSON property container

Returns:

  • (String)


111
112
113
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 111

def container
  @container
end

#pathString

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

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 118

def path
  @path
end

#storage_accountString

Required. The name of the Azure Storage account. Corresponds to the JSON property storageAccount

Returns:

  • (String)


123
124
125
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 123

def 
  @storage_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



130
131
132
133
134
135
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 130

def update!(**args)
  @azure_credentials = args[:azure_credentials] if args.key?(:azure_credentials)
  @container = args[:container] if args.key?(:container)
  @path = args[:path] if args.key?(:path)
  @storage_account = args[:storage_account] if args.key?(:storage_account)
end