Skip to content

Commit b80869e

Browse files
committed
16.17.0
1 parent 11588b5 commit b80869e

File tree

4 files changed

+223
-22
lines changed

4 files changed

+223
-22
lines changed

com/strongdm/api/AccountGrant.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
* connect to that resource.
2525
*/
2626
public class AccountGrant {
27+
private String accessRequestId;
28+
/** The access request ID that created this AccountGrant, if any. */
29+
public String getAccessRequestId() {
30+
return this.accessRequestId;
31+
}
32+
/** The access request ID that created this AccountGrant, if any. */
33+
public void setAccessRequestId(String in) {
34+
this.accessRequestId = in;
35+
}
36+
2737
private AccessRule accessRule;
2838
/** The access rule associated with this AccountGrant. */
2939
public AccessRule getAccessRule() {

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 = "2025-04-14";
26-
private static final String USER_AGENT = "strongdm-sdk-java/16.16.0";
26+
private static final String USER_AGENT = "strongdm-sdk-java/16.17.0";
2727

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

com/strongdm/api/plumbing/AccountGrantsPlumbing.java

Lines changed: 208 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8579,6 +8579,26 @@ public interface AccountGrantOrBuilder extends
85798579
*/
85808580
com.google.protobuf.ByteString
85818581
getAccessRuleBytes();
8582+
8583+
/**
8584+
* <pre>
8585+
* The access request ID that created this AccountGrant, if any.
8586+
* </pre>
8587+
*
8588+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
8589+
* @return The accessRequestId.
8590+
*/
8591+
java.lang.String getAccessRequestId();
8592+
/**
8593+
* <pre>
8594+
* The access request ID that created this AccountGrant, if any.
8595+
* </pre>
8596+
*
8597+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
8598+
* @return The bytes for accessRequestId.
8599+
*/
8600+
com.google.protobuf.ByteString
8601+
getAccessRequestIdBytes();
85828602
}
85838603
/**
85848604
* <pre>
@@ -8601,6 +8621,7 @@ private AccountGrant() {
86018621
resourceId_ = "";
86028622
accountId_ = "";
86038623
accessRule_ = "";
8624+
accessRequestId_ = "";
86048625
}
86058626

86068627
@java.lang.Override
@@ -8683,6 +8704,12 @@ private AccountGrant(
86838704
accessRule_ = s;
86848705
break;
86858706
}
8707+
case 58: {
8708+
java.lang.String s = input.readStringRequireUtf8();
8709+
8710+
accessRequestId_ = s;
8711+
break;
8712+
}
86868713
default: {
86878714
if (!parseUnknownField(
86888715
input, unknownFields, extensionRegistry, tag)) {
@@ -8977,6 +9004,52 @@ public java.lang.String getAccessRule() {
89779004
}
89789005
}
89799006

9007+
public static final int ACCESS_REQUEST_ID_FIELD_NUMBER = 7;
9008+
private volatile java.lang.Object accessRequestId_;
9009+
/**
9010+
* <pre>
9011+
* The access request ID that created this AccountGrant, if any.
9012+
* </pre>
9013+
*
9014+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
9015+
* @return The accessRequestId.
9016+
*/
9017+
@java.lang.Override
9018+
public java.lang.String getAccessRequestId() {
9019+
java.lang.Object ref = accessRequestId_;
9020+
if (ref instanceof java.lang.String) {
9021+
return (java.lang.String) ref;
9022+
} else {
9023+
com.google.protobuf.ByteString bs =
9024+
(com.google.protobuf.ByteString) ref;
9025+
java.lang.String s = bs.toStringUtf8();
9026+
accessRequestId_ = s;
9027+
return s;
9028+
}
9029+
}
9030+
/**
9031+
* <pre>
9032+
* The access request ID that created this AccountGrant, if any.
9033+
* </pre>
9034+
*
9035+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
9036+
* @return The bytes for accessRequestId.
9037+
*/
9038+
@java.lang.Override
9039+
public com.google.protobuf.ByteString
9040+
getAccessRequestIdBytes() {
9041+
java.lang.Object ref = accessRequestId_;
9042+
if (ref instanceof java.lang.String) {
9043+
com.google.protobuf.ByteString b =
9044+
com.google.protobuf.ByteString.copyFromUtf8(
9045+
(java.lang.String) ref);
9046+
accessRequestId_ = b;
9047+
return b;
9048+
} else {
9049+
return (com.google.protobuf.ByteString) ref;
9050+
}
9051+
}
9052+
89809053
private byte memoizedIsInitialized = -1;
89819054
@java.lang.Override
89829055
public final boolean isInitialized() {
@@ -9009,6 +9082,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
90099082
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessRule_)) {
90109083
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, accessRule_);
90119084
}
9085+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessRequestId_)) {
9086+
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, accessRequestId_);
9087+
}
90129088
unknownFields.writeTo(output);
90139089
}
90149090

