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

Commit

Permalink
feat: Update OSConfig API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 409204961

Source-Link: googleapis/googleapis@a85beae

Source-Link: googleapis/googleapis-gen@b334c5d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjMzNGM1ZDdiNDVmNGFmMTEzM2FmOTcxNzg5MDQ4Mjk5YjY2ZGMzOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 17, 2021
1 parent 9d89d23 commit fd4b3c1
Show file tree
Hide file tree
Showing 237 changed files with 73,453 additions and 124,531 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Expand Up @@ -69,13 +69,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -687,11 +687,11 @@ public final ListPatchJobInstanceDetailsPagedResponse listPatchJobInstanceDetail
* @param patchDeploymentId Required. A name for the patch deployment in the project. When
* creating a name the following rules apply:
* <ul>
* <li>Must contain only lowercase letters, numbers, and hyphens.
* <li>Must start with a letter.
* <li>Must be between 1-63 characters.
* <li>Must end with a number or a letter.
* <li>Must be unique within the project.
* <li> Must contain only lowercase letters, numbers, and hyphens.
* <li> Must start with a letter.
* <li> Must be between 1-63 characters.
* <li> Must end with a number or a letter.
* <li> Must be unique within the project.
* </ul>
*
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -732,11 +732,11 @@ public final PatchDeployments.PatchDeployment createPatchDeployment(
* @param patchDeploymentId Required. A name for the patch deployment in the project. When
* creating a name the following rules apply:
* <ul>
* <li>Must contain only lowercase letters, numbers, and hyphens.
* <li>Must start with a letter.
* <li>Must be between 1-63 characters.
* <li>Must end with a number or a letter.
* <li>Must be unique within the project.
* <li> Must contain only lowercase letters, numbers, and hyphens.
* <li> Must start with a letter.
* <li> Must be between 1-63 characters.
* <li> Must end with a number or a letter.
* <li> Must be unique within the project.
* </ul>
*
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -1177,11 +1177,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListPatchJobsPagedResponse
extends AbstractPagedListResponse<
PatchJobs.ListPatchJobsRequest,
PatchJobs.ListPatchJobsResponse,
PatchJobs.PatchJob,
ListPatchJobsPage,
ListPatchJobsFixedSizeCollection> {
PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob,
ListPatchJobsPage, ListPatchJobsFixedSizeCollection> {

public static ApiFuture<ListPatchJobsPagedResponse> createAsync(
PageContext<
Expand All @@ -1203,9 +1200,7 @@ private ListPatchJobsPagedResponse(ListPatchJobsPage page) {

public static class ListPatchJobsPage
extends AbstractPage<
PatchJobs.ListPatchJobsRequest,
PatchJobs.ListPatchJobsResponse,
PatchJobs.PatchJob,
PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob,
ListPatchJobsPage> {

private ListPatchJobsPage(
Expand Down Expand Up @@ -1241,11 +1236,8 @@ public ApiFuture<ListPatchJobsPage> createPageAsync(

public static class ListPatchJobsFixedSizeCollection
extends AbstractFixedSizeCollection<
PatchJobs.ListPatchJobsRequest,
PatchJobs.ListPatchJobsResponse,
PatchJobs.PatchJob,
ListPatchJobsPage,
ListPatchJobsFixedSizeCollection> {
PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob,
ListPatchJobsPage, ListPatchJobsFixedSizeCollection> {

private ListPatchJobsFixedSizeCollection(List<ListPatchJobsPage> pages, int collectionSize) {
super(pages, collectionSize);
Expand All @@ -1265,16 +1257,13 @@ protected ListPatchJobsFixedSizeCollection createCollection(
public static class ListPatchJobInstanceDetailsPagedResponse
extends AbstractPagedListResponse<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails,
ListPatchJobInstanceDetailsPage,
ListPatchJobInstanceDetailsFixedSizeCollection> {
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails,
ListPatchJobInstanceDetailsPage, ListPatchJobInstanceDetailsFixedSizeCollection> {

public static ApiFuture<ListPatchJobInstanceDetailsPagedResponse> createAsync(
PageContext<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails>
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails>
context,
ApiFuture<PatchJobs.ListPatchJobInstanceDetailsResponse> futureResponse) {
ApiFuture<ListPatchJobInstanceDetailsPage> futurePage =
Expand All @@ -1294,15 +1283,13 @@ private ListPatchJobInstanceDetailsPagedResponse(ListPatchJobInstanceDetailsPage
public static class ListPatchJobInstanceDetailsPage
extends AbstractPage<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails,
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails,
ListPatchJobInstanceDetailsPage> {

private ListPatchJobInstanceDetailsPage(
PageContext<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails>
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails>
context,
PatchJobs.ListPatchJobInstanceDetailsResponse response) {
super(context, response);
Expand All @@ -1316,8 +1303,7 @@ private static ListPatchJobInstanceDetailsPage createEmptyPage() {
protected ListPatchJobInstanceDetailsPage createPage(
PageContext<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails>
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails>
context,
PatchJobs.ListPatchJobInstanceDetailsResponse response) {
return new ListPatchJobInstanceDetailsPage(context, response);
Expand All @@ -1327,8 +1313,7 @@ protected ListPatchJobInstanceDetailsPage createPage(
public ApiFuture<ListPatchJobInstanceDetailsPage> createPageAsync(
PageContext<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails>
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails>
context,
ApiFuture<PatchJobs.ListPatchJobInstanceDetailsResponse> futureResponse) {
return super.createPageAsync(context, futureResponse);
Expand All @@ -1338,10 +1323,8 @@ public ApiFuture<ListPatchJobInstanceDetailsPage> createPageAsync(
public static class ListPatchJobInstanceDetailsFixedSizeCollection
extends AbstractFixedSizeCollection<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
PatchJobs.PatchJobInstanceDetails,
ListPatchJobInstanceDetailsPage,
ListPatchJobInstanceDetailsFixedSizeCollection> {
PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails,
ListPatchJobInstanceDetailsPage, ListPatchJobInstanceDetailsFixedSizeCollection> {

private ListPatchJobInstanceDetailsFixedSizeCollection(
List<ListPatchJobInstanceDetailsPage> pages, int collectionSize) {
Expand All @@ -1362,16 +1345,13 @@ protected ListPatchJobInstanceDetailsFixedSizeCollection createCollection(
public static class ListPatchDeploymentsPagedResponse
extends AbstractPagedListResponse<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment,
ListPatchDeploymentsPage,
ListPatchDeploymentsFixedSizeCollection> {
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment,
ListPatchDeploymentsPage, ListPatchDeploymentsFixedSizeCollection> {

public static ApiFuture<ListPatchDeploymentsPagedResponse> createAsync(
PageContext<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment>
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment>
context,
ApiFuture<PatchDeployments.ListPatchDeploymentsResponse> futureResponse) {
ApiFuture<ListPatchDeploymentsPage> futurePage =
Expand All @@ -1390,15 +1370,13 @@ private ListPatchDeploymentsPagedResponse(ListPatchDeploymentsPage page) {
public static class ListPatchDeploymentsPage
extends AbstractPage<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment,
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment,
ListPatchDeploymentsPage> {

private ListPatchDeploymentsPage(
PageContext<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment>
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment>
context,
PatchDeployments.ListPatchDeploymentsResponse response) {
super(context, response);
Expand All @@ -1412,8 +1390,7 @@ private static ListPatchDeploymentsPage createEmptyPage() {
protected ListPatchDeploymentsPage createPage(
PageContext<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment>
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment>
context,
PatchDeployments.ListPatchDeploymentsResponse response) {
return new ListPatchDeploymentsPage(context, response);
Expand All @@ -1423,8 +1400,7 @@ protected ListPatchDeploymentsPage createPage(
public ApiFuture<ListPatchDeploymentsPage> createPageAsync(
PageContext<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment>
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment>
context,
ApiFuture<PatchDeployments.ListPatchDeploymentsResponse> futureResponse) {
return super.createPageAsync(context, futureResponse);
Expand All @@ -1434,10 +1410,8 @@ public ApiFuture<ListPatchDeploymentsPage> createPageAsync(
public static class ListPatchDeploymentsFixedSizeCollection
extends AbstractFixedSizeCollection<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
PatchDeployments.PatchDeployment,
ListPatchDeploymentsPage,
ListPatchDeploymentsFixedSizeCollection> {
PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment,
ListPatchDeploymentsPage, ListPatchDeploymentsFixedSizeCollection> {

private ListPatchDeploymentsFixedSizeCollection(
List<ListPatchDeploymentsPage> pages, int collectionSize) {
Expand Down
Expand Up @@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.osconfig.v1.stub.OsConfigServiceStubSettings;
Expand All @@ -44,9 +45,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (osconfig.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (osconfig.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -91,8 +92,7 @@ public UnaryCallSettings<PatchJobs.GetPatchJobRequest, PatchJobs.PatchJob> getPa

/** Returns the object with the settings used for calls to listPatchJobs. */
public PagedCallSettings<
PatchJobs.ListPatchJobsRequest,
PatchJobs.ListPatchJobsResponse,
PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse,
ListPatchJobsPagedResponse>
listPatchJobsSettings() {
return ((OsConfigServiceStubSettings) getStubSettings()).listPatchJobsSettings();
Expand All @@ -101,8 +101,7 @@ public UnaryCallSettings<PatchJobs.GetPatchJobRequest, PatchJobs.PatchJob> getPa
/** Returns the object with the settings used for calls to listPatchJobInstanceDetails. */
public PagedCallSettings<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
ListPatchJobInstanceDetailsPagedResponse>
PatchJobs.ListPatchJobInstanceDetailsResponse, ListPatchJobInstanceDetailsPagedResponse>
listPatchJobInstanceDetailsSettings() {
return ((OsConfigServiceStubSettings) getStubSettings()).listPatchJobInstanceDetailsSettings();
}
Expand All @@ -124,8 +123,7 @@ public UnaryCallSettings<PatchJobs.GetPatchJobRequest, PatchJobs.PatchJob> getPa
/** Returns the object with the settings used for calls to listPatchDeployments. */
public PagedCallSettings<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
ListPatchDeploymentsPagedResponse>
PatchDeployments.ListPatchDeploymentsResponse, ListPatchDeploymentsPagedResponse>
listPatchDeploymentsSettings() {
return ((OsConfigServiceStubSettings) getStubSettings()).listPatchDeploymentsSettings();
}
Expand Down Expand Up @@ -253,8 +251,7 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listPatchJobs. */
public PagedCallSettings.Builder<
PatchJobs.ListPatchJobsRequest,
PatchJobs.ListPatchJobsResponse,
PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse,
ListPatchJobsPagedResponse>
listPatchJobsSettings() {
return getStubSettingsBuilder().listPatchJobsSettings();
Expand All @@ -263,8 +260,7 @@ public Builder applyToAllUnaryMethods(
/** Returns the builder for the settings used for calls to listPatchJobInstanceDetails. */
public PagedCallSettings.Builder<
PatchJobs.ListPatchJobInstanceDetailsRequest,
PatchJobs.ListPatchJobInstanceDetailsResponse,
ListPatchJobInstanceDetailsPagedResponse>
PatchJobs.ListPatchJobInstanceDetailsResponse, ListPatchJobInstanceDetailsPagedResponse>
listPatchJobInstanceDetailsSettings() {
return getStubSettingsBuilder().listPatchJobInstanceDetailsSettings();
}
Expand All @@ -286,8 +282,7 @@ public Builder applyToAllUnaryMethods(
/** Returns the builder for the settings used for calls to listPatchDeployments. */
public PagedCallSettings.Builder<
PatchDeployments.ListPatchDeploymentsRequest,
PatchDeployments.ListPatchDeploymentsResponse,
ListPatchDeploymentsPagedResponse>
PatchDeployments.ListPatchDeploymentsResponse, ListPatchDeploymentsPagedResponse>
listPatchDeploymentsSettings() {
return getStubSettingsBuilder().listPatchDeploymentsSettings();
}
Expand Down

0 comments on commit fd4b3c1

Please sign in to comment.