Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

fix: update gapic-generator-java with mock service generation fixes #34

Merged
merged 7 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,8 @@
"grpc": {
"libraryClient": "BareMetalSolutionClient",
"rpcs": {
"CreateSnapshotSchedulePolicy": {
"methods": ["createSnapshotSchedulePolicy", "createSnapshotSchedulePolicy", "createSnapshotSchedulePolicy", "createSnapshotSchedulePolicyCallable"]
},
"CreateVolumeSnapshot": {
"methods": ["createVolumeSnapshot", "createVolumeSnapshot", "createVolumeSnapshot", "createVolumeSnapshotCallable"]
},
"DeleteSnapshotSchedulePolicy": {
"methods": ["deleteSnapshotSchedulePolicy", "deleteSnapshotSchedulePolicy", "deleteSnapshotSchedulePolicy", "deleteSnapshotSchedulePolicyCallable"]
},
"DeleteVolumeSnapshot": {
"methods": ["deleteVolumeSnapshot", "deleteVolumeSnapshot", "deleteVolumeSnapshot", "deleteVolumeSnapshotCallable"]
"DetachLun": {
"methods": ["detachLunAsync", "detachLunAsync", "detachLunAsync", "detachLunAsync", "detachLunAsync", "detachLunOperationCallable", "detachLunCallable"]
},
"GetInstance": {
"methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"]
Expand All @@ -31,41 +22,50 @@
"GetNetwork": {
"methods": ["getNetwork", "getNetwork", "getNetwork", "getNetworkCallable"]
},
"GetSnapshotSchedulePolicy": {
"methods": ["getSnapshotSchedulePolicy", "getSnapshotSchedulePolicy", "getSnapshotSchedulePolicy", "getSnapshotSchedulePolicyCallable"]
"GetNfsShare": {
"methods": ["getNfsShare", "getNfsShare", "getNfsShare", "getNfsShareCallable"]
},
"GetVolume": {
"methods": ["getVolume", "getVolume", "getVolume", "getVolumeCallable"]
},
"GetVolumeSnapshot": {
"methods": ["getVolumeSnapshot", "getVolumeSnapshot", "getVolumeSnapshot", "getVolumeSnapshotCallable"]
},
"ListInstances": {
"methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"]
},
"ListLuns": {
"methods": ["listLuns", "listLuns", "listLuns", "listLunsPagedCallable", "listLunsCallable"]
},
"ListNetworkUsage": {
"methods": ["listNetworkUsage", "listNetworkUsage", "listNetworkUsage", "listNetworkUsageCallable"]
},
"ListNetworks": {
"methods": ["listNetworks", "listNetworks", "listNetworks", "listNetworksPagedCallable", "listNetworksCallable"]
},
"ListSnapshotSchedulePolicies": {
"methods": ["listSnapshotSchedulePolicies", "listSnapshotSchedulePolicies", "listSnapshotSchedulePolicies", "listSnapshotSchedulePoliciesPagedCallable", "listSnapshotSchedulePoliciesCallable"]
},
"ListVolumeSnapshots": {
"methods": ["listVolumeSnapshots", "listVolumeSnapshots", "listVolumeSnapshots", "listVolumeSnapshotsPagedCallable", "listVolumeSnapshotsCallable"]
"ListNfsShares": {
"methods": ["listNfsShares", "listNfsShares", "listNfsShares", "listNfsSharesPagedCallable", "listNfsSharesCallable"]
},
"ListVolumes": {
"methods": ["listVolumes", "listVolumes", "listVolumes", "listVolumesPagedCallable", "listVolumesCallable"]
},
"ResetInstance": {
"methods": ["resetInstanceAsync", "resetInstanceAsync", "resetInstanceAsync", "resetInstanceOperationCallable", "resetInstanceCallable"]
},
"RestoreVolumeSnapshot": {
"methods": ["restoreVolumeSnapshotAsync", "restoreVolumeSnapshotAsync", "restoreVolumeSnapshotAsync", "restoreVolumeSnapshotOperationCallable", "restoreVolumeSnapshotCallable"]
"ResizeVolume": {
"methods": ["resizeVolumeAsync", "resizeVolumeAsync", "resizeVolumeAsync", "resizeVolumeOperationCallable", "resizeVolumeCallable"]
},
"StartInstance": {
"methods": ["startInstanceAsync", "startInstanceAsync", "startInstanceAsync", "startInstanceOperationCallable", "startInstanceCallable"]
},
"StopInstance": {
"methods": ["stopInstanceAsync", "stopInstanceAsync", "stopInstanceAsync", "stopInstanceOperationCallable", "stopInstanceCallable"]
},
"UpdateInstance": {
"methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"]
},
"UpdateNetwork": {
"methods": ["updateNetworkAsync", "updateNetworkAsync", "updateNetworkOperationCallable", "updateNetworkCallable"]
},
"UpdateSnapshotSchedulePolicy": {
"methods": ["updateSnapshotSchedulePolicy", "updateSnapshotSchedulePolicy", "updateSnapshotSchedulePolicyCallable"]
"UpdateNfsShare": {
"methods": ["updateNfsShareAsync", "updateNfsShareAsync", "updateNfsShareOperationCallable", "updateNfsShareCallable"]
},
"UpdateVolume": {
"methods": ["updateVolumeAsync", "updateVolumeAsync", "updateVolumeOperationCallable", "updateVolumeCallable"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,49 @@
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse;
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse;
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse;
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListSnapshotSchedulePoliciesPagedResponse;
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumeSnapshotsPagedResponse;
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse;
import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse;

import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest;
import com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest;
import com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest;
import com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest;
import com.google.cloud.baremetalsolution.v2.DetachLunRequest;
import com.google.cloud.baremetalsolution.v2.GetInstanceRequest;
import com.google.cloud.baremetalsolution.v2.GetLunRequest;
import com.google.cloud.baremetalsolution.v2.GetNetworkRequest;
import com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest;
import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest;
import com.google.cloud.baremetalsolution.v2.GetVolumeRequest;
import com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.ListInstancesRequest;
import com.google.cloud.baremetalsolution.v2.ListInstancesResponse;
import com.google.cloud.baremetalsolution.v2.ListLunsRequest;
import com.google.cloud.baremetalsolution.v2.ListLunsResponse;
import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest;
import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse;
import com.google.cloud.baremetalsolution.v2.ListNetworksRequest;
import com.google.cloud.baremetalsolution.v2.ListNetworksResponse;
import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest;
import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse;
import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest;
import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse;
import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest;
import com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse;
import com.google.cloud.baremetalsolution.v2.ListVolumesRequest;
import com.google.cloud.baremetalsolution.v2.ListVolumesResponse;
import com.google.cloud.baremetalsolution.v2.Lun;
import com.google.cloud.baremetalsolution.v2.Network;
import com.google.cloud.baremetalsolution.v2.NfsShare;
import com.google.cloud.baremetalsolution.v2.OperationMetadata;
import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest;
import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse;
import com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest;
import com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy;
import com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest;
import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest;
import com.google.cloud.baremetalsolution.v2.StartInstanceRequest;
import com.google.cloud.baremetalsolution.v2.StartInstanceResponse;
import com.google.cloud.baremetalsolution.v2.StopInstanceRequest;
import com.google.cloud.baremetalsolution.v2.StopInstanceResponse;
import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest;
import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest;
import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest;
import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest;
import com.google.cloud.baremetalsolution.v2.Volume;
import com.google.cloud.baremetalsolution.v2.VolumeSnapshot;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import com.google.protobuf.Empty;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
Expand Down Expand Up @@ -91,6 +90,15 @@ public UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() {
throw new UnsupportedOperationException("Not implemented: getInstanceCallable()");
}

public OperationCallable<UpdateInstanceRequest, Instance, OperationMetadata>
updateInstanceOperationCallable() {
throw new UnsupportedOperationException("Not implemented: updateInstanceOperationCallable()");
}

public UnaryCallable<UpdateInstanceRequest, Operation> updateInstanceCallable() {
throw new UnsupportedOperationException("Not implemented: updateInstanceCallable()");
}

public OperationCallable<ResetInstanceRequest, ResetInstanceResponse, OperationMetadata>
resetInstanceOperationCallable() {
throw new UnsupportedOperationException("Not implemented: resetInstanceOperationCallable()");
Expand All @@ -100,6 +108,33 @@ public UnaryCallable<ResetInstanceRequest, Operation> resetInstanceCallable() {
throw new UnsupportedOperationException("Not implemented: resetInstanceCallable()");
}

public OperationCallable<StartInstanceRequest, StartInstanceResponse, OperationMetadata>
startInstanceOperationCallable() {
throw new UnsupportedOperationException("Not implemented: startInstanceOperationCallable()");
}

public UnaryCallable<StartInstanceRequest, Operation> startInstanceCallable() {
throw new UnsupportedOperationException("Not implemented: startInstanceCallable()");
}

public OperationCallable<StopInstanceRequest, StopInstanceResponse, OperationMetadata>
stopInstanceOperationCallable() {
throw new UnsupportedOperationException("Not implemented: stopInstanceOperationCallable()");
}

public UnaryCallable<StopInstanceRequest, Operation> stopInstanceCallable() {
throw new UnsupportedOperationException("Not implemented: stopInstanceCallable()");
}

public OperationCallable<DetachLunRequest, Instance, OperationMetadata>
detachLunOperationCallable() {
throw new UnsupportedOperationException("Not implemented: detachLunOperationCallable()");
}

public UnaryCallable<DetachLunRequest, Operation> detachLunCallable() {
throw new UnsupportedOperationException("Not implemented: detachLunCallable()");
}

public UnaryCallable<ListVolumesRequest, ListVolumesPagedResponse> listVolumesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listVolumesPagedCallable()");
}
Expand All @@ -121,96 +156,73 @@ public UnaryCallable<UpdateVolumeRequest, Operation> updateVolumeCallable() {
throw new UnsupportedOperationException("Not implemented: updateVolumeCallable()");
}

public UnaryCallable<ListNetworksRequest, ListNetworksPagedResponse> listNetworksPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listNetworksPagedCallable()");
}

public UnaryCallable<ListNetworksRequest, ListNetworksResponse> listNetworksCallable() {
throw new UnsupportedOperationException("Not implemented: listNetworksCallable()");
}

public UnaryCallable<GetNetworkRequest, Network> getNetworkCallable() {
throw new UnsupportedOperationException("Not implemented: getNetworkCallable()");
}

public UnaryCallable<
ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesPagedResponse>
listSnapshotSchedulePoliciesPagedCallable() {
throw new UnsupportedOperationException(
"Not implemented: listSnapshotSchedulePoliciesPagedCallable()");
public OperationCallable<ResizeVolumeRequest, Volume, OperationMetadata>
resizeVolumeOperationCallable() {
throw new UnsupportedOperationException("Not implemented: resizeVolumeOperationCallable()");
}

public UnaryCallable<ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesResponse>
listSnapshotSchedulePoliciesCallable() {
throw new UnsupportedOperationException(
"Not implemented: listSnapshotSchedulePoliciesCallable()");
public UnaryCallable<ResizeVolumeRequest, Operation> resizeVolumeCallable() {
throw new UnsupportedOperationException("Not implemented: resizeVolumeCallable()");
}

public UnaryCallable<GetSnapshotSchedulePolicyRequest, SnapshotSchedulePolicy>
getSnapshotSchedulePolicyCallable() {
throw new UnsupportedOperationException("Not implemented: getSnapshotSchedulePolicyCallable()");
public UnaryCallable<ListNetworksRequest, ListNetworksPagedResponse> listNetworksPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listNetworksPagedCallable()");
}

public UnaryCallable<CreateSnapshotSchedulePolicyRequest, SnapshotSchedulePolicy>
createSnapshotSchedulePolicyCallable() {
throw new UnsupportedOperationException(
"Not implemented: createSnapshotSchedulePolicyCallable()");
public UnaryCallable<ListNetworksRequest, ListNetworksResponse> listNetworksCallable() {
throw new UnsupportedOperationException("Not implemented: listNetworksCallable()");
}

public UnaryCallable<UpdateSnapshotSchedulePolicyRequest, SnapshotSchedulePolicy>
updateSnapshotSchedulePolicyCallable() {
throw new UnsupportedOperationException(
"Not implemented: updateSnapshotSchedulePolicyCallable()");
public UnaryCallable<ListNetworkUsageRequest, ListNetworkUsageResponse>
listNetworkUsageCallable() {
throw new UnsupportedOperationException("Not implemented: listNetworkUsageCallable()");
}

public UnaryCallable<DeleteSnapshotSchedulePolicyRequest, Empty>
deleteSnapshotSchedulePolicyCallable() {
throw new UnsupportedOperationException(
"Not implemented: deleteSnapshotSchedulePolicyCallable()");
public UnaryCallable<GetNetworkRequest, Network> getNetworkCallable() {
throw new UnsupportedOperationException("Not implemented: getNetworkCallable()");
}

public UnaryCallable<CreateVolumeSnapshotRequest, VolumeSnapshot> createVolumeSnapshotCallable() {
throw new UnsupportedOperationException("Not implemented: createVolumeSnapshotCallable()");
public OperationCallable<UpdateNetworkRequest, Network, OperationMetadata>
updateNetworkOperationCallable() {
throw new UnsupportedOperationException("Not implemented: updateNetworkOperationCallable()");
}

public OperationCallable<RestoreVolumeSnapshotRequest, VolumeSnapshot, OperationMetadata>
restoreVolumeSnapshotOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: restoreVolumeSnapshotOperationCallable()");
public UnaryCallable<UpdateNetworkRequest, Operation> updateNetworkCallable() {
throw new UnsupportedOperationException("Not implemented: updateNetworkCallable()");
}

public UnaryCallable<RestoreVolumeSnapshotRequest, Operation> restoreVolumeSnapshotCallable() {
throw new UnsupportedOperationException("Not implemented: restoreVolumeSnapshotCallable()");
public UnaryCallable<GetLunRequest, Lun> getLunCallable() {
throw new UnsupportedOperationException("Not implemented: getLunCallable()");
}

public UnaryCallable<DeleteVolumeSnapshotRequest, Empty> deleteVolumeSnapshotCallable() {
throw new UnsupportedOperationException("Not implemented: deleteVolumeSnapshotCallable()");
public UnaryCallable<ListLunsRequest, ListLunsPagedResponse> listLunsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLunsPagedCallable()");
}

public UnaryCallable<GetVolumeSnapshotRequest, VolumeSnapshot> getVolumeSnapshotCallable() {
throw new UnsupportedOperationException("Not implemented: getVolumeSnapshotCallable()");
public UnaryCallable<ListLunsRequest, ListLunsResponse> listLunsCallable() {
throw new UnsupportedOperationException("Not implemented: listLunsCallable()");
}

public UnaryCallable<ListVolumeSnapshotsRequest, ListVolumeSnapshotsPagedResponse>
listVolumeSnapshotsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listVolumeSnapshotsPagedCallable()");
public UnaryCallable<GetNfsShareRequest, NfsShare> getNfsShareCallable() {
throw new UnsupportedOperationException("Not implemented: getNfsShareCallable()");
}

public UnaryCallable<ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse>
listVolumeSnapshotsCallable() {
throw new UnsupportedOperationException("Not implemented: listVolumeSnapshotsCallable()");
public UnaryCallable<ListNfsSharesRequest, ListNfsSharesPagedResponse>
listNfsSharesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listNfsSharesPagedCallable()");
}

public UnaryCallable<GetLunRequest, Lun> getLunCallable() {
throw new UnsupportedOperationException("Not implemented: getLunCallable()");
public UnaryCallable<ListNfsSharesRequest, ListNfsSharesResponse> listNfsSharesCallable() {
throw new UnsupportedOperationException("Not implemented: listNfsSharesCallable()");
}

public UnaryCallable<ListLunsRequest, ListLunsPagedResponse> listLunsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLunsPagedCallable()");
public OperationCallable<UpdateNfsShareRequest, NfsShare, OperationMetadata>
updateNfsShareOperationCallable() {
throw new UnsupportedOperationException("Not implemented: updateNfsShareOperationCallable()");
}

public UnaryCallable<ListLunsRequest, ListLunsResponse> listLunsCallable() {
throw new UnsupportedOperationException("Not implemented: listLunsCallable()");
public UnaryCallable<UpdateNfsShareRequest, Operation> updateNfsShareCallable() {
throw new UnsupportedOperationException("Not implemented: updateNfsShareCallable()");
}

@Override
Expand Down
Loading