@@ -9038,6 +9114,9 @@ public int getSerializedSize() {
90389114
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessRule_)) {
90399115
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, accessRule_);
90409116
}
9117+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessRequestId_)) {
9118+
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, accessRequestId_);
9119+
}
90419120
size += unknownFields.getSerializedSize();
90429121
memoizedSize = size;
90439122
return size;
@@ -9071,6 +9150,8 @@ public boolean equals(final java.lang.Object obj) {
90719150
}
90729151
if (!getAccessRule()
90739152
.equals(other.getAccessRule())) return false;
9153+
if (!getAccessRequestId()
9154+
.equals(other.getAccessRequestId())) return false;
90749155
if (!unknownFields.equals(other.unknownFields)) return false;
90759156
return true;
90769157
}
@@ -9098,6 +9179,8 @@ public int hashCode() {
90989179
}
90999180
hash = (37 * hash) + ACCESS_RULE_FIELD_NUMBER;
91009181
hash = (53 * hash) + getAccessRule().hashCode();
9182+
hash = (37 * hash) + ACCESS_REQUEST_ID_FIELD_NUMBER;
9183+
hash = (53 * hash) + getAccessRequestId().hashCode();
91019184
hash = (29 * hash) + unknownFields.hashCode();
91029185
memoizedHashCode = hash;
91039186
return hash;
@@ -9255,6 +9338,8 @@ public Builder clear() {
92559338
}
92569339
accessRule_ = "";
92579340

9341+
accessRequestId_ = "";
9342+
92589343
return this;
92599344
}
92609345

