Skip to content

Commit a3dec22

Browse files
committed
11.20.0
1 parent 2fc4c66 commit a3dec22

7 files changed

+3976
-1818
lines changed

com/strongdm/api/AccessRequest.java

+25-2
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.Date;
2122

2223
/** AccessRequests are requests for access to a resource that may match a Workflow. */
@@ -32,11 +33,13 @@ public void setAccountId(String in) {
3233
}
3334

3435
private long duration;
35-
/** Duration of the access request. */
36+
/** Duration of the access request. Deprecated: use requested/result duration instead */
37+
@Deprecated
3638
public long getDuration() {
3739
return this.duration;
3840
}
39-
/** Duration of the access request. */
41+
/** Duration of the access request. Deprecated: use requested/result duration instead */
42+
@Deprecated
4043
public void setDuration(long in) {
4144
this.duration = in;
4245
}
@@ -71,6 +74,16 @@ public void setReason(String in) {
7174
this.reason = in;
7275
}
7376

77+
private Duration requestedDuration;
78+
/** The duration that access was requested for, if any. */
79+
public Duration getRequestedDuration() {
80+
return this.requestedDuration;
81+
}
82+
/** The duration that access was requested for, if any. */
83+
public void setRequestedDuration(Duration in) {
84+
this.requestedDuration = in;
85+
}
86+
7487
private String resourceId;
7588
/** The resource id. */
7689
public String getResourceId() {
@@ -81,6 +94,16 @@ public void setResourceId(String in) {
8194
this.resourceId = in;
8295
}
8396

97+
private Duration resultDuration;
98+
/** The duration that results from an approved request. */
99+
public Duration getResultDuration() {
100+
return this.resultDuration;
101+
}
102+
/** The duration that results from an approved request. */
103+
public void setResultDuration(Duration in) {
104+
this.resultDuration = in;
105+
}
106+
84107
private Date startFrom;
85108
/**
86109
* The timestamp when the requested access will be granted. If this field is not specified it will

com/strongdm/api/ActivityVerb.java

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ public final class ActivityVerb {
194194
"access request to resource granted automatically";
195195
public static final String ACCESS_REQUEST_TO_RESOURCE_APPROVED_VIA_SERVICE_NOW =
196196
"access request to resource approved via ServiceNow";
197+
public static final String ACCESS_REQUEST_TO_RESOURCE_APPROVED_VIA_JIRA =
198+
"access request to resource approved via Jira";
197199
public static final String WORKFLOW_DELETED = "workflow deleted";
198200
public static final String WORKFLOW_ADDED = "workflow added";
199201
public static final String DEPRECATED_WORKFLOW_RESOURCE_ASSIGNED =

com/strongdm/api/GCPWIF.java

+16
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,22 @@ public void setPortOverride(int in) {
114114
this.portOverride = in;
115115
}
116116

117+
private String projectId;
118+
/**
119+
* When specified, all project scoped requests will use this Project ID, overriding the project ID
120+
* specified by clients
121+
*/
122+
public String getProjectId() {
123+
return this.projectId;
124+
}
125+
/**
126+
* When specified, all project scoped requests will use this Project ID, overriding the project ID
127+
* specified by clients
128+
*/
129+
public void setProjectId(String in) {
130+
this.projectId = in;
131+
}
132+
117133
private String proxyClusterId;
118134
/** ID of the proxy cluster for this resource, if any. */
119135
public String getProxyClusterId() {

com/strongdm/api/SigningCallCredential.java

+1-1
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.18.0";
26+
private static final String USER_AGENT = "strongdm-sdk-java/11.20.0";
2727

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

0 commit comments

Comments
 (0)