Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 959cd01

Browse files
fix: migrate kms/v1 to grpc_service_config (#193)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/c330ec71-3b2b-4ad2-9d49-78b97f45869d/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 315978777 Source-Link: googleapis/googleapis@dfacde6
1 parent c9855e4 commit 959cd01

File tree

8 files changed

+3038
-3018
lines changed

8 files changed

+3038
-3018
lines changed

google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java

Lines changed: 1739 additions & 1732 deletions
Large diffs are not rendered by default.

google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java

Lines changed: 110 additions & 110 deletions
Large diffs are not rendered by default.

google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@
3838
* <pre>
3939
* <code>
4040
* try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
41-
* KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
42-
* KeyRing response = keyManagementServiceClient.getKeyRing(name);
41+
* KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
42+
* String importJobId = "my-import-job";
43+
* ImportJob.ImportMethod importMethod = ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256;
44+
* ProtectionLevel protectionLevel = ProtectionLevel.HSM;
45+
* ImportJob importJob = ImportJob.newBuilder()
46+
* .setImportMethod(importMethod)
47+
* .setProtectionLevel(protectionLevel)
48+
* .build();
49+
* ImportJob response = keyManagementServiceClient.createImportJob(parent, importJobId, importJob);
4350
* }
4451
* </code>
4552
* </pre>

google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java

Lines changed: 340 additions & 340 deletions
Large diffs are not rendered by default.

