@@ -47,7 +47,7 @@ func NewClient(containerURL string, cred azcore.TokenCredential, options *Client
4747 conOptions := shared .GetClientOptions (options )
4848 plOpts := runtime.PipelineOptions {PerRetry : []policy.Policy {authPolicy }}
4949
50- azClient , err := azcore .NewClient (shared . ContainerClient , exported .ModuleVersion , plOpts , & conOptions .ClientOptions )
50+ azClient , err := azcore .NewClient (exported . ModuleName , exported .ModuleVersion , plOpts , & conOptions .ClientOptions )
5151 if err != nil {
5252 return nil , err
5353 }
@@ -61,7 +61,7 @@ func NewClient(containerURL string, cred azcore.TokenCredential, options *Client
6161func NewClientWithNoCredential (containerURL string , options * ClientOptions ) (* Client , error ) {
6262 conOptions := shared .GetClientOptions (options )
6363
64- azClient , err := azcore .NewClient (shared . ContainerClient , exported .ModuleVersion , runtime.PipelineOptions {}, & conOptions .ClientOptions )
64+ azClient , err := azcore .NewClient (exported . ModuleName , exported .ModuleVersion , runtime.PipelineOptions {}, & conOptions .ClientOptions )
6565 if err != nil {
6666 return nil , err
6767 }
@@ -77,7 +77,7 @@ func NewClientWithSharedKeyCredential(containerURL string, cred *SharedKeyCreden
7777 conOptions := shared .GetClientOptions (options )
7878 plOpts := runtime.PipelineOptions {PerRetry : []policy.Policy {authPolicy }}
7979
80- azClient , err := azcore .NewClient (shared . ContainerClient , exported .ModuleVersion , plOpts , & conOptions .ClientOptions )
80+ azClient , err := azcore .NewClient (exported . ModuleName , exported .ModuleVersion , plOpts , & conOptions .ClientOptions )
8181 if err != nil {
8282 return nil , err
8383 }
@@ -138,7 +138,7 @@ func (c *Client) URL() string {
138138func (c * Client ) NewBlobClient (blobName string ) * blob.Client {
139139 blobName = url .PathEscape (blobName )
140140 blobURL := runtime .JoinPaths (c .URL (), blobName )
141- return (* blob .Client )(base .NewBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (shared . BlobClient ), c .credential (), c .getClientOptions ()))
141+ return (* blob .Client )(base .NewBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (exported . ModuleName ), c .credential (), c .getClientOptions ()))
142142}
143143
144144// NewAppendBlobClient creates a new appendblob.Client object by concatenating blobName to the end of
@@ -147,7 +147,7 @@ func (c *Client) NewBlobClient(blobName string) *blob.Client {
147147func (c * Client ) NewAppendBlobClient (blobName string ) * appendblob.Client {
148148 blobName = url .PathEscape (blobName )
149149 blobURL := runtime .JoinPaths (c .URL (), blobName )
150- return (* appendblob .Client )(base .NewAppendBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (shared . AppendBlobClient ), c .sharedKey ()))
150+ return (* appendblob .Client )(base .NewAppendBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (exported . ModuleName ), c .sharedKey ()))
151151}
152152
153153// NewBlockBlobClient creates a new blockblob.Client object by concatenating blobName to the end of
@@ -156,7 +156,7 @@ func (c *Client) NewAppendBlobClient(blobName string) *appendblob.Client {
156156func (c * Client ) NewBlockBlobClient (blobName string ) * blockblob.Client {
157157 blobName = url .PathEscape (blobName )
158158 blobURL := runtime .JoinPaths (c .URL (), blobName )
159- return (* blockblob .Client )(base .NewBlockBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (shared . BlockBlobClient ), c .sharedKey ()))
159+ return (* blockblob .Client )(base .NewBlockBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (exported . ModuleName ), c .sharedKey ()))
160160}
161161
162162// NewPageBlobClient creates a new pageblob.Client object by concatenating blobName to the end of
@@ -165,7 +165,7 @@ func (c *Client) NewBlockBlobClient(blobName string) *blockblob.Client {
165165func (c * Client ) NewPageBlobClient (blobName string ) * pageblob.Client {
166166 blobName = url .PathEscape (blobName )
167167 blobURL := runtime .JoinPaths (c .URL (), blobName )
168- return (* pageblob .Client )(base .NewPageBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (shared . PageBlobClient ), c .sharedKey ()))
168+ return (* pageblob .Client )(base .NewPageBlobClient (blobURL , c .generated ().InternalClient ().WithClientName (exported . ModuleName ), c .sharedKey ()))
169169}
170170
171171// Create creates a new container within a storage account. If a container with the same name already exists, the operation fails.
0 commit comments