Skip to content

Commit

Permalink
chore: regenerate policysimulator client (#18021)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Sep 7, 2023
1 parent 1d151d3 commit 99bb66c
Show file tree
Hide file tree
Showing 32 changed files with 10,676 additions and 2,424 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-policysimulator</artifactId>
<version>v1alpha-rev20230806-2.0.0</version>
<version>v1alpha-rev20230904-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-policysimulator:v1alpha-rev20230806-2.0.0'
implementation 'com.google.apis:google-api-services-policysimulator:v1alpha-rev20230904-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.policysimulator.v1alpha.model;

/**
* A summary and comparison of the principal's access under the current (baseline) policies and the
* proposed (simulated) policies for a single access tuple.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Policy Simulator API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudPolicysimulatorV1alphaAccessStateDiff extends com.google.api.client.json.GenericJson {

/**
* How the principal's access, specified in the AccessState field, changed between the current
* (baseline) policies and proposed (simulated) policies.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String accessChange;

/**
* The results of evaluating the access tuple under the current (baseline) policies. If the
* AccessState couldn't be fully evaluated, this field explains why.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudPolicysimulatorV1alphaExplainedAccess baseline;

/**
* The results of evaluating the access tuple under the proposed (simulated) policies. If the
* AccessState couldn't be fully evaluated, this field explains why.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudPolicysimulatorV1alphaExplainedAccess simulated;

/**
* How the principal's access, specified in the AccessState field, changed between the current
* (baseline) policies and proposed (simulated) policies.
* @return value or {@code null} for none
*/
public java.lang.String getAccessChange() {
return accessChange;
}

/**
* How the principal's access, specified in the AccessState field, changed between the current
* (baseline) policies and proposed (simulated) policies.
* @param accessChange accessChange or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaAccessStateDiff setAccessChange(java.lang.String accessChange) {
this.accessChange = accessChange;
return this;
}

/**
* The results of evaluating the access tuple under the current (baseline) policies. If the
* AccessState couldn't be fully evaluated, this field explains why.
* @return value or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaExplainedAccess getBaseline() {
return baseline;
}

/**
* The results of evaluating the access tuple under the current (baseline) policies. If the
* AccessState couldn't be fully evaluated, this field explains why.
* @param baseline baseline or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaAccessStateDiff setBaseline(GoogleCloudPolicysimulatorV1alphaExplainedAccess baseline) {
this.baseline = baseline;
return this;
}

/**
* The results of evaluating the access tuple under the proposed (simulated) policies. If the
* AccessState couldn't be fully evaluated, this field explains why.
* @return value or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaExplainedAccess getSimulated() {
return simulated;
}

/**
* The results of evaluating the access tuple under the proposed (simulated) policies. If the
* AccessState couldn't be fully evaluated, this field explains why.
* @param simulated simulated or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaAccessStateDiff setSimulated(GoogleCloudPolicysimulatorV1alphaExplainedAccess simulated) {
this.simulated = simulated;
return this;
}

@Override
public GoogleCloudPolicysimulatorV1alphaAccessStateDiff set(String fieldName, Object value) {
return (GoogleCloudPolicysimulatorV1alphaAccessStateDiff) super.set(fieldName, value);
}

@Override
public GoogleCloudPolicysimulatorV1alphaAccessStateDiff clone() {
return (GoogleCloudPolicysimulatorV1alphaAccessStateDiff) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.policysimulator.v1alpha.model;

/**
* Information about the principal, resource, and permission to check.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Policy Simulator API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudPolicysimulatorV1alphaAccessTuple extends com.google.api.client.json.GenericJson {

/**
* Required. The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. For
* examples of full resource names for Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fullResourceName;

/**
* Required. The IAM permission to check for the specified principal and resource. For a complete
* list of IAM permissions, see https://cloud.google.com/iam/help/permissions/reference. For a
* complete list of predefined IAM roles and the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String permission;

/**
* Required. The principal whose access you want to check, in the form of the email address that
* represents that principal. For example, `[email protected]` or `my-service-account@my-
* project.iam.gserviceaccount.com`. The principal must be a Google Account or a service account.
* Other types of principals are not supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String principal;

/**
* Required. The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. For
* examples of full resource names for Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
* @return value or {@code null} for none
*/
public java.lang.String getFullResourceName() {
return fullResourceName;
}

/**
* Required. The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. For
* examples of full resource names for Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
* @param fullResourceName fullResourceName or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaAccessTuple setFullResourceName(java.lang.String fullResourceName) {
this.fullResourceName = fullResourceName;
return this;
}

/**
* Required. The IAM permission to check for the specified principal and resource. For a complete
* list of IAM permissions, see https://cloud.google.com/iam/help/permissions/reference. For a
* complete list of predefined IAM roles and the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
* @return value or {@code null} for none
*/
public java.lang.String getPermission() {
return permission;
}

/**
* Required. The IAM permission to check for the specified principal and resource. For a complete
* list of IAM permissions, see https://cloud.google.com/iam/help/permissions/reference. For a
* complete list of predefined IAM roles and the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
* @param permission permission or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaAccessTuple setPermission(java.lang.String permission) {
this.permission = permission;
return this;
}

/**
* Required. The principal whose access you want to check, in the form of the email address that
* represents that principal. For example, `[email protected]` or `my-service-account@my-
* project.iam.gserviceaccount.com`. The principal must be a Google Account or a service account.
* Other types of principals are not supported.
* @return value or {@code null} for none
*/
public java.lang.String getPrincipal() {
return principal;
}

/**
* Required. The principal whose access you want to check, in the form of the email address that
* represents that principal. For example, `[email protected]` or `my-service-account@my-
* project.iam.gserviceaccount.com`. The principal must be a Google Account or a service account.
* Other types of principals are not supported.
* @param principal principal or {@code null} for none
*/
public GoogleCloudPolicysimulatorV1alphaAccessTuple setPrincipal(java.lang.String principal) {
this.principal = principal;
return this;
}

@Override
public GoogleCloudPolicysimulatorV1alphaAccessTuple set(String fieldName, Object value) {
return (GoogleCloudPolicysimulatorV1alphaAccessTuple) super.set(fieldName, value);
}

@Override
public GoogleCloudPolicysimulatorV1alphaAccessTuple clone() {
return (GoogleCloudPolicysimulatorV1alphaAccessTuple) super.clone();
}

}
Loading

0 comments on commit 99bb66c

Please sign in to comment.