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

Commit

Permalink
fix: Fix description of an interpreter field, validate if the field i…
Browse files Browse the repository at this point in the history
…s 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: googleapis/googleapis-gen@bda7567
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: googleapis/googleapis-gen@171bb5b
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: googleapis/googleapis-gen@2d1e2ba
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
  • Loading branch information
gcf-owl-bot[bot] committed Feb 25, 2022
1 parent bc2746a commit 19ebd73
Show file tree
Hide file tree
Showing 96 changed files with 33,158 additions and 3,850 deletions.

Large diffs are not rendered by default.

Expand Up @@ -18,6 +18,7 @@

import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInstanceOSPoliciesCompliancesPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInventoriesPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentReportsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentRevisionsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListVulnerabilityReportsPagedResponse;
Expand Down Expand Up @@ -148,14 +149,24 @@ public class OsConfigZonalServiceSettings extends ClientSettings<OsConfigZonalSe
.deleteOSPolicyAssignmentOperationSettings();
}

/** Returns the object with the settings used for calls to getInstanceOSPoliciesCompliance. */
/**
* Returns the object with the settings used for calls to getInstanceOSPoliciesCompliance.
*
* @deprecated This method is deprecated and will be removed in the next major version update.
*/
@Deprecated
public UnaryCallSettings<GetInstanceOSPoliciesComplianceRequest, InstanceOSPoliciesCompliance>
getInstanceOSPoliciesComplianceSettings() {
return ((OsConfigZonalServiceStubSettings) getStubSettings())
.getInstanceOSPoliciesComplianceSettings();
}

/** Returns the object with the settings used for calls to listInstanceOSPoliciesCompliances. */
/**
* Returns the object with the settings used for calls to listInstanceOSPoliciesCompliances.
*
* @deprecated This method is deprecated and will be removed in the next major version update.
*/
@Deprecated
public PagedCallSettings<
ListInstanceOSPoliciesCompliancesRequest,
ListInstanceOSPoliciesCompliancesResponse,
Expand All @@ -165,6 +176,23 @@ public class OsConfigZonalServiceSettings extends ClientSettings<OsConfigZonalSe
.listInstanceOSPoliciesCompliancesSettings();
}

/** Returns the object with the settings used for calls to getOSPolicyAssignmentReport. */
public UnaryCallSettings<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
getOSPolicyAssignmentReportSettings() {
return ((OsConfigZonalServiceStubSettings) getStubSettings())
.getOSPolicyAssignmentReportSettings();
}

/** Returns the object with the settings used for calls to listOSPolicyAssignmentReports. */
public PagedCallSettings<
ListOSPolicyAssignmentReportsRequest,
ListOSPolicyAssignmentReportsResponse,
ListOSPolicyAssignmentReportsPagedResponse>
listOSPolicyAssignmentReportsSettings() {
return ((OsConfigZonalServiceStubSettings) getStubSettings())
.listOSPolicyAssignmentReportsSettings();
}

/** Returns the object with the settings used for calls to getInventory. */
public UnaryCallSettings<GetInventoryRequest, Inventory> getInventorySettings() {
return ((OsConfigZonalServiceStubSettings) getStubSettings()).getInventorySettings();
Expand Down Expand Up @@ -358,14 +386,24 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().deleteOSPolicyAssignmentOperationSettings();
}

/** Returns the builder for the settings used for calls to getInstanceOSPoliciesCompliance. */
/**
* Returns the builder for the settings used for calls to getInstanceOSPoliciesCompliance.
*
* @deprecated This method is deprecated and will be removed in the next major version update.
*/
@Deprecated
public UnaryCallSettings.Builder<
GetInstanceOSPoliciesComplianceRequest, InstanceOSPoliciesCompliance>
getInstanceOSPoliciesComplianceSettings() {
return getStubSettingsBuilder().getInstanceOSPoliciesComplianceSettings();
}

