Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 19ebd73

Browse files
fix: Fix description of an interpreter field, validate if the field is not unspecified (#440)
* fix: Fix description of an interpreter field, validate if the field is not unspecified PiperOrigin-RevId: 427987153 Source-Link: googleapis/googleapis@a1b62c1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bda75679063f2194c06af55a01c94104eafc2998 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmRhNzU2NzkwNjNmMjE5NGMwNmFmNTVhMDFjOTQxMDRlYWZjMjk5OCJ9 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md fix: update third_party protos to the most actual version: - Add item that is affected by vulnerability - Add GetOsPolicyAssignmentReport and analogous List rpc method - Add Inventory to InstanceFilter - Add existing os_policy_assignment_reports.proto fixing the build - Mark methods as deprecated PiperOrigin-RevId: 427981818 Source-Link: googleapis/googleapis@0b2c906 Source-Link: https://github.com/googleapis/googleapis-gen/commit/171bb5b8f45542786302d8c5c8da35db0c9767f8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTcxYmI1YjhmNDU1NDI3ODYzMDJkOGM1YzhkYTM1ZGIwYzk3NjdmOCJ9 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md feat: Update v1beta protos with recently added features. PatchRollout proto, mig_instances_allowed field to PatchConfig, UpdatePatchDeployment RPC,PausePatchDeployment and ResumePatchDeployment pair of RPCs PiperOrigin-RevId: 427579992 Source-Link: googleapis/googleapis@250797d Source-Link: https://github.com/googleapis/googleapis-gen/commit/2d1e2ba60c784e0752deade90f34780754507872 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmQxZTJiYTYwYzc4NGUwNzUyZGVhZGU5MGYzNDc4MDc1NDUwNzg3MiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: add clirr-ignored-differences Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Neenu1995 <neenushaji@google.com> fix: update third_party protos to the most actual version: feat: Add item that is affected by vulnerability feat: Add GetOsPolicyAssignmentReport and analogous List rpc method feat: Add Inventory to InstanceFilter feat: Add existing os_policy_assignment_reports.proto fixing the build feat: Mark methods as deprecated feat: Update v1beta protos with recently added features. PatchRollout proto, mig_instances_allowed field to PatchConfig, UpdatePatchDeployment RPC,PausePatchDeployment and ResumePatchDeployment pair of RPCs
1 parent bc2746a commit 19ebd73

File tree

96 files changed

+33158
-3850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+33158
-3850
lines changed

google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java

Lines changed: 448 additions & 12 deletions
Large diffs are not rendered by default.

google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceSettings.java

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInstanceOSPoliciesCompliancesPagedResponse;
2020
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInventoriesPagedResponse;
21+
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentReportsPagedResponse;
2122
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentRevisionsPagedResponse;
2223
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentsPagedResponse;
2324
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListVulnerabilityReportsPagedResponse;
@@ -148,14 +149,24 @@ public class OsConfigZonalServiceSettings extends ClientSettings<OsConfigZonalSe
148149
.deleteOSPolicyAssignmentOperationSettings();
149150
}
150151

151-
/** Returns the object with the settings used for calls to getInstanceOSPoliciesCompliance. */
152+
/**
153+
* Returns the object with the settings used for calls to getInstanceOSPoliciesCompliance.
154+
*
155+
* @deprecated This method is deprecated and will be removed in the next major version update.
156+
*/
157+
@Deprecated
152158
public UnaryCallSettings<GetInstanceOSPoliciesComplianceRequest, InstanceOSPoliciesCompliance>
153159
getInstanceOSPoliciesComplianceSettings() {
154160
return ((OsConfigZonalServiceStubSettings) getStubSettings())
155161
.getInstanceOSPoliciesComplianceSettings();
156162
}
157163

158-
/** Returns the object with the settings used for calls to listInstanceOSPoliciesCompliances. */
164+
/**
165+
* Returns the object with the settings used for calls to listInstanceOSPoliciesCompliances.
166+
*
167+
* @deprecated This method is deprecated and will be removed in the next major version update.
168+
*/
169+
@Deprecated
159170
public PagedCallSettings<
160171
ListInstanceOSPoliciesCompliancesRequest,
161172
ListInstanceOSPoliciesCompliancesResponse,
@@ -165,6 +176,23 @@ public class OsConfigZonalServiceSettings extends ClientSettings<OsConfigZonalSe
165176
.listInstanceOSPoliciesCompliancesSettings();
166177
}
167178

