Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Nov 9, 2022
1 parent 9a1e2f5 commit 26111a8
Show file tree
Hide file tree
Showing 148 changed files with 26,792 additions and 34,600 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.identity.accesscontextmanager.v1.stub.AccessContextManagerStubSettings;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
Expand Down Expand Up @@ -354,6 +359,22 @@ public UnaryCallSettings<ReplaceAccessLevelsRequest, Operation> replaceAccessLev
.deleteGcpUserAccessBindingOperationSettings();
}

/** Returns the object with the settings used for calls to setIamPolicy. */
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return ((AccessContextManagerStubSettings) getStubSettings()).setIamPolicySettings();
}

/** Returns the object with the settings used for calls to getIamPolicy. */
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((AccessContextManagerStubSettings) getStubSettings()).getIamPolicySettings();
}

/** Returns the object with the settings used for calls to testIamPermissions. */
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings() {
return ((AccessContextManagerStubSettings) getStubSettings()).testIamPermissionsSettings();
}

public static final AccessContextManagerSettings create(AccessContextManagerStubSettings stub)
throws IOException {
return new AccessContextManagerSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -729,6 +750,22 @@ public UnaryCallSettings.Builder<GetAccessLevelRequest, AccessLevel> getAccessLe
return getStubSettingsBuilder().deleteGcpUserAccessBindingOperationSettings();
}

/** Returns the builder for the settings used for calls to setIamPolicy. */
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return getStubSettingsBuilder().setIamPolicySettings();
}

/** Returns the builder for the settings used for calls to getIamPolicy. */
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return getStubSettingsBuilder().getIamPolicySettings();
}

/** Returns the builder for the settings used for calls to testIamPermissions. */
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings() {
return getStubSettingsBuilder().testIamPermissionsSettings();
}

@Override
public AccessContextManagerSettings build() throws IOException {
return new AccessContextManagerSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"GetGcpUserAccessBinding": {
"methods": ["getGcpUserAccessBinding", "getGcpUserAccessBinding", "getGcpUserAccessBinding", "getGcpUserAccessBindingCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicyCallable"]
},
"GetServicePerimeter": {
"methods": ["getServicePerimeter", "getServicePerimeter", "getServicePerimeter", "getServicePerimeterCallable"]
},
Expand All @@ -67,6 +70,12 @@
"ReplaceServicePerimeters": {
"methods": ["replaceServicePerimetersAsync", "replaceServicePerimetersOperationCallable", "replaceServicePerimetersCallable"]
},
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicyCallable"]
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateAccessLevel": {
"methods": ["updateAccessLevelAsync", "updateAccessLevelAsync", "updateAccessLevelOperationCallable", "updateAccessLevelCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to Access Context Manager API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= AccessContextManagerClient =======================
*
* <p>Service Description: API for setting [Access Levels]
* [google.identity.accesscontextmanager.v1.AccessLevel] and [Service Perimeters]
* [google.identity.accesscontextmanager.v1.ServicePerimeter] for Google Cloud Projects. Each
* organization has one [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]
* containing the [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [Service
* Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter]. This [AccessPolicy]
* <p>Service Description: API for setting [access levels]
* [google.identity.accesscontextmanager.v1.AccessLevel] and [service perimeters]
* [google.identity.accesscontextmanager.v1.ServicePerimeter] for Google Cloud projects. Each
* organization has one [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that
* contains the [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [service
* perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter]. This [access policy]
* [google.identity.accesscontextmanager.v1.AccessPolicy] is applicable to all resources in the
* organization. AccessPolicies
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.identity.accesscontextmanager.v1.AccessContextManagerOperationMetadata;
import com.google.identity.accesscontextmanager.v1.AccessLevel;
import com.google.identity.accesscontextmanager.v1.AccessPolicy;
Expand Down Expand Up @@ -320,6 +325,19 @@ public UnaryCallable<DeleteServicePerimeterRequest, Operation> deleteServicePeri
"Not implemented: deleteGcpUserAccessBindingCallable()");
}

public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
}

public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
}

public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

@Override
public abstract void close();
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.identity.accesscontextmanager.v1.AccessContextManagerOperationMetadata;
import com.google.identity.accesscontextmanager.v1.AccessLevel;
import com.google.identity.accesscontextmanager.v1.AccessPolicy;
Expand Down Expand Up @@ -243,6 +248,10 @@ public class AccessContextManagerStubSettings
private final OperationCallSettings<
DeleteGcpUserAccessBindingRequest, Empty, GcpUserAccessBindingOperationMetadata>
deleteGcpUserAccessBindingOperationSettings;
private final UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings;
private final UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings;
private final UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings;

private static final PagedListDescriptor<
ListAccessPoliciesRequest, ListAccessPoliciesResponse, AccessPolicy>
Expand Down Expand Up @@ -755,6 +764,22 @@ public UnaryCallSettings<ReplaceAccessLevelsRequest, Operation> replaceAccessLev
return deleteGcpUserAccessBindingOperationSettings;
}