/** Returns the builder for the settings used for calls to listInstanceOSPoliciesCompliances. */
/**
* Returns the builder for the settings used for calls to listInstanceOSPoliciesCompliances.
*
* @deprecated This method is deprecated and will be removed in the next major version update.
*/
@Deprecated
public PagedCallSettings.Builder<
ListInstanceOSPoliciesCompliancesRequest,
ListInstanceOSPoliciesCompliancesResponse,
Expand All @@ -374,6 +412,21 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().listInstanceOSPoliciesCompliancesSettings();
}

/** Returns the builder for the settings used for calls to getOSPolicyAssignmentReport. */
public UnaryCallSettings.Builder<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
getOSPolicyAssignmentReportSettings() {
return getStubSettingsBuilder().getOSPolicyAssignmentReportSettings();
}

/** Returns the builder for the settings used for calls to listOSPolicyAssignmentReports. */
public PagedCallSettings.Builder<
ListOSPolicyAssignmentReportsRequest,
ListOSPolicyAssignmentReportsResponse,
ListOSPolicyAssignmentReportsPagedResponse>
listOSPolicyAssignmentReportsSettings() {
return getStubSettingsBuilder().listOSPolicyAssignmentReportsSettings();
}

/** Returns the builder for the settings used for calls to getInventory. */
public UnaryCallSettings.Builder<GetInventoryRequest, Inventory> getInventorySettings() {
return getStubSettingsBuilder().getInventorySettings();
Expand Down
Expand Up @@ -25,6 +25,9 @@
"GetOSPolicyAssignment": {
"methods": ["getOSPolicyAssignment", "getOSPolicyAssignment", "getOSPolicyAssignment", "getOSPolicyAssignmentCallable"]
},
"GetOSPolicyAssignmentReport": {
"methods": ["getOSPolicyAssignmentReport", "getOSPolicyAssignmentReport", "getOSPolicyAssignmentReport", "getOSPolicyAssignmentReportCallable"]
},
"GetVulnerabilityReport": {
"methods": ["getVulnerabilityReport", "getVulnerabilityReport", "getVulnerabilityReport", "getVulnerabilityReportCallable"]
},
Expand All @@ -34,6 +37,9 @@
"ListInventories": {
"methods": ["listInventories", "listInventories", "listInventories", "listInventoriesPagedCallable", "listInventoriesCallable"]
},
"ListOSPolicyAssignmentReports": {
"methods": ["listOSPolicyAssignmentReports", "listOSPolicyAssignmentReports", "listOSPolicyAssignmentReports", "listOSPolicyAssignmentReportsPagedCallable", "listOSPolicyAssignmentReportsCallable"]
},
"ListOSPolicyAssignmentRevisions": {
"methods": ["listOSPolicyAssignmentRevisions", "listOSPolicyAssignmentRevisions", "listOSPolicyAssignmentRevisions", "listOSPolicyAssignmentRevisionsPagedCallable", "listOSPolicyAssignmentRevisionsCallable"]
},
Expand Down
Expand Up @@ -15,7 +15,9 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to OS Config API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= OsConfigZonalServiceClient =======================
*
Expand Down
Expand Up @@ -18,6 +18,7 @@

import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInstanceOSPoliciesCompliancesPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInventoriesPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentReportsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentRevisionsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListVulnerabilityReportsPagedResponse;
Expand All @@ -34,6 +35,7 @@
import com.google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
import com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
import com.google.cloud.osconfig.v1alpha.GetInventoryRequest;
import com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
import com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
import com.google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
import com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
Expand All @@ -42,6 +44,8 @@
import com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
import com.google.cloud.osconfig.v1alpha.ListInventoriesRequest;
import com.google.cloud.osconfig.v1alpha.ListInventoriesResponse;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
Expand All @@ -50,6 +54,7 @@
import com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignment;
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
import com.google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
import com.google.cloud.osconfig.v1alpha.VulnerabilityReport;
import com.google.common.collect.ImmutableMap;
Expand Down Expand Up @@ -178,6 +183,35 @@ public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub {
ListInstanceOSPoliciesCompliancesResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<
GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
getOSPolicyAssignmentReportMethodDescriptor =
MethodDescriptor
.<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignmentReport")
.setRequestMarshaller(
ProtoUtils.marshaller(GetOSPolicyAssignmentReportRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(OSPolicyAssignmentReport.getDefaultInstance()))
.build();

private static final MethodDescriptor<
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
listOSPolicyAssignmentReportsMethodDescriptor =
MethodDescriptor
.<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentReports")
.setRequestMarshaller(
ProtoUtils.marshaller(ListOSPolicyAssignmentReportsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListOSPolicyAssignmentReportsResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<GetInventoryRequest, Inventory>
getInventoryMethodDescriptor =
MethodDescriptor.<GetInventoryRequest, Inventory>newBuilder()
Expand Down Expand Up @@ -260,6 +294,14 @@ public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub {
private final UnaryCallable<
ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesPagedResponse>
listInstanceOSPoliciesCompliancesPagedCallable;
private final UnaryCallable<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
getOSPolicyAssignmentReportCallable;
private final UnaryCallable<
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
listOSPolicyAssignmentReportsCallable;
private final UnaryCallable<
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse>
listOSPolicyAssignmentReportsPagedCallable;
private final UnaryCallable<GetInventoryRequest, Inventory> getInventoryCallable;
private final UnaryCallable<ListInventoriesRequest, ListInventoriesResponse>
listInventoriesCallable;
Expand Down Expand Up @@ -416,6 +458,31 @@ protected GrpcOsConfigZonalServiceStub(
return params.build();
})
.build();
GrpcCallSettings<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
getOSPolicyAssignmentReportTransportSettings =
GrpcCallSettings
.<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>newBuilder()
.setMethodDescriptor(getOSPolicyAssignmentReportMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
listOSPolicyAssignmentReportsTransportSettings =
GrpcCallSettings
.<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
newBuilder()
.setMethodDescriptor(listOSPolicyAssignmentReportsMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<GetInventoryRequest, Inventory> getInventoryTransportSettings =
GrpcCallSettings.<GetInventoryRequest, Inventory>newBuilder()
.setMethodDescriptor(getInventoryMethodDescriptor)
Expand Down Expand Up @@ -534,6 +601,21 @@ protected GrpcOsConfigZonalServiceStub(
listInstanceOSPoliciesCompliancesTransportSettings,
settings.listInstanceOSPoliciesCompliancesSettings(),
clientContext);
this.getOSPolicyAssignmentReportCallable =
callableFactory.createUnaryCallable(
getOSPolicyAssignmentReportTransportSettings,
settings.getOSPolicyAssignmentReportSettings(),
clientContext);
this.listOSPolicyAssignmentReportsCallable =
callableFactory.createUnaryCallable(
listOSPolicyAssignmentReportsTransportSettings,
settings.listOSPolicyAssignmentReportsSettings(),
clientContext);
this.listOSPolicyAssignmentReportsPagedCallable =
callableFactory.createPagedCallable(
listOSPolicyAssignmentReportsTransportSettings,
settings.listOSPolicyAssignmentReportsSettings(),
clientContext);
this.getInventoryCallable =
callableFactory.createUnaryCallable(
getInventoryTransportSettings, settings.getInventorySettings(), clientContext);
Expand Down Expand Up @@ -658,6 +740,25 @@ public GrpcOperationsStub getOperationsStub() {
return listInstanceOSPoliciesCompliancesPagedCallable;
}

@Override
public UnaryCallable<GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
getOSPolicyAssignmentReportCallable() {
return getOSPolicyAssignmentReportCallable;
}

@Override
public UnaryCallable<ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
listOSPolicyAssignmentReportsCallable() {
return listOSPolicyAssignmentReportsCallable;
}

@Override
public UnaryCallable<
ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse>
listOSPolicyAssignmentReportsPagedCallable() {
return listOSPolicyAssignmentReportsPagedCallable;
}

@Override
public UnaryCallable<GetInventoryRequest, Inventory> getInventoryCallable() {
return getInventoryCallable;
Expand Down

0 comments on commit 19ebd73

Please sign in to comment.