179+
/** Returns the object with the settings used for calls to getOSPolicyAssignmentReport. */
180+
public UnaryCallSettings<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
181+
getOSPolicyAssignmentReportSettings() {
182+
return ((OsConfigZonalServiceStubSettings) getStubSettings())
183+
.getOSPolicyAssignmentReportSettings();
184+
}
185+
186+
/** Returns the object with the settings used for calls to listOSPolicyAssignmentReports. */
187+
public PagedCallSettings<
188+
ListOSPolicyAssignmentReportsRequest,
189+
ListOSPolicyAssignmentReportsResponse,
190+
ListOSPolicyAssignmentReportsPagedResponse>
191+
listOSPolicyAssignmentReportsSettings() {
192+
return ((OsConfigZonalServiceStubSettings) getStubSettings())
193+
.listOSPolicyAssignmentReportsSettings();
194+
}
195+
168196
/** Returns the object with the settings used for calls to getInventory. */
169197
public UnaryCallSettings<GetInventoryRequest, Inventory> getInventorySettings() {
170198
return ((OsConfigZonalServiceStubSettings) getStubSettings()).getInventorySettings();
@@ -358,14 +386,24 @@ public Builder applyToAllUnaryMethods(
358386
return getStubSettingsBuilder().deleteOSPolicyAssignmentOperationSettings();
359387
}
360388

361-
/** Returns the builder for the settings used for calls to getInstanceOSPoliciesCompliance. */
389+
/**
390+
* Returns the builder for the settings used for calls to getInstanceOSPoliciesCompliance.
391+
*
392+
* @deprecated This method is deprecated and will be removed in the next major version update.
393+
*/
394+
@Deprecated
362395
public UnaryCallSettings.Builder<
363396
GetInstanceOSPoliciesComplianceRequest, InstanceOSPoliciesCompliance>
364397
getInstanceOSPoliciesComplianceSettings() {
365398
return getStubSettingsBuilder().getInstanceOSPoliciesComplianceSettings();
366399
}
367400

368-
/** Returns the builder for the settings used for calls to listInstanceOSPoliciesCompliances. */
401+
/**
402+
* Returns the builder for the settings used for calls to listInstanceOSPoliciesCompliances.
403+
*
404+
* @deprecated This method is deprecated and will be removed in the next major version update.
405+
*/
406+
@Deprecated
369407
public PagedCallSettings.Builder<
370408
ListInstanceOSPoliciesCompliancesRequest,
371409
ListInstanceOSPoliciesCompliancesResponse,
@@ -374,6 +412,21 @@ public Builder applyToAllUnaryMethods(
374412
return getStubSettingsBuilder().listInstanceOSPoliciesCompliancesSettings();
375413
}
376414

415+
/** Returns the builder for the settings used for calls to getOSPolicyAssignmentReport. */
416+
public UnaryCallSettings.Builder<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
417+
getOSPolicyAssignmentReportSettings() {
418+
return getStubSettingsBuilder().getOSPolicyAssignmentReportSettings();
419+
}
420+
421+
/** Returns the builder for the settings used for calls to listOSPolicyAssignmentReports. */
422+
public PagedCallSettings.Builder<
423+
ListOSPolicyAssignmentReportsRequest,
424+
ListOSPolicyAssignmentReportsResponse,
425+
ListOSPolicyAssignmentReportsPagedResponse>
426+
listOSPolicyAssignmentReportsSettings() {
427+
return getStubSettingsBuilder().listOSPolicyAssignmentReportsSettings();
428+
}
429+
377430
/** Returns the builder for the settings used for calls to getInventory. */
378431
public UnaryCallSettings.Builder<GetInventoryRequest, Inventory> getInventorySettings() {
379432
return getStubSettingsBuilder().getInventorySettings();

google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/gapic_metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"GetOSPolicyAssignment": {
2626
"methods": ["getOSPolicyAssignment", "getOSPolicyAssignment", "getOSPolicyAssignment", "getOSPolicyAssignmentCallable"]
2727
},
28+
"GetOSPolicyAssignmentReport": {
29+
"methods": ["getOSPolicyAssignmentReport", "getOSPolicyAssignmentReport", "getOSPolicyAssignmentReport", "getOSPolicyAssignmentReportCallable"]
30+
},
2831
"GetVulnerabilityReport": {
2932
"methods": ["getVulnerabilityReport", "getVulnerabilityReport", "getVulnerabilityReport", "getVulnerabilityReportCallable"]
3033
},
@@ -34,6 +37,9 @@
3437
"ListInventories": {
3538
"methods": ["listInventories", "listInventories", "listInventories", "listInventoriesPagedCallable", "listInventoriesCallable"]
3639
},
40+
"ListOSPolicyAssignmentReports": {
41+
"methods": ["listOSPolicyAssignmentReports", "listOSPolicyAssignmentReports", "listOSPolicyAssignmentReports", "listOSPolicyAssignmentReportsPagedCallable", "listOSPolicyAssignmentReportsCallable"]
42+
},
3743
"ListOSPolicyAssignmentRevisions": {
3844
"methods": ["listOSPolicyAssignmentRevisions", "listOSPolicyAssignmentRevisions", "listOSPolicyAssignmentRevisions", "listOSPolicyAssignmentRevisionsPagedCallable", "listOSPolicyAssignmentRevisionsCallable"]
3945
},

google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
*/
1616

1717
/**
18-
* The interfaces provided are listed below, along with usage samples.
18+
* A client to OS Config API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
1921
*
2022
* <p>======================= OsConfigZonalServiceClient =======================
2123
*

google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceStub.java

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInstanceOSPoliciesCompliancesPagedResponse;
2020
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInventoriesPagedResponse;
21+
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentReportsPagedResponse;
2122
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentRevisionsPagedResponse;
2223
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentsPagedResponse;
2324
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListVulnerabilityReportsPagedResponse;
@@ -34,6 +35,7 @@
3435
import com.google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
3536
import com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
3637
import com.google.cloud.osconfig.v1alpha.GetInventoryRequest;
38+
import com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
3739
import com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
3840
import com.google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
3941
import com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
@@ -42,6 +44,8 @@
4244
import com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
4345
import com.google.cloud.osconfig.v1alpha.ListInventoriesRequest;
4446
import com.google.cloud.osconfig.v1alpha.ListInventoriesResponse;
47+
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
48+
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
4549
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
4650
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
4751
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
@@ -50,6 +54,7 @@
5054
import com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
5155
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignment;
5256
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
57+
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
5358
import com.google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
5459
import com.google.cloud.osconfig.v1alpha.VulnerabilityReport;
5560
import com.google.common.collect.ImmutableMap;
@@ -178,6 +183,35 @@ public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub {
178183
ListInstanceOSPoliciesCompliancesResponse.getDefaultInstance()))
179184
.build();
180185

186+
private static final MethodDescriptor<
187+
GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
188+
getOSPolicyAssignmentReportMethodDescriptor =
189+
MethodDescriptor
190+
.<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>newBuilder()
191+
.setType(MethodDescriptor.MethodType.UNARY)
192+
.setFullMethodName(
193+
"google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignmentReport")
194+
.setRequestMarshaller(
195+
ProtoUtils.marshaller(GetOSPolicyAssignmentReportRequest.getDefaultInstance()))
196+
.setResponseMarshaller(
197+
ProtoUtils.marshaller(OSPolicyAssignmentReport.getDefaultInstance()))
198+
.build();
199+
200+
private static final MethodDescriptor<
201+
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
202+
listOSPolicyAssignmentReportsMethodDescriptor =
203+
MethodDescriptor
204+
.<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
205+
newBuilder()
206+
.setType(MethodDescriptor.MethodType.UNARY)
207+
.setFullMethodName(
208+
"google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentReports")
209+
.setRequestMarshaller(
210+
ProtoUtils.marshaller(ListOSPolicyAssignmentReportsRequest.getDefaultInstance()))
211+
.setResponseMarshaller(
212+
ProtoUtils.marshaller(ListOSPolicyAssignmentReportsResponse.getDefaultInstance()))
213+
.build();
214+
181215
private static final MethodDescriptor<GetInventoryRequest, Inventory>
182216
getInventoryMethodDescriptor =
183217
MethodDescriptor.<GetInventoryRequest, Inventory>newBuilder()
@@ -260,6 +294,14 @@ public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub {
260294
private final UnaryCallable<
261295
ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesPagedResponse>
262296
listInstanceOSPoliciesCompliancesPagedCallable;
297+
private final UnaryCallable<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
298+
getOSPolicyAssignmentReportCallable;
299+
private final UnaryCallable<
300+
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
301+
listOSPolicyAssignmentReportsCallable;
302+
private final UnaryCallable<
303+
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse>
304+
listOSPolicyAssignmentReportsPagedCallable;
263305
private final UnaryCallable<GetInventoryRequest, Inventory> getInventoryCallable;
264306
private final UnaryCallable<ListInventoriesRequest, ListInventoriesResponse>
265307
listInventoriesCallable;
@@ -416,6 +458,31 @@ protected GrpcOsConfigZonalServiceStub(
416458
return params.build();
417459
})
418460
.build();
461+
GrpcCallSettings<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
462+
getOSPolicyAssignmentReportTransportSettings =
463+
GrpcCallSettings
464+
.<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>newBuilder()
465+
.setMethodDescriptor(getOSPolicyAssignmentReportMethodDescriptor)
466+
.setParamsExtractor(
467+
request -> {
468+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
469+
params.put("name", String.valueOf(request.getName()));
470+
return params.build();
471+
})
472+
.build();
473+
GrpcCallSettings<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
474+
listOSPolicyAssignmentReportsTransportSettings =
475+
GrpcCallSettings
476+
.<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
477+
newBuilder()
478+
.setMethodDescriptor(listOSPolicyAssignmentReportsMethodDescriptor)
479+
.setParamsExtractor(
480+
request -> {
481+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
482+
params.put("parent", String.valueOf(request.getParent()));
483+
return params.build();
484+
})
485+
.build();
419486
GrpcCallSettings<GetInventoryRequest, Inventory> getInventoryTransportSettings =
420487
GrpcCallSettings.<GetInventoryRequest, Inventory>newBuilder()
421488
.setMethodDescriptor(getInventoryMethodDescriptor)
@@ -534,6 +601,21 @@ protected GrpcOsConfigZonalServiceStub(
534601
listInstanceOSPoliciesCompliancesTransportSettings,
535602
settings.listInstanceOSPoliciesCompliancesSettings(),
536603
clientContext);
604+
this.getOSPolicyAssignmentReportCallable =
605+
callableFactory.createUnaryCallable(
606+
getOSPolicyAssignmentReportTransportSettings,
607+
settings.getOSPolicyAssignmentReportSettings(),
608+
clientContext);
609+
this.listOSPolicyAssignmentReportsCallable =
610+
callableFactory.createUnaryCallable(
611+
listOSPolicyAssignmentReportsTransportSettings,
612+
settings.listOSPolicyAssignmentReportsSettings(),
613+
clientContext);
614+
this.listOSPolicyAssignmentReportsPagedCallable =
615+
callableFactory.createPagedCallable(
616+
listOSPolicyAssignmentReportsTransportSettings,
617+
settings.listOSPolicyAssignmentReportsSettings(),
618+
clientContext);
537619
this.getInventoryCallable =
538620
callableFactory.createUnaryCallable(
539621
getInventoryTransportSettings, settings.getInventorySettings(), clientContext);
@@ -658,6 +740,25 @@ public GrpcOperationsStub getOperationsStub() {
658740
return listInstanceOSPoliciesCompliancesPagedCallable;
659741
}
660742

743+
@Override
744+
public UnaryCallable<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
745+
getOSPolicyAssignmentReportCallable() {
746+
return getOSPolicyAssignmentReportCallable;
747+
}
748+
749+
@Override
750+
public UnaryCallable<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
751+
listOSPolicyAssignmentReportsCallable() {
752+
return listOSPolicyAssignmentReportsCallable;
753+
}
754+
755+
@Override
756+
public UnaryCallable<
757+
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse>
758+
listOSPolicyAssignmentReportsPagedCallable() {
759+
return listOSPolicyAssignmentReportsPagedCallable;
760+
}
761+
661762
@Override
662763
public UnaryCallable<GetInventoryRequest, Inventory> getInventoryCallable() {
663764
return getInventoryCallable;

0 commit comments

Comments
 (0)