-
Notifications
You must be signed in to change notification settings - Fork 2.9k
STS Azure sample #7529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STS Azure sample #7529
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
...ansfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferFromAzure.java
Outdated
Show resolved
Hide resolved
...ansfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferFromAzure.java
Show resolved
Hide resolved
| // Create the transfer job | ||
| TransferJob response = | ||
| storageTransfer.createTransferJob( | ||
| TransferProto.CreateTransferJobRequest.newBuilder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggesting to inline the "TransferProto" to make it more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies if I wasn't clear enough. Could you include TransferProto.CreateTransferJobRequest in the import statement so that you could directly access CreateTransferJobRequest.newBuilder() in this line?
| .setAzureCredentials(AzureCredentials.newBuilder() | ||
| .setSasToken(azureSasToken).build()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly lint AzureCredentials:
.setAzureCredentials(AzureCredentials.newBuilder()
.setSasToken(azureSasToken)
.build())
.setContainer...
...ansfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferFromAzure.java
Outdated
Show resolved
Hide resolved
...ansfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferFromAzure.java
Show resolved
Hide resolved
...ansfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferFromAzure.java
Outdated
Show resolved
Hide resolved
...ansfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferFromAzure.java
Outdated
Show resolved
Hide resolved
|
|
||
| // Your Azure Storage Account name | ||
| String azureStorageAccountName = "myAzureAccountName"; | ||
| String azureStorageAccount = "myAzureAccoun"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"my-azure-account"
Sita04
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with few nits.
Adds a sample for transferring data from Azure