Skip to content

Commit

Permalink
6.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SupportSDM committed Feb 20, 2024
1 parent d5c3291 commit 634b078
Show file tree
Hide file tree
Showing 4 changed files with 2,456 additions and 228 deletions.
103 changes: 103 additions & 0 deletions com/strongdm/api/GCPCertX509Store.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
// 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;

/**
* GCPCertX509Store is currently unstable, and its API may change, or it may be removed, without a
* major version bump.
*/
public class GCPCertX509Store implements SecretStore {
private String caId;
/** The ID of the target CA */
public String getCaID() {
return this.caId;
}
/** The ID of the target CA */
public void setCaID(String in) {
this.caId = in;
}

private String caPoolId;
/** The ID of the target CA pool */
public String getCaPoolID() {
return this.caPoolId;
}
/** The ID of the target CA pool */
public void setCaPoolID(String in) {
this.caPoolId = 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 location;
/** The Region for the CA in GCP format e.g. us-west1 */
public String getLocation() {
return this.location;
}
/** The Region for the CA in GCP format e.g. us-west1 */
public void setLocation(String in) {
this.location = 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 projectId;
/** The GCP project ID to target. */
public String getProjectID() {
return this.projectId;
}
/** The GCP project ID to target. */
public void setProjectID(String in) {
this.projectId = 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.4.0";
private static final String USER_AGENT = "strongdm-sdk-java/6.5.0";

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

public static com.strongdm.api.GCPCertX509Store convertGCPCertX509StoreToPorcelain(
GCPCertX509Store plumbing) {
com.strongdm.api.GCPCertX509Store porcelain = new com.strongdm.api.GCPCertX509Store();
porcelain.setCaID((plumbing.getCaID()));
porcelain.setCaPoolID((plumbing.getCaPoolID()));
porcelain.setId((plumbing.getId()));
porcelain.setLocation((plumbing.getLocation()));
porcelain.setName((plumbing.getName()));
porcelain.setProjectID((plumbing.getProjectID()));
porcelain.setTags(Plumbing.convertTagsToPorcelain(plumbing.getTags()));
return porcelain;
}

public static GCPCertX509Store convertGCPCertX509StoreToPlumbing(
com.strongdm.api.GCPCertX509Store porcelain) {
if (porcelain == null) {
return null;
}
GCPCertX509Store.Builder builder = GCPCertX509Store.newBuilder();
if (porcelain.getCaID() != null) {
builder.setCaID((porcelain.getCaID()));
}
if (porcelain.getCaPoolID() != null) {
builder.setCaPoolID((porcelain.getCaPoolID()));
}
if (porcelain.getId() != null) {
builder.setId((porcelain.getId()));
}
if (porcelain.getLocation() != null) {
builder.setLocation((porcelain.getLocation()));
}
if (porcelain.getName() != null) {
builder.setName((porcelain.getName()));
}
if (porcelain.getProjectID() != null) {
builder.setProjectID((porcelain.getProjectID()));
}
if (porcelain.getTags() != null) {
builder.setTags(Plumbing.convertTagsToPlumbing(porcelain.getTags()));
}
return builder.build();
}

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

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

public static com.strongdm.api.GCPStore convertGCPStoreToPorcelain(GCPStore plumbing) {
com.strongdm.api.GCPStore porcelain = new com.strongdm.api.GCPStore();
porcelain.setId((plumbing.getId()));
Expand Down Expand Up @@ -12974,6 +13037,9 @@ public static com.strongdm.api.SecretStore convertSecretStoreToPorcelain(SecretS
if (plumbing.hasGcp()) {
return convertGCPStoreToPorcelain(plumbing.getGcp());
}
if (plumbing.hasGcpCertX509()) {
return convertGCPCertX509StoreToPorcelain(plumbing.getGcpCertX509());
}
if (plumbing.hasVaultAppRole()) {
return convertVaultAppRoleStoreToPorcelain(plumbing.getVaultAppRole());
}
Expand Down Expand Up @@ -13047,6 +13113,12 @@ public static SecretStore convertSecretStoreToPlumbing(com.strongdm.api.SecretSt
builder.setGcp(convertGCPStoreToPlumbing((com.strongdm.api.GCPStore) porcelain));
return builder.build();
}
if (porcelain instanceof com.strongdm.api.GCPCertX509Store) {
SecretStore.Builder builder = SecretStore.newBuilder();
builder.setGcpCertX509(
convertGCPCertX509StoreToPlumbing((com.strongdm.api.GCPCertX509Store) porcelain));
return builder.build();
}
if (porcelain instanceof com.strongdm.api.VaultAppRoleStore) {
SecretStore.Builder builder = SecretStore.newBuilder();
builder.setVaultAppRole(
Expand Down
Loading

0 comments on commit 634b078

Please sign in to comment.