@@ -9295,6 +9380,7 @@ public com.strongdm.api.plumbing.AccountGrantsPlumbing.AccountGrant buildPartial
92959380
result.validUntil_ = validUntilBuilder_.build();
92969381
}
92979382
result.accessRule_ = accessRule_;
9383+
result.accessRequestId_ = accessRequestId_;
92989384
onBuilt();
92999385
return result;
93009386
}
@@ -9365,6 +9451,10 @@ public Builder mergeFrom(com.strongdm.api.plumbing.AccountGrantsPlumbing.Account
93659451
accessRule_ = other.accessRule_;
93669452
onChanged();
93679453
}
9454+
if (!other.getAccessRequestId().isEmpty()) {
9455+
accessRequestId_ = other.accessRequestId_;
9456+
onChanged();
9457+
}
93689458
this.mergeUnknownFields(other.unknownFields);
93699459
onChanged();
93709460
return this;
@@ -10087,6 +10177,102 @@ public Builder setAccessRuleBytes(
1008710177
onChanged();
1008810178
return this;
1008910179
}
10180+
10181+
private java.lang.Object accessRequestId_ = "";
10182+
/**
10183+
* <pre>
10184+
* The access request ID that created this AccountGrant, if any.
10185+
* </pre>
10186+
*
10187+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
10188+
* @return The accessRequestId.
10189+
*/
10190+
public java.lang.String getAccessRequestId() {
10191+
java.lang.Object ref = accessRequestId_;
10192+
if (!(ref instanceof java.lang.String)) {
10193+
com.google.protobuf.ByteString bs =
10194+
(com.google.protobuf.ByteString) ref;
10195+
java.lang.String s = bs.toStringUtf8();
10196+
accessRequestId_ = s;
10197+
return s;
10198+
} else {
10199+
return (java.lang.String) ref;
10200+
}
10201+
}
10202+
/**
10203+
* <pre>
10204+
* The access request ID that created this AccountGrant, if any.
10205+
* </pre>
10206+
*
10207+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
10208+
* @return The bytes for accessRequestId.
10209+
*/
10210+
public com.google.protobuf.ByteString
10211+
getAccessRequestIdBytes() {
10212+
java.lang.Object ref = accessRequestId_;
10213+
if (ref instanceof String) {
10214+
com.google.protobuf.ByteString b =
10215+
com.google.protobuf.ByteString.copyFromUtf8(
10216+
(java.lang.String) ref);
10217+
accessRequestId_ = b;
10218+
return b;
10219+
} else {
10220+
return (com.google.protobuf.ByteString) ref;
10221+
}
10222+
}
10223+
/**
10224+
* <pre>
10225+
* The access request ID that created this AccountGrant, if any.
10226+
* </pre>
10227+
*
10228+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
10229+
* @param value The accessRequestId to set.
10230+
* @return This builder for chaining.
10231+
*/
10232+
public Builder setAccessRequestId(
10233+
java.lang.String value) {
10234+
if (value == null) {
10235+
throw new NullPointerException();
10236+
}
10237+
10238+
accessRequestId_ = value;
10239+
onChanged();
10240+
return this;
10241+
}
10242+
/**
10243+
* <pre>
10244+
* The access request ID that created this AccountGrant, if any.
10245+
* </pre>
10246+
*
10247+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
10248+
* @return This builder for chaining.
10249+
*/
10250+
public Builder clearAccessRequestId() {
10251+
10252+
accessRequestId_ = getDefaultInstance().getAccessRequestId();
10253+
onChanged();
10254+
return this;
10255+
}
10256+
/**
10257+
* <pre>
10258+
* The access request ID that created this AccountGrant, if any.
10259+
* </pre>
10260+
*
10261+
* <code>string access_request_id = 7 [(.v1.field_options) = { ... }</code>
10262+
* @param value The bytes for accessRequestId to set.
10263+
* @return This builder for chaining.
10264+
*/
10265+
public Builder setAccessRequestIdBytes(
10266+
com.google.protobuf.ByteString value) {
10267+
if (value == null) {
10268+
throw new NullPointerException();
10269+
}
10270+
checkByteStringIsUtf8(value);
10271+
10272+
accessRequestId_ = value;
10273+
onChanged();
10274+
return this;
10275+
}
1009010276
@java.lang.Override
1009110277
public final Builder setUnknownFields(
1009210278
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10227,7 +10413,7 @@ public com.strongdm.api.plumbing.AccountGrantsPlumbing.AccountGrant getDefaultIn
1022710413
"onseMetadata\0224\n\016account_grants\030\002 \003(\0132\020.v" +
1022810414
"1.AccountGrantB\n\362\370\263\007\005\270\363\263\007\001\022W\n\nrate_limit" +
1022910415
"\030\003 \001(\0132\025.v1.RateLimitMetadataB,\362\370\263\007\005\260\363\263\007" +
10230-
"\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\"\374\003\n\014" +
10416+
"\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\"\250\004\n\014" +
1023110417
"AccountGrant\022\026\n\002id\030\001 \001(\tB\n\362\370\263\007\005\260\363\263\007\001\022$\n\013" +
1023210418
"resource_id\030\002 \001(\tB\017\362\370\263\007\n\260\363\263\007\001\300\363\263\007\001\022#\n\nac" +
1023310419
"count_id\030\003 \001(\tB\017\362\370\263\007\n\260\363\263\007\001\300\363\263\007\001\022:\n\nstart" +
@@ -10239,25 +10425,26 @@ public com.strongdm.api.plumbing.AccountGrantsPlumbing.AccountGrant getDefaultIn
1023910425
"_private\022\nAccessRule\362\363\263\007\032\n\014go_terraform\022" +
1024010426
"\nAccessRule\362\363\263\007\022\n\004java\022\nAccessRule\362\363\263\007!\n" +
1024110427
"\014json_gateway\022\021models.AccessRule\272\364\263\007\026acc" +
10242-
"essRuleDiffSuppress\320\364\263\007\001:(\372\370\263\007#\250\363\263\007\001\322\363\263\007" +
10243-
"\001*\322\363\263\007\023!terraform-provider2\253\004\n\rAccountGr" +
10244-
"ants\022s\n\006Create\022\035.v1.AccountGrantCreateRe" +
10245-
"quest\032\036.v1.AccountGrantCreateResponse\"*\202" +
10246-
"\371\263\007\t\242\363\263\007\004post\202\371\263\007\027\252\363\263\007\022/v1/account-grant" +
10247-
"s\022n\n\003Get\022\032.v1.AccountGrantGetRequest\032\033.v" +
10248-
"1.AccountGrantGetResponse\".\202\371\263\007\010\242\363\263\007\003get" +
10249-
"\202\371\263\007\034\252\363\263\007\027/v1/account-grants/{id}\022z\n\006Del" +
10250-
"ete\022\035.v1.AccountGrantDeleteRequest\032\036.v1." +
10251-
"AccountGrantDeleteResponse\"1\202\371\263\007\013\242\363\263\007\006de" +
10252-
"lete\202\371\263\007\034\252\363\263\007\027/v1/account-grants/{id}\022l\n" +
10253-
"\004List\022\033.v1.AccountGrantListRequest\032\034.v1." +
10254-
"AccountGrantListResponse\")\202\371\263\007\010\242\363\263\007\003get\202" +
10255-
"\371\263\007\027\252\363\263\007\022/v1/account-grants\032K\312\371\263\007\021\302\371\263\007\014A" +
10256-
"ccountGrant\312\371\263\007\010\322\371\263\007\003ag-\312\371\263\007\006\312\371\263\007\001*\312\371\263\007\030" +
10257-
"\312\371\263\007\023!terraform-providerBi\n\031com.strongdm" +
10258-
".api.plumbingB\025AccountGrantsPlumbingZ5gi" +
10259-
"thub.com/strongdm/strongdm-sdk-go/v3/int" +
10260-
"ernal/v1;v1b\006proto3"
10428+
"essRuleDiffSuppress\320\364\263\007\001\022*\n\021access_reque" +
10429+
"st_id\030\007 \001(\tB\017\362\370\263\007\n\260\363\263\007\001\230\364\263\007\001:(\372\370\263\007#\250\363\263\007\001" +
10430+
"\322\363\263\007\001*\322\363\263\007\023!terraform-provider2\253\004\n\rAccou" +
10431+
"ntGrants\022s\n\006Create\022\035.v1.AccountGrantCrea" +
10432+
"teRequest\032\036.v1.AccountGrantCreateRespons" +
10433+
"e\"*\202\371\263\007\t\242\363\263\007\004post\202\371\263\007\027\252\363\263\007\022/v1/account-g" +
10434+
"rants\022n\n\003Get\022\032.v1.AccountGrantGetRequest" +
10435+
"\032\033.v1.AccountGrantGetResponse\".\202\371\263\007\010\242\363\263\007" +
10436+
"\003get\202\371\263\007\034\252\363\263\007\027/v1/account-grants/{id}\022z\n" +
10437+
"\006Delete\022\035.v1.AccountGrantDeleteRequest\032\036" +
10438+
".v1.AccountGrantDeleteResponse\"1\202\371\263\007\013\242\363\263" +
10439+
"\007\006delete\202\371\263\007\034\252\363\263\007\027/v1/account-grants/{id" +
10440+
"}\022l\n\004List\022\033.v1.AccountGrantListRequest\032\034" +
10441+
".v1.AccountGrantListResponse\")\202\371\263\007\010\242\363\263\007\003" +
10442+
"get\202\371\263\007\027\252\363\263\007\022/v1/account-grants\032K\312\371\263\007\021\302\371" +
10443+
"\263\007\014AccountGrant\312\371\263\007\010\322\371\263\007\003ag-\312\371\263\007\006\312\371\263\007\001*\312" +
10444+
"\371\263\007\030\312\371\263\007\023!terraform-providerBi\n\031com.stro" +
10445+
"ngdm.api.plumbingB\025AccountGrantsPlumbing" +
10446+
"Z5github.com/strongdm/strongdm-sdk-go/v3" +
10447+
"/internal/v1;v1b\006proto3"
1026110448
};
1026210449
descriptor = com.google.protobuf.Descriptors.FileDescriptor
1026310450
.internalBuildGeneratedFileFrom(descriptorData,
@@ -10319,7 +10506,7 @@ public com.strongdm.api.plumbing.AccountGrantsPlumbing.AccountGrant getDefaultIn
1031910506
internal_static_v1_AccountGrant_fieldAccessorTable = new
1032010507
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
1032110508
internal_static_v1_AccountGrant_descriptor,
10322-
new java.lang.String[] { "Id", "ResourceId", "AccountId", "StartFrom", "ValidUntil", "AccessRule", });
10509+
new java.lang.String[] { "Id", "ResourceId", "AccountId", "StartFrom", "ValidUntil", "AccessRule", "AccessRequestId", });
1032310510
com.google.protobuf.ExtensionRegistry registry =
1032410511
com.google.protobuf.ExtensionRegistry.newInstance();
1032510512
registry.add(com.strongdm.api.plumbing.Options.fieldOptions);

