Skip to content

Commit 656f5db

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 33771 b: refs/heads/autosynth-redis c: 7bf06be h: refs/heads/master i: 33769: a5e6268 33767: 9687877
1 parent dcaf036 commit 656f5db

12 files changed

Lines changed: 68 additions & 70 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ refs/heads/autosynth-iot: 044be280805a59e06d09658688c9ee474a9815ad
135135
refs/heads/autosynth-kms: d31449d6621a50fb16a4bef4f30f0f3051d27d7c
136136
refs/heads/autosynth-language: 6130869312f99a1e7d3aa0485759172a23333cc5
137137
refs/heads/autosynth-os-login: 49028d40ac477fca5f948cc5a3ce7422729fdb67
138-
refs/heads/autosynth-redis: 9d9404b35b673a885e270b39b8c441d35c5bdadd
138+
refs/heads/autosynth-redis: 7bf06be6a968f2f26e33f51ad594dd6d43d84896
139139
refs/heads/autosynth-scheduler: 57f9fdb1e7de30c85f4ec7198931a07f50603e55
140140
refs/heads/autosynth-spanner: de02ca32edea133b68b51052e325359a3704b5d2
141141
refs/heads/autosynth-speech: 64692f6db11364f663921be02c08072b966b6e7b

branches/autosynth-redis/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

branches/autosynth-redis/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import "google/protobuf/duration.proto";
2121
import "google/protobuf/timestamp.proto";
2222
import "google/api/annotations.proto";
2323

24+
option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
2425
option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
2526
option java_multiple_files = true;
2627
option java_package = "com.google.cloud.securitycenter.v1";