/** Returns the object with the settings used for calls to setIamPolicy. */
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return setIamPolicySettings;
}

/** Returns the object with the settings used for calls to getIamPolicy. */
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return getIamPolicySettings;
}

/** Returns the object with the settings used for calls to testIamPermissions. */
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings() {
return testIamPermissionsSettings;
}

public AccessContextManagerStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down Expand Up @@ -917,6 +942,9 @@ protected AccessContextManagerStubSettings(Builder settingsBuilder) throws IOExc
settingsBuilder.deleteGcpUserAccessBindingSettings().build();
deleteGcpUserAccessBindingOperationSettings =
settingsBuilder.deleteGcpUserAccessBindingOperationSettings().build();
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
}

/** Builder for AccessContextManagerStubSettings. */
Expand Down Expand Up @@ -1031,6 +1059,10 @@ public static class Builder
private final OperationCallSettings.Builder<
DeleteGcpUserAccessBindingRequest, Empty, GcpUserAccessBindingOperationMetadata>
deleteGcpUserAccessBindingOperationSettings;
private final UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings;
private final UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings;
private final UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings;
private static final ImmutableMap<String, ImmutableSet<StatusCode.Code>>
RETRYABLE_CODE_DEFINITIONS;

Expand Down Expand Up @@ -1105,6 +1137,9 @@ protected Builder(ClientContext clientContext) {
updateGcpUserAccessBindingOperationSettings = OperationCallSettings.newBuilder();
deleteGcpUserAccessBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteGcpUserAccessBindingOperationSettings = OperationCallSettings.newBuilder();
setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();

unaryMethodSettingsBuilders =
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
Expand All @@ -1130,7 +1165,10 @@ protected Builder(ClientContext clientContext) {
getGcpUserAccessBindingSettings,
createGcpUserAccessBindingSettings,
updateGcpUserAccessBindingSettings,
deleteGcpUserAccessBindingSettings);
deleteGcpUserAccessBindingSettings,
setIamPolicySettings,
getIamPolicySettings,
testIamPermissionsSettings);
initDefaults(this);
}

Expand Down Expand Up @@ -1187,6 +1225,9 @@ protected Builder(AccessContextManagerStubSettings settings) {
deleteGcpUserAccessBindingSettings = settings.deleteGcpUserAccessBindingSettings.toBuilder();
deleteGcpUserAccessBindingOperationSettings =
settings.deleteGcpUserAccessBindingOperationSettings.toBuilder();
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();

unaryMethodSettingsBuilders =
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
Expand All @@ -1212,7 +1253,10 @@ protected Builder(AccessContextManagerStubSettings settings) {
getGcpUserAccessBindingSettings,
createGcpUserAccessBindingSettings,
updateGcpUserAccessBindingSettings,
deleteGcpUserAccessBindingSettings);
deleteGcpUserAccessBindingSettings,
setIamPolicySettings,
getIamPolicySettings,
testIamPermissionsSettings);
}

private static Builder createDefault() {
Expand Down Expand Up @@ -1357,6 +1401,21 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));

builder
.setIamPolicySettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));

builder
.getIamPolicySettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));

builder
.testIamPermissionsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));

builder
.createAccessPolicyOperationSettings()
.setInitialCallSettings(
Expand Down Expand Up @@ -2044,6 +2103,22 @@ public UnaryCallSettings.Builder<GetAccessLevelRequest, AccessLevel> getAccessLe
return deleteGcpUserAccessBindingOperationSettings;
}

/** Returns the builder for the settings used for calls to setIamPolicy. */
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return setIamPolicySettings;
}

/** Returns the builder for the settings used for calls to getIamPolicy. */
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return getIamPolicySettings;
}

/** Returns the builder for the settings used for calls to testIamPermissions. */
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings() {
return testIamPermissionsSettings;
}

@Override
public AccessContextManagerStubSettings build() throws IOException {
return new AccessContextManagerStubSettings(this);
Expand Down
Loading

0 comments on commit 26111a8

Please sign in to comment.