com/strongdm/api/plumbing/Plumbing.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,6 +2514,7 @@ public static List<AccountGetResponse> convertRepeatedAccountGetResponseToPlumbi
25142514
public static com.strongdm.api.AccountGrant convertAccountGrantToPorcelain(
25152515
AccountGrant plumbing) {
25162516
com.strongdm.api.AccountGrant porcelain = new com.strongdm.api.AccountGrant();
2517+
porcelain.setAccessRequestId((plumbing.getAccessRequestId()));
25172518
porcelain.setAccessRule(Plumbing.convertAccessRuleToPorcelain(plumbing.getAccessRule()));
25182519
porcelain.setAccountId((plumbing.getAccountId()));
25192520
porcelain.setId((plumbing.getId()));
@@ -2529,6 +2530,9 @@ public static AccountGrant convertAccountGrantToPlumbing(
25292530
return null;
25302531
}
25312532
AccountGrant.Builder builder = AccountGrant.newBuilder();
2533+
if (porcelain.getAccessRequestId() != null) {
2534+
builder.setAccessRequestId((porcelain.getAccessRequestId()));
2535+
}
25322536
if (porcelain.getAccessRule() != null) {
25332537
builder.setAccessRule(Plumbing.convertAccessRuleToPlumbing(porcelain.getAccessRule()));
25342538
}

0 commit comments

Comments
 (0)