google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,33 @@
7676
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
7777
public abstract class KeyManagementServiceStub implements BackgroundResource {
7878

79-
public UnaryCallable<ListKeyRingsRequest, ListKeyRingsPagedResponse> listKeyRingsPagedCallable() {
80-
throw new UnsupportedOperationException("Not implemented: listKeyRingsPagedCallable()");
79+
public UnaryCallable<CreateImportJobRequest, ImportJob> createImportJobCallable() {
80+
throw new UnsupportedOperationException("Not implemented: createImportJobCallable()");
8181
}
8282

83-
public UnaryCallable<ListKeyRingsRequest, ListKeyRingsResponse> listKeyRingsCallable() {
84-
throw new UnsupportedOperationException("Not implemented: listKeyRingsCallable()");
83+
public UnaryCallable<CreateCryptoKeyRequest, CryptoKey> createCryptoKeyCallable() {
84+
throw new UnsupportedOperationException("Not implemented: createCryptoKeyCallable()");
8585
}
8686

87-
public UnaryCallable<ListImportJobsRequest, ListImportJobsPagedResponse>
88-
listImportJobsPagedCallable() {
89-
throw new UnsupportedOperationException("Not implemented: listImportJobsPagedCallable()");
87+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
88+
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
9089
}
9190

92-
public UnaryCallable<ListImportJobsRequest, ListImportJobsResponse> listImportJobsCallable() {
93-
throw new UnsupportedOperationException("Not implemented: listImportJobsCallable()");
91+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
92+
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
93+
}
94+
95+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
96+
testIamPermissionsCallable() {
97+
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
98+
}
99+
100+
public UnaryCallable<ListKeyRingsRequest, ListKeyRingsPagedResponse> listKeyRingsPagedCallable() {
101+
throw new UnsupportedOperationException("Not implemented: listKeyRingsPagedCallable()");
102+
}
103+
104+
public UnaryCallable<ListKeyRingsRequest, ListKeyRingsResponse> listKeyRingsCallable() {
105+
throw new UnsupportedOperationException("Not implemented: listKeyRingsCallable()");
94106
}
95107

96108
public UnaryCallable<ListCryptoKeysRequest, ListCryptoKeysPagedResponse>
@@ -113,12 +125,17 @@ public UnaryCallable<ListCryptoKeysRequest, ListCryptoKeysResponse> listCryptoKe
113125
throw new UnsupportedOperationException("Not implemented: listCryptoKeyVersionsCallable()");
114126
}
115127

116-
public UnaryCallable<GetKeyRingRequest, KeyRing> getKeyRingCallable() {
117-
throw new UnsupportedOperationException("Not implemented: getKeyRingCallable()");
128+
public UnaryCallable<ListImportJobsRequest, ListImportJobsPagedResponse>
129+
listImportJobsPagedCallable() {
130+
throw new UnsupportedOperationException("Not implemented: listImportJobsPagedCallable()");
118131
}
119132

120-
public UnaryCallable<GetImportJobRequest, ImportJob> getImportJobCallable() {
121-
throw new UnsupportedOperationException("Not implemented: getImportJobCallable()");
133+
public UnaryCallable<ListImportJobsRequest, ListImportJobsResponse> listImportJobsCallable() {
134+
throw new UnsupportedOperationException("Not implemented: listImportJobsCallable()");
135+
}
136+
137+
public UnaryCallable<GetKeyRingRequest, KeyRing> getKeyRingCallable() {
138+
throw new UnsupportedOperationException("Not implemented: getKeyRingCallable()");
122139
}
123140

124141
public UnaryCallable<GetCryptoKeyRequest, CryptoKey> getCryptoKeyCallable() {
@@ -129,16 +146,16 @@ public UnaryCallable<GetCryptoKeyVersionRequest, CryptoKeyVersion> getCryptoKeyV
129146
throw new UnsupportedOperationException("Not implemented: getCryptoKeyVersionCallable()");
130147
}
131148

132-
public UnaryCallable<CreateKeyRingRequest, KeyRing> createKeyRingCallable() {
133-
throw new UnsupportedOperationException("Not implemented: createKeyRingCallable()");
149+
public UnaryCallable<GetPublicKeyRequest, PublicKey> getPublicKeyCallable() {
150+
throw new UnsupportedOperationException("Not implemented: getPublicKeyCallable()");
134151
}
135152

136-
public UnaryCallable<CreateImportJobRequest, ImportJob> createImportJobCallable() {
137-
throw new UnsupportedOperationException("Not implemented: createImportJobCallable()");
153+
public UnaryCallable<GetImportJobRequest, ImportJob> getImportJobCallable() {
154+
throw new UnsupportedOperationException("Not implemented: getImportJobCallable()");
138155
}
139156

140-
public UnaryCallable<CreateCryptoKeyRequest, CryptoKey> createCryptoKeyCallable() {
141-
throw new UnsupportedOperationException("Not implemented: createCryptoKeyCallable()");
157+
public UnaryCallable<CreateKeyRingRequest, KeyRing> createKeyRingCallable() {
158+
throw new UnsupportedOperationException("Not implemented: createKeyRingCallable()");
142159
}
143160

144161
public UnaryCallable<CreateCryptoKeyVersionRequest, CryptoKeyVersion>
@@ -168,6 +185,15 @@ public UnaryCallable<DecryptRequest, DecryptResponse> decryptCallable() {
168185
throw new UnsupportedOperationException("Not implemented: decryptCallable()");
169186
}
170187

188+
public UnaryCallable<AsymmetricSignRequest, AsymmetricSignResponse> asymmetricSignCallable() {
189+
throw new UnsupportedOperationException("Not implemented: asymmetricSignCallable()");
190+
}
191+
192+
public UnaryCallable<AsymmetricDecryptRequest, AsymmetricDecryptResponse>
193+
asymmetricDecryptCallable() {
194+
throw new UnsupportedOperationException("Not implemented: asymmetricDecryptCallable()");
195+
}
196+
171197
public UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
172198
updateCryptoKeyPrimaryVersionCallable() {
173199
throw new UnsupportedOperationException(
@@ -184,32 +210,6 @@ public UnaryCallable<DecryptRequest, DecryptResponse> decryptCallable() {
184210
throw new UnsupportedOperationException("Not implemented: restoreCryptoKeyVersionCallable()");
185211
}
186212

187-
public UnaryCallable<GetPublicKeyRequest, PublicKey> getPublicKeyCallable() {
188-
throw new UnsupportedOperationException("Not implemented: getPublicKeyCallable()");
189-
}
190-
191-
public UnaryCallable<AsymmetricDecryptRequest, AsymmetricDecryptResponse>
192-
asymmetricDecryptCallable() {
193-
throw new UnsupportedOperationException("Not implemented: asymmetricDecryptCallable()");
194-
}
195-
196-
public UnaryCallable<AsymmetricSignRequest, AsymmetricSignResponse> asymmetricSignCallable() {
197-
throw new UnsupportedOperationException("Not implemented: asymmetricSignCallable()");
198-
}
199-
200-
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
201-
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
202-
}
203-
204-
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
205-
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
206-
}
207-
208-
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
209-
testIamPermissionsCallable() {
210-
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
211-
}
212-
213213
@Override
214214
public abstract void close();
215215
}

0 commit comments

Comments
 (0)