Skip to content

Commit

Permalink
chore(regen): Re-generated to pick up changes in the API or client li…
Browse files Browse the repository at this point in the history
…brary generator. (#158)
  • Loading branch information
yoshi-automation authored and igorbernstein2 committed Jan 15, 2020
1 parent abbc6c8 commit cb686d4
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 77 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -177,7 +177,6 @@ public final OperationsClient getOperationsClient() {
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsync(
ProjectName parent, String instanceId, Instance instance, Map<String, Cluster> clusters) {

CreateInstanceRequest request =
CreateInstanceRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
Expand Down Expand Up @@ -219,7 +218,6 @@ public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsy
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsync(
String parent, String instanceId, Instance instance, Map<String, Cluster> clusters) {

CreateInstanceRequest request =
CreateInstanceRequest.newBuilder()
.setParent(parent)
Expand Down Expand Up @@ -338,7 +336,6 @@ public final UnaryCallable<CreateInstanceRequest, Operation> createInstanceCalla
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Instance getInstance(InstanceName name) {

GetInstanceRequest request =
GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getInstance(request);
Expand All @@ -362,7 +359,6 @@ public final Instance getInstance(InstanceName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Instance getInstance(String name) {

GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name).build();
return getInstance(request);
}
Expand Down Expand Up @@ -430,7 +426,6 @@ public final UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListInstancesResponse listInstances(ProjectName parent) {

ListInstancesRequest request =
ListInstancesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
Expand All @@ -456,7 +451,6 @@ public final ListInstancesResponse listInstances(ProjectName parent) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListInstancesResponse listInstances(String parent) {

ListInstancesRequest request = ListInstancesRequest.newBuilder().setParent(parent).build();
return listInstances(request);
}
Expand Down Expand Up @@ -529,7 +523,6 @@ public final UnaryCallable<ListInstancesRequest, ListInstancesResponse> listInst
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Instance, UpdateInstanceMetadata> partialUpdateInstanceAsync(
Instance instance, FieldMask updateMask) {

PartialUpdateInstanceRequest request =
PartialUpdateInstanceRequest.newBuilder()
.setInstance(instance)
Expand Down Expand Up @@ -635,7 +628,6 @@ public final OperationFuture<Instance, UpdateInstanceMetadata> partialUpdateInst
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteInstance(InstanceName name) {

DeleteInstanceRequest request =
DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteInstance(request);
Expand All @@ -659,7 +651,6 @@ public final void deleteInstance(InstanceName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteInstance(String name) {

DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name).build();
deleteInstance(request);
}
Expand Down Expand Up @@ -735,7 +726,6 @@ public final UnaryCallable<DeleteInstanceRequest, Empty> deleteInstanceCallable(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Cluster, CreateClusterMetadata> createClusterAsync(
InstanceName parent, String clusterId, Cluster cluster) {

CreateClusterRequest request =
CreateClusterRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
Expand Down Expand Up @@ -771,7 +761,6 @@ public final OperationFuture<Cluster, CreateClusterMetadata> createClusterAsync(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Cluster, CreateClusterMetadata> createClusterAsync(
String parent, String clusterId, Cluster cluster) {

CreateClusterRequest request =
CreateClusterRequest.newBuilder()
.setParent(parent)
Expand Down Expand Up @@ -883,7 +872,6 @@ public final UnaryCallable<CreateClusterRequest, Operation> createClusterCallabl
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Cluster getCluster(ClusterName name) {

GetClusterRequest request =
GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getCluster(request);
Expand All @@ -907,7 +895,6 @@ public final Cluster getCluster(ClusterName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Cluster getCluster(String name) {

GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build();
return getCluster(request);
}
Expand Down Expand Up @@ -977,7 +964,6 @@ public final UnaryCallable<GetClusterRequest, Cluster> getClusterCallable() {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListClustersResponse listClusters(InstanceName parent) {

ListClustersRequest request =
ListClustersRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
Expand Down Expand Up @@ -1005,7 +991,6 @@ public final ListClustersResponse listClusters(InstanceName parent) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListClustersResponse listClusters(String parent) {

ListClustersRequest request = ListClustersRequest.newBuilder().setParent(parent).build();
return listClusters(request);
}
Expand Down Expand Up @@ -1150,7 +1135,6 @@ public final UnaryCallable<Cluster, Operation> updateClusterCallable() {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteCluster(ClusterName name) {

DeleteClusterRequest request =
DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteCluster(request);
Expand All @@ -1174,7 +1158,6 @@ public final void deleteCluster(ClusterName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteCluster(String name) {

DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build();
deleteCluster(request);
}
Expand Down Expand Up @@ -1249,7 +1232,6 @@ public final UnaryCallable<DeleteClusterRequest, Empty> deleteClusterCallable()
*/
public final AppProfile createAppProfile(
InstanceName parent, String appProfileId, AppProfile appProfile) {

CreateAppProfileRequest request =
CreateAppProfileRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
Expand Down Expand Up @@ -1284,7 +1266,6 @@ public final AppProfile createAppProfile(
*/
public final AppProfile createAppProfile(
String parent, String appProfileId, AppProfile appProfile) {

CreateAppProfileRequest request =
CreateAppProfileRequest.newBuilder()
.setParent(parent)
Expand Down Expand Up @@ -1365,7 +1346,6 @@ public final UnaryCallable<CreateAppProfileRequest, AppProfile> createAppProfile
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AppProfile getAppProfile(AppProfileName name) {

GetAppProfileRequest request =
GetAppProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getAppProfile(request);
Expand All @@ -1389,7 +1369,6 @@ public final AppProfile getAppProfile(AppProfileName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AppProfile getAppProfile(String name) {

GetAppProfileRequest request = GetAppProfileRequest.newBuilder().setName(name).build();
return getAppProfile(request);
}
Expand Down Expand Up @@ -1599,7 +1578,6 @@ public final ListAppProfilesPagedResponse listAppProfiles(ListAppProfilesRequest
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<AppProfile, UpdateAppProfileMetadata> updateAppProfileAsync(
AppProfile appProfile, FieldMask updateMask) {

UpdateAppProfileRequest request =
UpdateAppProfileRequest.newBuilder()
.setAppProfile(appProfile)
Expand Down Expand Up @@ -1704,7 +1682,6 @@ public final UnaryCallable<UpdateAppProfileRequest, Operation> updateAppProfileC
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteAppProfile(AppProfileName name) {

DeleteAppProfileRequest request =
DeleteAppProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteAppProfile(request);
Expand All @@ -1728,7 +1705,6 @@ public final void deleteAppProfile(AppProfileName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteAppProfile(String name) {

DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder().setName(name).build();
deleteAppProfile(request);
}
Expand Down Expand Up @@ -1801,7 +1777,6 @@ public final UnaryCallable<DeleteAppProfileRequest, Empty> deleteAppProfileCalla
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(String resource) {

GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
return getIamPolicy(request);
}
Expand Down Expand Up @@ -1875,7 +1850,6 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy setIamPolicy(String resource, Policy policy) {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
return setIamPolicy(request);
Expand Down Expand Up @@ -1953,7 +1927,6 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
*/
public final TestIamPermissionsResponse testIamPermissions(
String resource, List<String> permissions) {

TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(resource)
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit cb686d4

Please sign in to comment.