branches/autosynth-redis/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,8 @@ public final UnaryCallable<CreateFindingRequest, Finding> createFindingCallable(
420420
* }
421421
* </code></pre>
422422
*
423-
* @param resource REQUIRED: The resource for which the policy is being requested. `resource` is
424-
* usually specified as a path. For example, a Project resource is specified as
425-
* `projects/{project}`.
423+
* @param resource REQUIRED: The resource for which the policy is being requested. See the
424+
* operation documentation for the appropriate value for this field.
426425
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
427426
*/
428427
public final Policy getIamPolicy(SourceName resource) {
@@ -447,9 +446,8 @@ public final Policy getIamPolicy(SourceName resource) {
447446
* }
448447
* </code></pre>
449448
*
450-
* @param resource REQUIRED: The resource for which the policy is being requested. `resource` is
451-
* usually specified as a path. For example, a Project resource is specified as
452-
* `projects/{project}`.
449+
* @param resource REQUIRED: The resource for which the policy is being requested. See the
450+
* operation documentation for the appropriate value for this field.
453451
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
454452
*/
455453
public final Policy getIamPolicy(String resource) {
@@ -1266,7 +1264,7 @@ public final UnaryCallable<ListSourcesRequest, ListSourcesResponse> listSourcesC
12661264
* <pre><code>
12671265
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
12681266
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
1269-
* securityCenterClient.runAssetDiscoveryAsync(parent).get();
1267+
* RunAssetDiscoveryResponse response = securityCenterClient.runAssetDiscoveryAsync(parent).get();
12701268
* }
12711269
* </code></pre>
12721270
*
@@ -1276,7 +1274,8 @@ public final UnaryCallable<ListSourcesRequest, ListSourcesResponse> listSourcesC
12761274
*/
12771275
@BetaApi(
12781276
"The surface for long-running operations is not stable yet and may change in the future.")
1279-
public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(OrganizationName parent) {
1277+
public final OperationFuture<RunAssetDiscoveryResponse, Empty> runAssetDiscoveryAsync(
1278+
OrganizationName parent) {
12801279

12811280
RunAssetDiscoveryRequest request =
12821281
RunAssetDiscoveryRequest.newBuilder()
@@ -1297,7 +1296,7 @@ public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(OrganizationNa
12971296
* <pre><code>
12981297
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
12991298
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
1300-
* securityCenterClient.runAssetDiscoveryAsync(parent.toString()).get();
1299+
* RunAssetDiscoveryResponse response = securityCenterClient.runAssetDiscoveryAsync(parent.toString()).get();
13011300
* }
13021301
* </code></pre>
13031302
*
@@ -1307,7 +1306,8 @@ public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(OrganizationNa
13071306
*/
13081307
@BetaApi(
13091308
"The surface for long-running operations is not stable yet and may change in the future.")
1310-
public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(String parent) {
1309+
public final OperationFuture<RunAssetDiscoveryResponse, Empty> runAssetDiscoveryAsync(
1310+
String parent) {
13111311

13121312
RunAssetDiscoveryRequest request =
13131313
RunAssetDiscoveryRequest.newBuilder().setParent(parent).build();
@@ -1329,7 +1329,7 @@ public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(String parent)
13291329
* RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder()
13301330
* .setParent(parent.toString())
13311331
* .build();
1332-
* securityCenterClient.runAssetDiscoveryAsync(request).get();
1332+
* RunAssetDiscoveryResponse response = securityCenterClient.runAssetDiscoveryAsync(request).get();
13331333
* }
13341334
* </code></pre>
13351335
*
@@ -1338,7 +1338,7 @@ public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(String parent)
13381338
*/
13391339
@BetaApi(
13401340
"The surface for long-running operations is not stable yet and may change in the future.")
1341-
public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(
1341+
public final OperationFuture<RunAssetDiscoveryResponse, Empty> runAssetDiscoveryAsync(
13421342
RunAssetDiscoveryRequest request) {
13431343
return runAssetDiscoveryOperationCallable().futureCall(request);
13441344
}
@@ -1358,14 +1358,14 @@ public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(
13581358
* RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder()
13591359
* .setParent(parent.toString())
13601360
* .build();
1361-
* OperationFuture&lt;Empty, Empty&gt; future = securityCenterClient.runAssetDiscoveryOperationCallable().futureCall(request);
1361+
* OperationFuture&lt;RunAssetDiscoveryResponse, Empty&gt; future = securityCenterClient.runAssetDiscoveryOperationCallable().futureCall(request);
13621362
* // Do something
1363-
* future.get();
1363+
* RunAssetDiscoveryResponse response = future.get();
13641364
* }
13651365
* </code></pre>
13661366
*/
13671367
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
1368-
public final OperationCallable<RunAssetDiscoveryRequest, Empty, Empty>
1368+
public final OperationCallable<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
13691369
runAssetDiscoveryOperationCallable() {
13701370
return stub.runAssetDiscoveryOperationCallable();
13711371
}
@@ -1387,7 +1387,7 @@ public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(
13871387
* .build();
13881388
* ApiFuture&lt;Operation&gt; future = securityCenterClient.runAssetDiscoveryCallable().futureCall(request);
13891389
* // Do something
1390-
* future.get();
1390+
* Operation response = future.get();
13911391
* }
13921392
* </code></pre>
13931393
*/
@@ -1528,9 +1528,8 @@ public final UnaryCallable<SetFindingStateRequest, Finding> setFindingStateCalla
15281528
* }
15291529
* </code></pre>
15301530
*
1531-
* @param resource REQUIRED: The resource for which the policy is being specified. `resource` is
1532-
* usually specified as a path. For example, a Project resource is specified as
1533-
* `projects/{project}`.
1531+
* @param resource REQUIRED: The resource for which the policy is being specified. See the
1532+
* operation documentation for the appropriate value for this field.
15341533
* @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
15351534
* policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
15361535
* Platform services (such as Projects) might reject them.
@@ -1560,9 +1559,8 @@ public final Policy setIamPolicy(SourceName resource, Policy policy) {
15601559
* }
15611560
* </code></pre>
15621561
*
1563-
* @param resource REQUIRED: The resource for which the policy is being specified. `resource` is
1564-
* usually specified as a path. For example, a Project resource is specified as
1565-
* `projects/{project}`.
1562+
* @param resource REQUIRED: The resource for which the policy is being specified. See the
1563+
* operation documentation for the appropriate value for this field.
15661564
* @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
15671565
* policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
15681566
* Platform services (such as Projects) might reject them.
@@ -1638,9 +1636,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
16381636
* }
16391637
* </code></pre>
16401638
*
1641-
* @param resource REQUIRED: The resource for which the policy detail is being requested.
1642-
* `resource` is usually specified as a path. For example, a Project resource is specified as
1643-
* `projects/{project}`.
1639+
* @param resource REQUIRED: The resource for which the policy detail is being requested. See the
1640+
* operation documentation for the appropriate value for this field.
16441641
* @param permissions The set of permissions to check for the `resource`. Permissions with
16451642
* wildcards (such as '&#42;' or 'storage.&#42;') are not allowed. For more information see
16461643
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
@@ -1671,9 +1668,8 @@ public final TestIamPermissionsResponse testIamPermissions(
16711668
* }
16721669
* </code></pre>
16731670
*
1674-
* @param resource REQUIRED: The resource for which the policy detail is being requested.
1675-
* `resource` is usually specified as a path. For example, a Project resource is specified as
1676-
* `projects/{project}`.
1671+
* @param resource REQUIRED: The resource for which the policy detail is being requested. See the
1672+
* operation documentation for the appropriate value for this field.
16771673
* @param permissions The set of permissions to check for the `resource`. Permissions with
16781674
* wildcards (such as '&#42;' or 'storage.&#42;') are not allowed. For more information see
16791675
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).

branches/autosynth-redis/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public UnaryCallSettings<RunAssetDiscoveryRequest, Operation> runAssetDiscoveryS
139139
/** Returns the object with the settings used for calls to runAssetDiscovery. */
140140
@BetaApi(
141141
"The surface for long-running operations is not stable yet and may change in the future.")
142-
public OperationCallSettings<RunAssetDiscoveryRequest, Empty, Empty>
142+
public OperationCallSettings<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
143143
runAssetDiscoveryOperationSettings() {
144144
return ((SecurityCenterStubSettings) getStubSettings()).runAssetDiscoveryOperationSettings();
145145
}
@@ -348,7 +348,7 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
348348
/** Returns the builder for the settings used for calls to runAssetDiscovery. */
349349
@BetaApi(
350350
"The surface for long-running operations is not stable yet and may change in the future.")
351-
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, Empty, Empty>
351+
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
352352
runAssetDiscoveryOperationSettings() {
353353
return getStubSettingsBuilder().runAssetDiscoveryOperationSettings();
354354
}

branches/autosynth-redis/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import com.google.cloud.securitycenter.v1.ListSourcesResponse;
4848
import com.google.cloud.securitycenter.v1.OrganizationSettings;
4949
import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest;
50+
import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
5051
import com.google.cloud.securitycenter.v1.SecurityMarks;
5152
import com.google.cloud.securitycenter.v1.SetFindingStateRequest;
5253
import com.google.cloud.securitycenter.v1.Source;
@@ -263,7 +264,7 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub {
263264
private final UnaryCallable<ListSourcesRequest, ListSourcesPagedResponse>
264265
listSourcesPagedCallable;
265266
private final UnaryCallable<RunAssetDiscoveryRequest, Operation> runAssetDiscoveryCallable;
266-
private final OperationCallable<RunAssetDiscoveryRequest, Empty, Empty>
267+
private final OperationCallable<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
267268
runAssetDiscoveryOperationCallable;
268269
private final UnaryCallable<SetFindingStateRequest, Finding> setFindingStateCallable;
269270
private final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable;
@@ -719,7 +720,7 @@ public UnaryCallable<ListSourcesRequest, ListSourcesResponse> listSourcesCallabl
719720
}
720721

721722
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
722-
public OperationCallable<RunAssetDiscoveryRequest, Empty, Empty>
723+
public OperationCallable<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
723724
runAssetDiscoveryOperationCallable() {
724725
return runAssetDiscoveryOperationCallable;
725726
}

branches/autosynth-redis/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import com.google.cloud.securitycenter.v1.ListSourcesResponse;
4343
import com.google.cloud.securitycenter.v1.OrganizationSettings;
4444
import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest;
45+
import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
4546
import com.google.cloud.securitycenter.v1.SecurityMarks;
4647
import com.google.cloud.securitycenter.v1.SetFindingStateRequest;
4748
import com.google.cloud.securitycenter.v1.Source;
@@ -137,7 +138,7 @@ public UnaryCallable<ListSourcesRequest, ListSourcesResponse> listSourcesCallabl
137138
}
138139

139140
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
140-
public OperationCallable<RunAssetDiscoveryRequest, Empty, Empty>
141+
public OperationCallable<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
141142
runAssetDiscoveryOperationCallable() {
142143
throw new UnsupportedOperationException(
143144
"Not implemented: runAssetDiscoveryOperationCallable()");

branches/autosynth-redis/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
import com.google.cloud.securitycenter.v1.ListSourcesResponse;
6666
import com.google.cloud.securitycenter.v1.OrganizationSettings;
6767
import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest;
68+
import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
6869
import com.google.cloud.securitycenter.v1.SecurityMarks;
6970
import com.google.cloud.securitycenter.v1.SetFindingStateRequest;
7071
import com.google.cloud.securitycenter.v1.Source;
@@ -141,7 +142,7 @@ public class SecurityCenterStubSettings extends StubSettings<SecurityCenterStubS
141142
private final PagedCallSettings<ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
142143
listSourcesSettings;
143144
private final UnaryCallSettings<RunAssetDiscoveryRequest, Operation> runAssetDiscoverySettings;
144-
private final OperationCallSettings<RunAssetDiscoveryRequest, Empty, Empty>
145+
private final OperationCallSettings<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
145146
runAssetDiscoveryOperationSettings;
146147
private final UnaryCallSettings<SetFindingStateRequest, Finding> setFindingStateSettings;
147148
private final UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings;
@@ -217,7 +218,7 @@ public UnaryCallSettings<RunAssetDiscoveryRequest, Operation> runAssetDiscoveryS
217218

218219
/** Returns the object with the settings used for calls to runAssetDiscovery. */
219220
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
220-
public OperationCallSettings<RunAssetDiscoveryRequest, Empty, Empty>
221+
public OperationCallSettings<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
221222
runAssetDiscoveryOperationSettings() {
222223
return runAssetDiscoveryOperationSettings;
223224
}
@@ -657,7 +658,8 @@ public static class Builder extends StubSettings.Builder<SecurityCenterStubSetti
657658
listSourcesSettings;
658659
private final UnaryCallSettings.Builder<RunAssetDiscoveryRequest, Operation>
659660
runAssetDiscoverySettings;
660-
private final OperationCallSettings.Builder<RunAssetDiscoveryRequest, Empty, Empty>
661+
private final OperationCallSettings.Builder<
662+
RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
661663
runAssetDiscoveryOperationSettings;
662664
private final UnaryCallSettings.Builder<SetFindingStateRequest, Finding>
663665
setFindingStateSettings;
@@ -883,7 +885,8 @@ private static Builder initDefaults(Builder builder) {
883885
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
884886
.build())
885887
.setResponseTransformer(
886-
ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
888+
ProtoOperationTransformers.ResponseTransformer.create(
889+
RunAssetDiscoveryResponse.class))
887890
.setMetadataTransformer(
888891
ProtoOperationTransformers.MetadataTransformer.create(Empty.class))
889892
.setPollingAlgorithm(
@@ -1031,7 +1034,7 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
10311034
/** Returns the builder for the settings used for calls to runAssetDiscovery. */
10321035
@BetaApi(
10331036
"The surface for use by generated code is not stable yet and may change in the future.")
1034-
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, Empty, Empty>
1037+
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
10351038
runAssetDiscoveryOperationSettings() {
10361039
return runAssetDiscoveryOperationSettings;
10371040
}

0 commit comments

Comments
 (0)