Skip to content

Commit

Permalink
Merge commit
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0f3c89ddab319a4d332f7982c54904e024b3d097
  • Loading branch information
Ulderico Cirello authored and SupportSDM committed Dec 15, 2022
1 parent 1a3cd4e commit 6973c6c
Show file tree
Hide file tree
Showing 175 changed files with 2,662 additions and 769 deletions.
73 changes: 73 additions & 0 deletions com/strongdm/api/CyberarkPAMStore.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// 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.
//

// This file was generated by protogen. DO NOT EDIT.

package com.strongdm.api;

/**
* CyberarkPAMStore is currently unstable, and its API may change, or it may be removed, without a
* major version bump.
*/
public class CyberarkPAMStore implements SecretStore {
private String appUrl;
/** */
public String getAppURL() {
return this.appUrl;
}
/** */
public void setAppURL(String in) {
this.appUrl = 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 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 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/3.5.2";
private static final String USER_AGENT = "strongdm-sdk-java/3.5.3";

protected SigningCallCredential(String apiAccessKey, String signature) {
this.apiAccessKey = apiAccessKey;
Expand Down
54 changes: 54 additions & 0 deletions com/strongdm/api/plumbing/Plumbing.java
Original file line number Diff line number Diff line change
Expand Up @@ -2904,6 +2904,51 @@ public static CyberarkPAMExperimentalStore convertCyberarkPAMExperimentalStoreTo
.collect(Collectors.toList());
}

public static com.strongdm.api.CyberarkPAMStore convertCyberarkPAMStoreToPorcelain(
CyberarkPAMStore plumbing) {
com.strongdm.api.CyberarkPAMStore porcelain = new com.strongdm.api.CyberarkPAMStore();
porcelain.setAppURL((plumbing.getAppURL()));
porcelain.setId((plumbing.getId()));
porcelain.setName((plumbing.getName()));
porcelain.setTags(Plumbing.convertTagsToPorcelain(plumbing.getTags()));
return porcelain;
}

public static CyberarkPAMStore convertCyberarkPAMStoreToPlumbing(
com.strongdm.api.CyberarkPAMStore porcelain) {
if (porcelain == null) {
return null;
}
CyberarkPAMStore.Builder builder = CyberarkPAMStore.newBuilder();
if (porcelain.getAppURL() != null) {
builder.setAppURL((porcelain.getAppURL()));
}
if (porcelain.getId() != null) {
builder.setId((porcelain.getId()));
}
if (porcelain.getName() != null) {
builder.setName((porcelain.getName()));
}
if (porcelain.getTags() != null) {
builder.setTags(Plumbing.convertTagsToPlumbing(porcelain.getTags()));
}
return builder.build();
}

public static List<com.strongdm.api.CyberarkPAMStore> convertRepeatedCyberarkPAMStoreToPorcelain(
Collection<CyberarkPAMStore> plumbings) {
return plumbings.stream()
.map(plumbing -> convertCyberarkPAMStoreToPorcelain(plumbing))
.collect(Collectors.toList());
}

public static List<CyberarkPAMStore> convertRepeatedCyberarkPAMStoreToPlumbing(
Collection<com.strongdm.api.CyberarkPAMStore> porcelains) {
return porcelains.stream()
.map(porcelain -> convertCyberarkPAMStoreToPlumbing(porcelain))
.collect(Collectors.toList());
}

public static com.strongdm.api.DB2I convertDB2IToPorcelain(DB2I plumbing) {
com.strongdm.api.DB2I porcelain = new com.strongdm.api.DB2I();
porcelain.setBindInterface((plumbing.getBindInterface()));
Expand Down Expand Up @@ -8208,6 +8253,9 @@ public static com.strongdm.api.SecretStore convertSecretStoreToPorcelain(SecretS
if (plumbing.hasCyberarkConjur()) {
return convertCyberarkConjurStoreToPorcelain(plumbing.getCyberarkConjur());
}
if (plumbing.hasCyberarkPam()) {
return convertCyberarkPAMStoreToPorcelain(plumbing.getCyberarkPam());
}
if (plumbing.hasCyberarkPamExperimental()) {
return convertCyberarkPAMExperimentalStoreToPorcelain(plumbing.getCyberarkPamExperimental());
}
Expand Down Expand Up @@ -8249,6 +8297,12 @@ public static SecretStore convertSecretStoreToPlumbing(com.strongdm.api.SecretSt
convertCyberarkConjurStoreToPlumbing((com.strongdm.api.CyberarkConjurStore) porcelain));
return builder.build();
}
if (porcelain instanceof com.strongdm.api.CyberarkPAMStore) {
SecretStore.Builder builder = SecretStore.newBuilder();
builder.setCyberarkPam(
convertCyberarkPAMStoreToPlumbing((com.strongdm.api.CyberarkPAMStore) porcelain));
return builder.build();
}
if (porcelain instanceof com.strongdm.api.CyberarkPAMExperimentalStore) {
SecretStore.Builder builder = SecretStore.newBuilder();
builder.setCyberarkPamExperimental(
Expand Down
Loading

0 comments on commit 6973c6c

Please sign in to comment.