Skip to content

Commit b09ab04

Browse files
committed
11.23.0
1 parent e79da17 commit b09ab04

File tree

4 files changed

+684
-73
lines changed

4 files changed

+684
-73
lines changed

com/strongdm/api/SigningCallCredential.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SigningCallCredential extends CallCredentials {
2323
private final String apiAccessKey;
2424
private final String signature;
2525
private static final String API_VERSION = "2024-03-28";
26-
private static final String USER_AGENT = "strongdm-sdk-java/11.22.0";
26+
private static final String USER_AGENT = "strongdm-sdk-java/11.23.0";
2727

2828
protected SigningCallCredential(String apiAccessKey, String signature) {
2929
this.apiAccessKey = apiAccessKey;

com/strongdm/api/Workflow.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package com.strongdm.api;
1919

20+
import java.time.Duration;
2021
import java.util.List;
2122

2223
/**
@@ -25,6 +26,42 @@
2526
* either but automatic approval or a set of users authorized to approve the requests.
2627
*/
2728
public class Workflow {
29+
private Duration accessRequestFixedDuration;
30+
/**
31+
* Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max
32+
* duration must be empty. If neither max nor fixed duration are provided, requests that bind to
33+
* this workflow will use the organization-level settings.
34+
*/
35+
public Duration getAccessRequestFixedDuration() {
36+
return this.accessRequestFixedDuration;
37+
}
38+
/**
39+
* Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max
40+
* duration must be empty. If neither max nor fixed duration are provided, requests that bind to
41+
* this workflow will use the organization-level settings.
42+
*/
43+
public void setAccessRequestFixedDuration(Duration in) {
44+
this.accessRequestFixedDuration = in;
45+
}
46+
47+
private Duration accessRequestMaxDuration;
48+
/**
49+
* Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed
50+
* duration must be empty. If neither max nor fixed duration are provided, requests that bind to
51+
* this workflow will use the organization-level settings.
52+
*/
53+
public Duration getAccessRequestMaxDuration() {
54+
return this.accessRequestMaxDuration;
55+
}
56+
/**
57+
* Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed
58+
* duration must be empty. If neither max nor fixed duration are provided, requests that bind to
59+
* this workflow will use the organization-level settings.
60+
*/
61+
public void setAccessRequestMaxDuration(Duration in) {
62+
this.accessRequestMaxDuration = in;
63+
}
64+
2865
private List<AccessRule> accessRules;
2966
/**
3067
* AccessRules is a list of access rules defining the resources this Workflow provides access to.

com/strongdm/api/plumbing/Plumbing.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18764,6 +18764,10 @@ public static List<VaultTokenStore> convertRepeatedVaultTokenStoreToPlumbing(
1876418764

1876518765
public static com.strongdm.api.Workflow convertWorkflowToPorcelain(Workflow plumbing) {
1876618766
com.strongdm.api.Workflow porcelain = new com.strongdm.api.Workflow();
18767+
porcelain.setAccessRequestFixedDuration(
18768+
Plumbing.convertDurationToPorcelain(plumbing.getAccessRequestFixedDuration()));
18769+
porcelain.setAccessRequestMaxDuration(
18770+
Plumbing.convertDurationToPorcelain(plumbing.getAccessRequestMaxDuration()));
1876718771
porcelain.setAccessRules(Plumbing.convertAccessRulesToPorcelain(plumbing.getAccessRules()));
1876818772
porcelain.setApprovalFlowId((plumbing.getApprovalFlowId()));
1876918773
porcelain.setAutoGrant((plumbing.getAutoGrant()));
@@ -18780,6 +18784,14 @@ public static Workflow convertWorkflowToPlumbing(com.strongdm.api.Workflow porce
1878018784
return null;
1878118785
}
1878218786
Workflow.Builder builder = Workflow.newBuilder();
18787+
if (porcelain.getAccessRequestFixedDuration() != null) {
18788+
builder.setAccessRequestFixedDuration(
18789+
Plumbing.convertDurationToPlumbing(porcelain.getAccessRequestFixedDuration()));
18790+
}
18791+
if (porcelain.getAccessRequestMaxDuration() != null) {
18792+
builder.setAccessRequestMaxDuration(
18793+
Plumbing.convertDurationToPlumbing(porcelain.getAccessRequestMaxDuration()));
18794+
}
1878318795
if (porcelain.getAccessRules() != null) {
1878418796
builder.setAccessRules(Plumbing.convertAccessRulesToPlumbing(porcelain.getAccessRules()));
1878518797
}

0 commit comments

Comments
 (0)