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

Commit

Permalink
fix: migrate kms/v1 to grpc_service_config (#193)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yoshi-automation committed Jun 12, 2020
1 parent c9855e4 commit 959cd01
Show file tree
Hide file tree
Showing 8 changed files with 3,038 additions and 3,018 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Expand Up @@ -38,8 +38,15 @@
* <pre>
* <code>
* try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
* KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
* KeyRing response = keyManagementServiceClient.getKeyRing(name);
* KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
* String importJobId = "my-import-job";
* ImportJob.ImportMethod importMethod = ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256;
* ProtectionLevel protectionLevel = ProtectionLevel.HSM;
* ImportJob importJob = ImportJob.newBuilder()
* .setImportMethod(importMethod)
* .setProtectionLevel(protectionLevel)
* .build();
* ImportJob response = keyManagementServiceClient.createImportJob(parent, importJobId, importJob);
* }
* </code>
* </pre>
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -76,21 +76,33 @@
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class KeyManagementServiceStub implements BackgroundResource {

public UnaryCallable<ListKeyRingsRequest, ListKeyRingsPagedResponse> listKeyRingsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listKeyRingsPagedCallable()");
public UnaryCallable<CreateImportJobRequest, ImportJob> createImportJobCallable() {
throw new UnsupportedOperationException("Not implemented: createImportJobCallable()");
}

public UnaryCallable<ListKeyRingsRequest, ListKeyRingsResponse> listKeyRingsCallable() {
throw new UnsupportedOperationException("Not implemented: listKeyRingsCallable()");
public UnaryCallable<CreateCryptoKeyRequest, CryptoKey> createCryptoKeyCallable() {
throw new UnsupportedOperationException("Not implemented: createCryptoKeyCallable()");
}

public UnaryCallable<ListImportJobsRequest, ListImportJobsPagedResponse>
listImportJobsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listImportJobsPagedCallable()");
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
}

public UnaryCallable<ListImportJobsRequest, ListImportJobsResponse> listImportJobsCallable() {
throw new UnsupportedOperationException("Not implemented: listImportJobsCallable()");
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
}

public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

public UnaryCallable<ListKeyRingsRequest, ListKeyRingsPagedResponse> listKeyRingsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listKeyRingsPagedCallable()");
}

public UnaryCallable<ListKeyRingsRequest, ListKeyRingsResponse> listKeyRingsCallable() {
throw new UnsupportedOperationException("Not implemented: listKeyRingsCallable()");
}

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

public UnaryCallable<GetKeyRingRequest, KeyRing> getKeyRingCallable() {
throw new UnsupportedOperationException("Not implemented: getKeyRingCallable()");
public UnaryCallable<ListImportJobsRequest, ListImportJobsPagedResponse>
listImportJobsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listImportJobsPagedCallable()");
}

public UnaryCallable<GetImportJobRequest, ImportJob> getImportJobCallable() {
throw new UnsupportedOperationException("Not implemented: getImportJobCallable()");
public UnaryCallable<ListImportJobsRequest, ListImportJobsResponse> listImportJobsCallable() {
throw new UnsupportedOperationException("Not implemented: listImportJobsCallable()");
}

public UnaryCallable<GetKeyRingRequest, KeyRing> getKeyRingCallable() {
throw new UnsupportedOperationException("Not implemented: getKeyRingCallable()");
}

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

public UnaryCallable<CreateKeyRingRequest, KeyRing> createKeyRingCallable() {
throw new UnsupportedOperationException("Not implemented: createKeyRingCallable()");
public UnaryCallable<GetPublicKeyRequest, PublicKey> getPublicKeyCallable() {
throw new UnsupportedOperationException("Not implemented: getPublicKeyCallable()");
}

public UnaryCallable<CreateImportJobRequest, ImportJob> createImportJobCallable() {
throw new UnsupportedOperationException("Not implemented: createImportJobCallable()");
public UnaryCallable<GetImportJobRequest, ImportJob> getImportJobCallable() {
throw new UnsupportedOperationException("Not implemented: getImportJobCallable()");
}

public UnaryCallable<CreateCryptoKeyRequest, CryptoKey> createCryptoKeyCallable() {
throw new UnsupportedOperationException("Not implemented: createCryptoKeyCallable()");
public UnaryCallable<CreateKeyRingRequest, KeyRing> createKeyRingCallable() {
throw new UnsupportedOperationException("Not implemented: createKeyRingCallable()");
}

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

public UnaryCallable<AsymmetricSignRequest, AsymmetricSignResponse> asymmetricSignCallable() {
throw new UnsupportedOperationException("Not implemented: asymmetricSignCallable()");
}

public UnaryCallable<AsymmetricDecryptRequest, AsymmetricDecryptResponse>
asymmetricDecryptCallable() {
throw new UnsupportedOperationException("Not implemented: asymmetricDecryptCallable()");
}

public UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
updateCryptoKeyPrimaryVersionCallable() {
throw new UnsupportedOperationException(
Expand All @@ -184,32 +210,6 @@ public UnaryCallable<DecryptRequest, DecryptResponse> decryptCallable() {
throw new UnsupportedOperationException("Not implemented: restoreCryptoKeyVersionCallable()");
}

public UnaryCallable<GetPublicKeyRequest, PublicKey> getPublicKeyCallable() {
throw new UnsupportedOperationException("Not implemented: getPublicKeyCallable()");
}

public UnaryCallable<AsymmetricDecryptRequest, AsymmetricDecryptResponse>
asymmetricDecryptCallable() {
throw new UnsupportedOperationException("Not implemented: asymmetricDecryptCallable()");
}

public UnaryCallable<AsymmetricSignRequest, AsymmetricSignResponse> asymmetricSignCallable() {
throw new UnsupportedOperationException("Not implemented: asymmetricSignCallable()");
}

public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
}

public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
}

public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

@Override
public abstract void close();
}

0 comments on commit 959cd01

Please sign in to comment.