Skip to content

Commit 9f976bf

Browse files
author
Shun Fan
committed
Merge pull request #22 from GoogleCloudPlatform/sfan-sts03
Add region tags to exclude license
2 parents 884eba7 + 80cf50d commit 9f976bf

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

cloud-storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/AwsRequester.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
// [START all]
1717
package com.google.cloud.storage.storagetransfer.samples;
1818

1919
import com.google.api.services.storagetransfer.Storagetransfer;
@@ -101,4 +101,5 @@ public static void main(String[] args) {
101101
e.printStackTrace();
102102
}
103103
}
104-
}
104+
}
105+
//[END all]

cloud-storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/NearlineRequester.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
// [START all]
1717
package com.google.cloud.storage.storagetransfer.samples;
1818

1919
import com.google.api.services.storagetransfer.Storagetransfer;
@@ -98,4 +98,5 @@ public static void main(String[] args) {
9898
e.printStackTrace();
9999
}
100100
}
101-
}
101+
}
102+
//[END all]

cloud-storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/RequestChecker.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
// [START all]
1717
package com.google.cloud.storage.storagetransfer.samples;
1818

1919
import com.google.api.services.storagetransfer.Storagetransfer;
@@ -70,4 +70,5 @@ public static void main(String[] args) {
7070
e.printStackTrace();
7171
}
7272
}
73-
}
73+
}
74+
//[END all]

cloud-storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/RetryHttpInitializerWrapper.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
// [START all]
1717
package com.google.cloud.storage.storagetransfer.samples;
1818

1919
import com.google.api.client.auth.oauth2.Credential;
@@ -95,4 +95,5 @@ public boolean handleResponse(final HttpRequest request, final HttpResponse resp
9595
request.setIOExceptionHandler(new HttpBackOffIOExceptionHandler(new ExponentialBackOff())
9696
.setSleeper(sleeper));
9797
}
98-
}
98+
}
99+
//[END all]

cloud-storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferClientCreator.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
// [START all]
1717
package com.google.cloud.storage.storagetransfer.samples;
1818

1919
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
@@ -76,4 +76,5 @@ public static Storagetransfer createStorageTransferClient(HttpTransport httpTran
7676
return new Storagetransfer.Builder(httpTransport, jsonFactory, initializer)
7777
.setApplicationName("storagetransfer-sample").build();
7878
}
79-
}
79+
}
80+
//[END all]

cloud-storage/storage-transfer/src/main/java/com/google/cloud/storage/storagetransfer/samples/TransferJobUtils.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
// [START all]
1717
package com.google.cloud.storage.storagetransfer.samples;
1818

1919
import com.google.api.services.storagetransfer.model.Date;
@@ -75,3 +75,4 @@ public static TimeOfDay createTimeOfDay(String timeString) throws NumberFormatEx
7575
return time;
7676
}
7777
}
78+
//[END all]

0 commit comments

Comments
 (0)