Skip to content

Commit

Permalink
6.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SupportSDM committed Feb 27, 2024
1 parent d33d15b commit 769937b
Show file tree
Hide file tree
Showing 4 changed files with 2,757 additions and 306 deletions.
131 changes: 131 additions & 0 deletions com/strongdm/api/AWSCertX509Store.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
// Copyright 2020 StrongDM Inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

// Code generated by protogen. DO NOT EDIT.

package com.strongdm.api;

/**
* AWSCertX509Store is currently unstable, and its API may change, or it may be removed, without a
* major version bump.
*/
public class AWSCertX509Store implements SecretStore {
private String caArn;
/** The ARN of the CA in AWS Private CA */
public String getCaArn() {
return this.caArn;
}
/** The ARN of the CA in AWS Private CA */
public void setCaArn(String in) {
this.caArn = in;
}

private String certificateTemplateArn;
/**
* The ARN of the AWS certificate template for requested certificates. Must allow SAN, key usage,
* and ext key usage passthrough from CSR
*/
public String getCertificateTemplateArn() {
return this.certificateTemplateArn;
}
/**
* The ARN of the AWS certificate template for requested certificates. Must allow SAN, key usage,
* and ext key usage passthrough from CSR
*/
public void setCertificateTemplateArn(String in) {
this.certificateTemplateArn = in;
}

private String id;
/** Unique identifier of the SecretStore. */
public String getId() {
return this.id;
}
/** Unique identifier of the SecretStore. */
public void setId(String in) {
this.id = in;
}

private String issuedCertTtlMinutes;
/**
* The lifetime of certificates issued by this CA represented in minutes e.g. 600 (for 10 hours).
* Defaults to 8 hours if not provided.
*/
public String getIssuedCertTTLMinutes() {
return this.issuedCertTtlMinutes;
}
/**
* The lifetime of certificates issued by this CA represented in minutes e.g. 600 (for 10 hours).
* Defaults to 8 hours if not provided.
*/
public void setIssuedCertTTLMinutes(String in) {
this.issuedCertTtlMinutes = in;
}

private String name;
/** Unique human-readable name of the SecretStore. */
public String getName() {
return this.name;
}
/** Unique human-readable name of the SecretStore. */
public void setName(String in) {
this.name = in;
}

private String region;
/** The AWS region to target e.g. us-east-1 */
public String getRegion() {
return this.region;
}
/** The AWS region to target e.g. us-east-1 */
public void setRegion(String in) {
this.region = in;
}

private String signingAlgo;
/**
* The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the
* CA's secret key. e.g. SHA256WITHRSA
*/
public String getSigningAlgo() {
return this.signingAlgo;
}
/**
* The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the
* CA's secret key. e.g. SHA256WITHRSA
*/
public void setSigningAlgo(String in) {
this.signingAlgo = in;
}

private java.util.Map<String, String> tags;
/** Tags is a map of key, value pairs. */
public java.util.Map<String, String> getTags() {
java.util.Map<String, String> m = new java.util.HashMap<String, String>();
if (this.tags != null) {
m.putAll(this.tags);
}
return m;
}
/** Tags is a map of key, value pairs. */
public void setTags(java.util.Map<String, String> in) {
if (in == null) {
this.tags = null;
return;
}
this.tags = new java.util.HashMap<String, String>();
this.tags.putAll(in);
}
}
2 changes: 1 addition & 1 deletion com/strongdm/api/SigningCallCredential.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SigningCallCredential extends CallCredentials {
private final String apiAccessKey;
private final String signature;
private static final String API_VERSION = "2021-08-23";
private static final String USER_AGENT = "strongdm-sdk-java/6.6.0";
private static final String USER_AGENT = "strongdm-sdk-java/6.7.0";

protected SigningCallCredential(String apiAccessKey, String signature) {
this.apiAccessKey = apiAccessKey;
Expand Down
76 changes: 76 additions & 0 deletions com/strongdm/api/plumbing/Plumbing.java
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,73 @@ public static List<AWS> convertRepeatedAWSToPlumbing(
.collect(Collectors.toList());
}

public static com.strongdm.api.AWSCertX509Store convertAWSCertX509StoreToPorcelain(
AWSCertX509Store plumbing) {
com.strongdm.api.AWSCertX509Store porcelain = new com.strongdm.api.AWSCertX509Store();
porcelain.setCaArn((plumbing.getCaArn()));
porcelain.setCertificateTemplateArn((plumbing.getCertificateTemplateArn()));
porcelain.setId((plumbing.getId()));
porcelain.setIssuedCertTTLMinutes((plumbing.getIssuedCertTTLMinutes()));
porcelain.setName((plumbing.getName()));
porcelain.setRegion((plumbing.getRegion()));
porcelain.setSigningAlgo((plumbing.getSigningAlgo()));
porcelain.setTags(Plumbing.convertTagsToPorcelain(plumbing.getTags()));
return porcelain;
}

public static AWSCertX509Store convertAWSCertX509StoreToPlumbing(
com.strongdm.api.AWSCertX509Store porcelain) {
if (porcelain == null) {
return null;
}
AWSCertX509Store.Builder builder = AWSCertX509Store.newBuilder();
if (porcelain.getCaArn() != null) {
builder.setCaArn((porcelain.getCaArn()));
}
if (porcelain.getCertificateTemplateArn() != null) {
builder.setCertificateTemplateArn((porcelain.getCertificateTemplateArn()));
}
if (porcelain.getId() != null) {
builder.setId((porcelain.getId()));
}
if (porcelain.getIssuedCertTTLMinutes() != null) {
builder.setIssuedCertTTLMinutes((porcelain.getIssuedCertTTLMinutes()));
}
if (porcelain.getName() != null) {
builder.setName((porcelain.getName()));
}
if (porcelain.getRegion() != null) {
builder.setRegion((porcelain.getRegion()));
}
if (porcelain.getSigningAlgo() != null) {
builder.setSigningAlgo((porcelain.getSigningAlgo()));
}
if (porcelain.getTags() != null) {
builder.setTags(Plumbing.convertTagsToPlumbing(porcelain.getTags()));
}
return builder.build();
}

public static List<com.strongdm.api.AWSCertX509Store> convertRepeatedAWSCertX509StoreToPorcelain(
Collection<AWSCertX509Store> plumbings) {
if (plumbings == null) {
return new ArrayList<com.strongdm.api.AWSCertX509Store>();
}
return plumbings.stream()
.map(plumbing -> convertAWSCertX509StoreToPorcelain(plumbing))
.collect(Collectors.toList());
}

public static List<AWSCertX509Store> convertRepeatedAWSCertX509StoreToPlumbing(
Collection<com.strongdm.api.AWSCertX509Store> porcelains) {
if (porcelains == null) {
return new ArrayList<AWSCertX509Store>();
}
return porcelains.stream()
.map(porcelain -> convertAWSCertX509StoreToPlumbing(porcelain))
.collect(Collectors.toList());
}

public static com.strongdm.api.AWSConsole convertAWSConsoleToPorcelain(AWSConsole plumbing) {
com.strongdm.api.AWSConsole porcelain = new com.strongdm.api.AWSConsole();
porcelain.setBindInterface((plumbing.getBindInterface()));
Expand Down Expand Up @@ -13019,6 +13086,9 @@ public static com.strongdm.api.SecretStore convertSecretStoreToPorcelain(SecretS
if (plumbing.hasAws()) {
return convertAWSStoreToPorcelain(plumbing.getAws());
}
if (plumbing.hasAwsCertX509()) {
return convertAWSCertX509StoreToPorcelain(plumbing.getAwsCertX509());
}
if (plumbing.hasAzure()) {
return convertAzureStoreToPorcelain(plumbing.getAzure());
}
Expand Down Expand Up @@ -13079,6 +13149,12 @@ public static SecretStore convertSecretStoreToPlumbing(com.strongdm.api.SecretSt
builder.setAws(convertAWSStoreToPlumbing((com.strongdm.api.AWSStore) porcelain));
return builder.build();
}
if (porcelain instanceof com.strongdm.api.AWSCertX509Store) {
SecretStore.Builder builder = SecretStore.newBuilder();
builder.setAwsCertX509(
convertAWSCertX509StoreToPlumbing((com.strongdm.api.AWSCertX509Store) porcelain));
return builder.build();
}
if (porcelain instanceof com.strongdm.api.AzureStore) {
SecretStore.Builder builder = SecretStore.newBuilder();
builder.setAzure(convertAzureStoreToPlumbing((com.strongdm.api.AzureStore) porcelain));
Expand Down
Loading

0 comments on commit 769937b

Please sign in to comment.