From 99bb66cbd20b2eadb78c923246b79da544d9c5c8 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Wed, 6 Sep 2023 22:18:15 -0400
Subject: [PATCH] chore: regenerate policysimulator client (#18021)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml
---
.../v1alpha/2.0.0/README.md | 4 +-
.../v1alpha/PolicySimulator.java | 4675 ++++++++++++-----
...PolicysimulatorV1alphaAccessStateDiff.java | 124 +
...loudPolicysimulatorV1alphaAccessTuple.java | 141 +
...icysimulatorV1alphaBindingExplanation.java | 264 +
...BindingExplanationAnnotatedMembership.java | 90 +
...PolicysimulatorV1alphaExplainedAccess.java | 124 +
...PolicysimulatorV1alphaExplainedPolicy.java | 204 +
...latorV1alphaListReplayResultsResponse.java | 93 +
...cysimulatorV1alphaListReplaysResponse.java | 93 +
...ogleCloudPolicysimulatorV1alphaReplay.java | 150 +
...oudPolicysimulatorV1alphaReplayConfig.java | 111 +
...CloudPolicysimulatorV1alphaReplayDiff.java | 74 +
...oudPolicysimulatorV1alphaReplayResult.java | 213 +
...ysimulatorV1alphaReplayResultsSummary.java | 186 +
.../v1alpha/2.0.0/pom.xml | 4 +-
.../v1beta/2.0.0/README.md | 4 +-
.../v1beta/PolicySimulator.java | 4675 ++++++++++++-----
...dPolicysimulatorV1betaAccessStateDiff.java | 124 +
...CloudPolicysimulatorV1betaAccessTuple.java | 141 +
...licysimulatorV1betaBindingExplanation.java | 264 +
...BindingExplanationAnnotatedMembership.java | 90 +
...dPolicysimulatorV1betaExplainedAccess.java | 124 +
...dPolicysimulatorV1betaExplainedPolicy.java | 204 +
...ulatorV1betaListReplayResultsResponse.java | 93 +
...icysimulatorV1betaListReplaysResponse.java | 93 +
...oogleCloudPolicysimulatorV1betaReplay.java | 150 +
...loudPolicysimulatorV1betaReplayConfig.java | 111 +
...eCloudPolicysimulatorV1betaReplayDiff.java | 74 +
...loudPolicysimulatorV1betaReplayResult.java | 213 +
...cysimulatorV1betaReplayResultsSummary.java | 186 +
.../v1beta/2.0.0/pom.xml | 4 +-
32 files changed, 10676 insertions(+), 2424 deletions(-)
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessStateDiff.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessTuple.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaBindingExplanation.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaExplainedAccess.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaExplainedPolicy.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaListReplaysResponse.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplay.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayConfig.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayDiff.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResult.java
create mode 100644 clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResultsSummary.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessStateDiff.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessTuple.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaBindingExplanation.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaExplainedAccess.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaExplainedPolicy.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaListReplayResultsResponse.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaListReplaysResponse.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplay.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayConfig.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayDiff.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResult.java
create mode 100644 clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResultsSummary.java
diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/README.md b/clients/google-api-services-policysimulator/v1alpha/2.0.0/README.md
index 32d6214ebed..b512df90bb2 100644
--- a/clients/google-api-services-policysimulator/v1alpha/2.0.0/README.md
+++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} - *+ * Create a request for the method "replays.create". * - * @return the resource collection + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class Create extends PolicySimulatorRequest
{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); + } } - public class Get extends PolicySimulatorRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$"); - } - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The parent resource where this Replay will be created. This resource must be a project, + folder, or organization with a location. Example: `projects/my-example-project/locations/global` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets the specified Replay. Each `Replay` is available for at least 7 days. + * + * Create a request for the method "replays.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get extends PolicySimulatorRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); + } } - public class List extends PolicySimulatorRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Replay to retrieve, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: + `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least + * 7 days. + * + * Create a request for the method "replays.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListReplaysResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - } - } - } - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * An accessor for creating requests from the Operations collection. + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource, in the following format: `{projects|folders|organizations + }/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only + `Replay` objects that are direct children of the provided parent are listed. In other words, + `Replay` objects that are children of a project will not be included when the parent is a folder of + that project. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values + above 1000 are rounded down to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Results collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Results.List request = policysimulator.results().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Results results() { + return new Results(); + } + + /** + * The "results" collection of methods. + */ + public class Results { + + /** + * Lists the results of running a Replay. + * + * Create a request for the method "results.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Replay whose results are listed, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: + `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; + values above 5000 are rounded down to 5000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to + retrieve the next page of results. When paginating, all other parameters provided to + [Simulator.ListReplayResults[] must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations/.*$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations/.*$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Organizations collection. * *The typical use is:
** {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + * {@code PolicySimulator.Organizations.List request = policysimulator.organizations().list(parameters ...)} ** * @return the resource collection */ - public Operations operations() { - return new Operations(); + public Organizations organizations() { + return new Organizations(); } - /** - * The "operations" collection of methods. - */ - public class Operations { + /** + * The "organizations" collection of methods. + */ + public class Organizations { + + /** + * An accessor for creating requests from the Locations collection. + * + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for the proposed + * changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are + * specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified + * changes. + * + * Create a request for the method "locations.orgPolicyViolationsPreviews". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link OrgPolicyViolationsPreviewsRequest#execute()} method to + * invoke the remote operation. + * + * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: + * `organizations/my-example-org/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview} + * @return the request + */ + public OrgPolicyViolationsPreviewsRequest orgPolicyViolationsPreviews(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview content) throws java.io.IOException { + OrgPolicyViolationsPreviewsRequest result = new OrgPolicyViolationsPreviewsRequest(parent, content); + initialize(result); + return result; + } + + public class OrgPolicyViolationsPreviewsRequest extends PolicySimulatorRequest
{@link OrgPolicyViolationsPreviewsRequest#initialize(com.googl + * e.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize + * this instance immediately after invoking the constructor.
+ * + * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: + * `organizations/my-example-org/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview} + * @since 1.13 + */ + protected OrgPolicyViolationsPreviewsRequest(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public OrgPolicyViolationsPreviewsRequest set$Xgafv(java.lang.String $Xgafv) { + return (OrgPolicyViolationsPreviewsRequest) super.set$Xgafv($Xgafv); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setAccessToken(java.lang.String accessToken) { + return (OrgPolicyViolationsPreviewsRequest) super.setAccessToken(accessToken); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setAlt(java.lang.String alt) { + return (OrgPolicyViolationsPreviewsRequest) super.setAlt(alt); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setCallback(java.lang.String callback) { + return (OrgPolicyViolationsPreviewsRequest) super.setCallback(callback); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setFields(java.lang.String fields) { + return (OrgPolicyViolationsPreviewsRequest) super.setFields(fields); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setKey(java.lang.String key) { + return (OrgPolicyViolationsPreviewsRequest) super.setKey(key); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setOauthToken(java.lang.String oauthToken) { + return (OrgPolicyViolationsPreviewsRequest) super.setOauthToken(oauthToken); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (OrgPolicyViolationsPreviewsRequest) super.setPrettyPrint(prettyPrint); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setQuotaUser(java.lang.String quotaUser) { + return (OrgPolicyViolationsPreviewsRequest) super.setQuotaUser(quotaUser); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setUploadType(java.lang.String uploadType) { + return (OrgPolicyViolationsPreviewsRequest) super.setUploadType(uploadType); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setUploadProtocol(java.lang.String uploadProtocol) { + return (OrgPolicyViolationsPreviewsRequest) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The organization under which this OrgPolicyViolationsPreview will be created. + * Example: `organizations/my-example-org/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: + `organizations/my-example-org/locations/global` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The organization under which this OrgPolicyViolationsPreview will be created. + * Example: `organizations/my-example-org/locations/global` + */ + public OrgPolicyViolationsPreviewsRequest setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public OrgPolicyViolationsPreviewsRequest set(String parameterName, Object value) { + return (OrgPolicyViolationsPreviewsRequest) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} + *+ * + * @return the resource collection + */ + public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { + return new OrgPolicyViolationsPreviews(); + } + + /** + * The "orgPolicyViolationsPreviews" collection of methods. + */ + public class OrgPolicyViolationsPreviews { + + /** + * GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each + * OrgPolicyViolationsPreview is available for at least 7 days. + * + * Create a request for the method "orgPolicyViolationsPreviews.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the policysimulator server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + /** Required. The name of the OrgPolicyViolationsPreview to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Get extends PolicySimulatorRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations/.*$"); + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent the violations are scoped to. Format: organizations/{organization} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent the violations are scoped to. Format: organizations/{organization} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent the violations are scoped to. Format: organizations/{organization} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent the violations are scoped to. Format: organizations/{organization} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of items to return. The service may return fewer than this value. If + * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 + * will be coerced to 10. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of items to return. The service may return fewer than this value. If + unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be + coerced to 10. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of items to return. The service may return fewer than this value. If + * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 + * will be coerced to 10. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When + paginating, all other parameters must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * The "operations" collection of methods. + */ + public class Operations { - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); + } + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations/.*$"); - } - this.name = name; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the policysimulator server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - public class List extends PolicySimulatorRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations$"); - } - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); + } + this.name = name; + return this; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + } + /** + * An accessor for creating requests from the OrgPolicyViolations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.OrgPolicyViolations.List request = policysimulator.orgPolicyViolations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public OrgPolicyViolations orgPolicyViolations() { + return new OrgPolicyViolations(); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * The "orgPolicyViolations" collection of methods. + */ + public class OrgPolicyViolations { - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an + * OrgPolicyViolationsPreview. + * + * Create a request for the method "orgPolicyViolations.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org + * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org + * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + } + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations$"); - } - this.name = name; - return this; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org + * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy + * ViolationsPreview} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{or + ganization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org + * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy + * ViolationsPreview} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + } + this.parent = parent; + return this; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * The maximum number of items to return. The service may return fewer than this value. + * If unspecified, at most 50 items will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** The maximum number of items to return. The service may return fewer than this value. If + unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will + be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - } + /** + * The maximum number of items to return. The service may return fewer than this value. + * If unspecified, at most 50 items will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * An accessor for creating requests from the Organizations collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Organizations.List request = policysimulator.organizations().list(parameters ...)} - *- * - * @return the resource collection - */ - public Organizations organizations() { - return new Organizations(); - } + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the + * page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * The "organizations" collection of methods. - */ - public class Organizations { + /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When + paginating, all other parameters must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * An accessor for creating requests from the Locations collection. - * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} - *- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the + * page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The "locations" collection of methods. - */ - public class Locations { + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + } + } /** - * GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for the proposed - * changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are - * specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified - * changes. - * - * Create a request for the method "locations.orgPolicyViolationsPreviews". + * An accessor for creating requests from the Replays collection. * - * This request holds the parameters needed by the policysimulator server. After setting any - * optional parameters, call the {@link OrgPolicyViolationsPreviewsRequest#execute()} method to - * invoke the remote operation. + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} + ** - * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: - * `organizations/my-example-org/locations/global` - * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview} - * @return the request + * @return the resource collection */ - public OrgPolicyViolationsPreviewsRequest orgPolicyViolationsPreviews(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview content) throws java.io.IOException { - OrgPolicyViolationsPreviewsRequest result = new OrgPolicyViolationsPreviewsRequest(parent, content); - initialize(result); - return result; + public Replays replays() { + return new Replays(); } - public class OrgPolicyViolationsPreviewsRequest extends PolicySimulatorRequest
{@link OrgPolicyViolationsPreviewsRequest#initialize(com.googl - * e.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize - * this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: - * `organizations/my-example-org/locations/global` - * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview} - * @since 1.13 + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay} + * @return the request */ - protected OrgPolicyViolationsPreviewsRequest(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview content) { - super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } + public Create create(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public OrgPolicyViolationsPreviewsRequest set$Xgafv(java.lang.String $Xgafv) { - return (OrgPolicyViolationsPreviewsRequest) super.set$Xgafv($Xgafv); - } + public class Create extends PolicySimulatorRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } - @Override - public OrgPolicyViolationsPreviewsRequest setFields(java.lang.String fields) { - return (OrgPolicyViolationsPreviewsRequest) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public OrgPolicyViolationsPreviewsRequest setKey(java.lang.String key) { - return (OrgPolicyViolationsPreviewsRequest) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public OrgPolicyViolationsPreviewsRequest setOauthToken(java.lang.String oauthToken) { - return (OrgPolicyViolationsPreviewsRequest) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public OrgPolicyViolationsPreviewsRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (OrgPolicyViolationsPreviewsRequest) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public OrgPolicyViolationsPreviewsRequest setQuotaUser(java.lang.String quotaUser) { - return (OrgPolicyViolationsPreviewsRequest) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public OrgPolicyViolationsPreviewsRequest setUploadType(java.lang.String uploadType) { - return (OrgPolicyViolationsPreviewsRequest) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public OrgPolicyViolationsPreviewsRequest setUploadProtocol(java.lang.String uploadProtocol) { - return (OrgPolicyViolationsPreviewsRequest) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** - * Required. The organization under which this OrgPolicyViolationsPreview will be created. - * Example: `organizations/my-example-org/locations/global` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: - `organizations/my-example-org/locations/global` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * Required. The organization under which this OrgPolicyViolationsPreview will be created. - * Example: `organizations/my-example-org/locations/global` - */ - public OrgPolicyViolationsPreviewsRequest setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public OrgPolicyViolationsPreviewsRequest set(String parameterName, Object value) { - return (OrgPolicyViolationsPreviewsRequest) super.set(parameterName, value); - } - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** - * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} - *- * - * @return the resource collection - */ - public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { - return new OrgPolicyViolationsPreviews(); - } + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * The "orgPolicyViolationsPreviews" collection of methods. - */ - public class OrgPolicyViolationsPreviews { + /** Required. The parent resource where this Replay will be created. This resource must be a project, + folder, or organization with a location. Example: `projects/my-example-project/locations/global` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } /** - * GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each - * OrgPolicyViolationsPreview is available for at least 7 days. + * Gets the specified Replay. Each `Replay` is available for at least 7 days. * - * Create a request for the method "orgPolicyViolationsPreviews.get". + * Create a request for the method "replays.get". * * This request holds the parameters needed by the policysimulator server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -1307,34 +2950,37 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends PolicySimulatorRequest
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` * @since 1.13 */ protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview.class); + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } } @@ -1403,22 +3049,37 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the OrgPolicyViolationsPreview to get. */ + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the OrgPolicyViolationsPreview to get. + /** Required. The name of the Replay to retrieve, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: + `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */ public java.lang.String getName() { return name; } - /** Required. The name of the OrgPolicyViolationsPreview to get. */ + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } this.name = name; return this; @@ -1430,15 +3091,20 @@ public Get set(String parameterName, Object value) { } } /** - * ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each - * OrgPolicyViolationsPreview is available for at least 7 days. + * Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least + * 7 days. * - * Create a request for the method "orgPolicyViolationsPreviews.list". + * Create a request for the method "replays.list". * * This request holds the parameters needed by the policysimulator server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent the violations are scoped to. Format: organizations/{organization} + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -1447,29 +3113,34 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends PolicySimulatorRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent the violations are scoped to. Format: organizations/{organization} + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. * @since 1.13 */ protected List(java.lang.String parent) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse.class); + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListReplaysResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1544,19 +3215,34 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent the violations are scoped to. Format: organizations/{organization} + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent the violations are scoped to. Format: organizations/{organization} + /** Required. The parent resource, in the following format: `{projects|folders|organizations + }/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only + `Replay` objects that are direct children of the provided parent are listed. In other words, + `Replay` objects that are children of a project will not be included when the parent is a folder of + that project. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent the violations are scoped to. Format: organizations/{organization} + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -1569,25 +3255,22 @@ public List setParent(java.lang.String parent) { } /** - * The maximum number of items to return. The service may return fewer than this value. If - * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 - * will be coerced to 10. + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of items to return. The service may return fewer than this value. If - unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be - coerced to 10. + /** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values + above 1000 are rounded down to 1000. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of items to return. The service may return fewer than this value. If - * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 - * will be coerced to 10. + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -1595,24 +3278,25 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the page - * token. + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When - paginating, all other parameters must match the call that provided the page token. + /** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match + the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the page - * token. + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -1668,7 +3352,7 @@ public class Get extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); } this.name = name; return this; } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the OrgPolicyViolations collection. + * An accessor for creating requests from the Results collection. * *The typical use is:
** {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.OrgPolicyViolations.List request = policysimulator.orgPolicyViolations().list(parameters ...)} + * {@code PolicySimulator.Results.List request = policysimulator.results().list(parameters ...)} ** * @return the resource collection */ - public OrgPolicyViolations orgPolicyViolations() { - return new OrgPolicyViolations(); + public Results results() { + return new Results(); } /** - * The "orgPolicyViolations" collection of methods. + * The "results" collection of methods. */ - public class OrgPolicyViolations { + public class Results { /** - * ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an - * OrgPolicyViolationsPreview. + * Lists the results of running a Replay. * - * Create a request for the method "orgPolicyViolations.list". + * Create a request for the method "results.list". * * This request holds the parameters needed by the policysimulator server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org - * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -1826,35 +3699,36 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends PolicySimulatorRequest
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org - * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` * @since 1.13 */ protected List(java.lang.String parent) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse.class); + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } } @@ -1924,55 +3798,55 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org - * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy - * ViolationsPreview} + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{or - ganization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + /** Required. The Replay whose results are listed, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: + `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */ public java.lang.String getParent() { return parent; } /** - * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org - * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy - * ViolationsPreview} + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } this.parent = parent; return this; } /** - * The maximum number of items to return. The service may return fewer than this value. - * If unspecified, at most 50 items will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of items to return. The service may return fewer than this value. If - unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will - be coerced to 1000. + /** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; + values above 5000 are rounded down to 5000. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of items to return. The service may return fewer than this value. - * If unspecified, at most 50 items will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -1980,24 +3854,27 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the - * page token. + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When - paginating, all other parameters must match the call that provided the page token. + /** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to + retrieve the next page of results. When paginating, all other parameters provided to + [Simulator.ListReplayResults[] must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the - * page token. + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -2012,25 +3889,68 @@ public List set(String parameterName, Object value) { } } + } + } + + /** + * An accessor for creating requests from the Projects collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Projects.List request = policysimulator.projects().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * An accessor for creating requests from the Locations collection. + * + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + /** - * An accessor for creating requests from the Replays collection. + * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. * *
The typical use is:
** {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} + * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} ** * @return the resource collection */ - public Replays replays() { - return new Replays(); + public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { + return new OrgPolicyViolationsPreviews(); } /** - * The "replays" collection of methods. + * The "orgPolicyViolationsPreviews" collection of methods. */ - public class Replays { + public class OrgPolicyViolationsPreviews { /** * An accessor for creating requests from the Operations collection. @@ -2075,7 +3995,7 @@ public class Get extends PolicySimulatorRequest
+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Replays replays() { + return new Replays(); + } + + /** + * The "replays" collection of methods. + */ + public class Replays { + + /** + * Creates and starts a Replay using the given ReplayConfig. + * + * Create a request for the method "replays.create". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends PolicySimulatorRequest
{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay} + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends PolicySimulatorRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); - } + protected Create(java.lang.String parent, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** Required. The parent resource where this Replay will be created. This resource must be a project, + folder, or organization with a location. Example: `projects/my-example-project/locations/global` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets the specified Replay. Each `Replay` is available for at least 7 days. + * + * Create a request for the method "replays.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + public class Get extends PolicySimulatorRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaReplay.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); } + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - } - } - } - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * An accessor for creating requests from the Projects collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Projects.List request = policysimulator.projects().list(parameters ...)} - *- * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * The "projects" collection of methods. - */ - public class Projects { + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * An accessor for creating requests from the Locations collection. - * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} - *- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * The "locations" collection of methods. - */ - public class Locations { + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. - * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} - *- * - * @return the resource collection - */ - public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { - return new OrgPolicyViolationsPreviews(); - } + /** Required. The name of the Replay to retrieve, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: + `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getName() { + return name; + } - /** - * The "orgPolicyViolationsPreviews" collection of methods. - */ - public class OrgPolicyViolationsPreviews { + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * An accessor for creating requests from the Operations collection. + * Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least + * 7 days. * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} - *+ * Create a request for the method "replays.list". * - * @return the resource collection + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @return the request */ - public Operations operations() { - return new Operations(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListReplaysResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - public class Get extends PolicySimulatorRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The parent resource, in the following format: `{projects|folders|organizations + }/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only + `Replay` objects that are direct children of the provided parent are listed. In other words, + `Replay` objects that are children of a project will not be included when the parent is a folder of + that project. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values + above 1000 are rounded down to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); - } - this.name = name; - return this; - } + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; } - } - } - /** - * An accessor for creating requests from the Replays collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} - *- * - * @return the resource collection - */ - public Replays replays() { - return new Replays(); - } + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The "replays" collection of methods. - */ - public class Replays { + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the Operations collection. @@ -2979,6 +5009,235 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Results collection. + * + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Results.List request = policysimulator.results().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Results results() { + return new Results(); + } + + /** + * The "results" collection of methods. + */ + public class Results { + + /** + * Lists the results of running a Replay. + * + * Create a request for the method "results.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1alpha.model.GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Replay whose results are listed, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: + `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; + values above 5000 are rounded down to 5000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to + retrieve the next page of results. When paginating, all other parameters provided to + [Simulator.ListReplayResults[] must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } } } } diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessStateDiff.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessStateDiff.java new file mode 100644 index 00000000000..dcdee267829 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessStateDiff.java @@ -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. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @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(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessTuple.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessTuple.java new file mode 100644 index 00000000000..bd17a9808b9 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaAccessTuple.java @@ -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. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @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, `alice@example.com` 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, `alice@example.com` 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, `alice@example.com` 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(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaBindingExplanation.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaBindingExplanation.java new file mode 100644 index 00000000000..a9a709bad0d --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaBindingExplanation.java @@ -0,0 +1,264 @@ +/* + * 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; + +/** + * Details about how a binding in a policy affects a principal's ability to use a permission. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaBindingExplanation extends com.google.api.client.json.GenericJson { + + /** + * Required. Indicates whether _this binding_ provides the specified permission to the specified + * principal for the specified resource. This field does _not_ indicate whether the principal + * actually has the permission for the resource. There might be another binding that overrides + * this binding. To determine whether the principal actually has the permission, use the `access` + * field in the TroubleshootIamPolicyResponse. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String access; + + /** + * A condition expression that prevents this binding from granting access unless the expression + * evaluates to `true`. To learn about IAM Conditions, see https://cloud.google.com/iam/docs + * /conditions-overview. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeExpr condition; + + /** + * Indicates whether each principal in the binding includes the principal specified in the + * request, either directly or indirectly. Each key identifies a principal in the binding, and + * each value indicates whether the principal in the binding includes the principal in the + * request. For example, suppose that a binding includes the following principals: * + * `user:alice@example.com` * `group:product-eng@example.com` The principal in the replayed access + * tuple is `user:bob@example.com`. This user is a principal of the group `group:product- + * eng@example.com`. For the first principal in the binding, the key is `user:alice@example.com`, + * and the `membership` field in the value is set to `MEMBERSHIP_NOT_INCLUDED`. For the second + * principal in the binding, the key is `group:product-eng@example.com`, and the `membership` + * field in the value is set to `MEMBERSHIP_INCLUDED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether the binding includes the principal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String membership; + + /** + * The relevance of the principal's status to the overall determination for the binding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String relevance; + + /** + * Indicates whether the binding includes the principal. + * @return value or {@code null} for none + */ + public java.lang.String getMembership() { + return membership; + } + + /** + * Indicates whether the binding includes the principal. + * @param membership membership or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership setMembership(java.lang.String membership) { + this.membership = membership; + return this; + } + + /** + * The relevance of the principal's status to the overall determination for the binding. + * @return value or {@code null} for none + */ + public java.lang.String getRelevance() { + return relevance; + } + + /** + * The relevance of the principal's status to the overall determination for the binding. + * @param relevance relevance or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership setRelevance(java.lang.String relevance) { + this.relevance = relevance; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership clone() { + return (GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaExplainedAccess.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaExplainedAccess.java new file mode 100644 index 00000000000..a46d3163f0a --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaExplainedAccess.java @@ -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; + +/** + * Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState + * when replaying an access tuple. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaExplainedAccess extends com.google.api.client.json.GenericJson { + + /** + * Whether the principal in the access tuple has permission to access the resource in the access + * tuple under the given policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessState; + + /** + * If the AccessState is `UNKNOWN`, this field contains a list of errors explaining why the result + * is `UNKNOWN`. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is omitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaExplainedPolicy extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether _this policy_ provides the specified permission to the specified principal + * for the specified resource. This field does _not_ indicate whether the principal actually has + * the permission for the resource. There might be another policy that overrides this policy. To + * determine whether the principal actually has the permission, use the `access` field in the + * TroubleshootIamPolicyResponse. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String access; + + /** + * Details about how each binding in the policy affects the principal's ability, or inability, to + * use the permission for the resource. If the user who created the Replay does not have access to + * the policy, this field is omitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaListReplayResultsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that you can use to retrieve the next page of ReplayResult objects. If this field is + * omitted, there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The results of running a Replay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaListReplaysResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that you can use to retrieve the next page of results. If this field is omitted, there + * are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of Replay objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaReplay extends com.google.api.client.json.GenericJson { + + /** + * Required. The configuration used for the `Replay`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1alphaReplayConfig config; + + /** + * Output only. The resource name of the `Replay`, which has the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + * `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. + * Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Summary statistics about the replayed log entries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1alphaReplayResultsSummary resultsSummary; + + /** + * Output only. The current state of the `Replay`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. The configuration used for the `Replay`. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayConfig getConfig() { + return config; + } + + /** + * Required. The configuration used for the `Replay`. + * @param config config or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplay setConfig(GoogleCloudPolicysimulatorV1alphaReplayConfig config) { + this.config = config; + return this; + } + + /** + * Output only. The resource name of the `Replay`, which has the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + * `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. + * Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The resource name of the `Replay`, which has the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + * `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. + * Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @param name name or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplay setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Summary statistics about the replayed log entries. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary getResultsSummary() { + return resultsSummary; + } + + /** + * Output only. Summary statistics about the replayed log entries. + * @param resultsSummary resultsSummary or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplay setResultsSummary(GoogleCloudPolicysimulatorV1alphaReplayResultsSummary resultsSummary) { + this.resultsSummary = resultsSummary; + return this; + } + + /** + * Output only. The current state of the `Replay`. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the `Replay`. + * @param state state or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplay setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplay set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1alphaReplay) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplay clone() { + return (GoogleCloudPolicysimulatorV1alphaReplay) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayConfig.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayConfig.java new file mode 100644 index 00000000000..ffe328f3dc7 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayConfig.java @@ -0,0 +1,111 @@ +/* + * 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; + +/** + * The configuration used for a Replay. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaReplayConfig extends com.google.api.client.json.GenericJson { + + /** + * The logs to use as input for the Replay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logSource; + + /** + * A mapping of the resources that you want to simulate policies for and the policies that you + * want to simulate. Keys are the full resource names for the resources. For example, + * `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of full resource + * names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full- + * resource-names. Values are Policy objects representing the policies that you want to simulate. + * Replays automatically take into account any IAM policies inherited through the resource + * hierarchy, and any policies set on descendant resources. You do not need to include these + * policies in the policy overlay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaReplayDiff extends com.google.api.client.json.GenericJson { + + /** + * A summary and comparison of the principal's access under the current (baseline) policies and + * the proposed (simulated) policies for a single access tuple. The evaluation of the principal's + * access is reported in the AccessState field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1alphaAccessStateDiff accessDiff; + + /** + * A summary and comparison of the principal's access under the current (baseline) policies and + * the proposed (simulated) policies for a single access tuple. The evaluation of the principal's + * access is reported in the AccessState field. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaAccessStateDiff getAccessDiff() { + return accessDiff; + } + + /** + * A summary and comparison of the principal's access under the current (baseline) policies and + * the proposed (simulated) policies for a single access tuple. The evaluation of the principal's + * access is reported in the AccessState field. + * @param accessDiff accessDiff or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayDiff setAccessDiff(GoogleCloudPolicysimulatorV1alphaAccessStateDiff accessDiff) { + this.accessDiff = accessDiff; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplayDiff set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1alphaReplayDiff) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplayDiff clone() { + return (GoogleCloudPolicysimulatorV1alphaReplayDiff) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResult.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResult.java new file mode 100644 index 00000000000..3820f3dd963 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResult.java @@ -0,0 +1,213 @@ +/* + * 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; + +/** + * The result of replaying a single access tuple against a simulated state. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaReplayResult extends com.google.api.client.json.GenericJson { + + /** + * The access tuple that was replayed. This field includes information about the principal, + * resource, and permission that were involved in the access attempt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1alphaAccessTuple accessTuple; + + /** + * The difference between the principal's access under the current (baseline) policies and the + * principal's access under the proposed (simulated) policies. This field is only included for + * access tuples that were successfully replayed and had different results under the current + * policies and the proposed policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1alphaReplayDiff diff; + + /** + * The error that caused the access tuple replay to fail. This field is only included for access + * tuples that were not replayed successfully. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleRpcStatus error; + + /** + * The latest date this access tuple was seen in the logs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate lastSeenDate; + + /** + * The resource name of the `ReplayResult`, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results + * /{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization + * that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f- + * 38ce-4d7d-8e03-479ce1833c36/results/1234` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The Replay that the access tuple was included in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * The access tuple that was replayed. This field includes information about the principal, + * resource, and permission that were involved in the access attempt. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaAccessTuple getAccessTuple() { + return accessTuple; + } + + /** + * The access tuple that was replayed. This field includes information about the principal, + * resource, and permission that were involved in the access attempt. + * @param accessTuple accessTuple or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResult setAccessTuple(GoogleCloudPolicysimulatorV1alphaAccessTuple accessTuple) { + this.accessTuple = accessTuple; + return this; + } + + /** + * The difference between the principal's access under the current (baseline) policies and the + * principal's access under the proposed (simulated) policies. This field is only included for + * access tuples that were successfully replayed and had different results under the current + * policies and the proposed policies. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayDiff getDiff() { + return diff; + } + + /** + * The difference between the principal's access under the current (baseline) policies and the + * principal's access under the proposed (simulated) policies. This field is only included for + * access tuples that were successfully replayed and had different results under the current + * policies and the proposed policies. + * @param diff diff or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResult setDiff(GoogleCloudPolicysimulatorV1alphaReplayDiff diff) { + this.diff = diff; + return this; + } + + /** + * The error that caused the access tuple replay to fail. This field is only included for access + * tuples that were not replayed successfully. + * @return value or {@code null} for none + */ + public GoogleRpcStatus getError() { + return error; + } + + /** + * The error that caused the access tuple replay to fail. This field is only included for access + * tuples that were not replayed successfully. + * @param error error or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResult setError(GoogleRpcStatus error) { + this.error = error; + return this; + } + + /** + * The latest date this access tuple was seen in the logs. + * @return value or {@code null} for none + */ + public GoogleTypeDate getLastSeenDate() { + return lastSeenDate; + } + + /** + * The latest date this access tuple was seen in the logs. + * @param lastSeenDate lastSeenDate or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResult setLastSeenDate(GoogleTypeDate lastSeenDate) { + this.lastSeenDate = lastSeenDate; + return this; + } + + /** + * The resource name of the `ReplayResult`, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results + * /{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization + * that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f- + * 38ce-4d7d-8e03-479ce1833c36/results/1234` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The resource name of the `ReplayResult`, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results + * /{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization + * that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f- + * 38ce-4d7d-8e03-479ce1833c36/results/1234` + * @param name name or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResult setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The Replay that the access tuple was included in. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The Replay that the access tuple was included in. + * @param parent parent or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResult setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplayResult set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1alphaReplayResult) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplayResult clone() { + return (GoogleCloudPolicysimulatorV1alphaReplayResult) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResultsSummary.java b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResultsSummary.java new file mode 100644 index 00000000000..b4b8b3ce067 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/com/google/api/services/policysimulator/v1alpha/model/GoogleCloudPolicysimulatorV1alphaReplayResultsSummary.java @@ -0,0 +1,186 @@ +/* + * 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; + +/** + * Summary statistics about the replayed log entries. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1alphaReplayResultsSummary extends com.google.api.client.json.GenericJson { + + /** + * The number of replayed log entries with a difference between baseline and simulated policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer differenceCount; + + /** + * The number of log entries that could not be replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer errorCount; + + /** + * The total number of log entries replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer logCount; + + /** + * The date of the newest log entry replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate newestDate; + + /** + * The date of the oldest log entry replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate oldestDate; + + /** + * The number of replayed log entries with no difference between baseline and simulated policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unchangedCount; + + /** + * The number of replayed log entries with a difference between baseline and simulated policies. + * @return value or {@code null} for none + */ + public java.lang.Integer getDifferenceCount() { + return differenceCount; + } + + /** + * The number of replayed log entries with a difference between baseline and simulated policies. + * @param differenceCount differenceCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary setDifferenceCount(java.lang.Integer differenceCount) { + this.differenceCount = differenceCount; + return this; + } + + /** + * The number of log entries that could not be replayed. + * @return value or {@code null} for none + */ + public java.lang.Integer getErrorCount() { + return errorCount; + } + + /** + * The number of log entries that could not be replayed. + * @param errorCount errorCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary setErrorCount(java.lang.Integer errorCount) { + this.errorCount = errorCount; + return this; + } + + /** + * The total number of log entries replayed. + * @return value or {@code null} for none + */ + public java.lang.Integer getLogCount() { + return logCount; + } + + /** + * The total number of log entries replayed. + * @param logCount logCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary setLogCount(java.lang.Integer logCount) { + this.logCount = logCount; + return this; + } + + /** + * The date of the newest log entry replayed. + * @return value or {@code null} for none + */ + public GoogleTypeDate getNewestDate() { + return newestDate; + } + + /** + * The date of the newest log entry replayed. + * @param newestDate newestDate or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary setNewestDate(GoogleTypeDate newestDate) { + this.newestDate = newestDate; + return this; + } + + /** + * The date of the oldest log entry replayed. + * @return value or {@code null} for none + */ + public GoogleTypeDate getOldestDate() { + return oldestDate; + } + + /** + * The date of the oldest log entry replayed. + * @param oldestDate oldestDate or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary setOldestDate(GoogleTypeDate oldestDate) { + this.oldestDate = oldestDate; + return this; + } + + /** + * The number of replayed log entries with no difference between baseline and simulated policies. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnchangedCount() { + return unchangedCount; + } + + /** + * The number of replayed log entries with no difference between baseline and simulated policies. + * @param unchangedCount unchangedCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary setUnchangedCount(java.lang.Integer unchangedCount) { + this.unchangedCount = unchangedCount; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1alphaReplayResultsSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1alphaReplayResultsSummary clone() { + return (GoogleCloudPolicysimulatorV1alphaReplayResultsSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1alpha/2.0.0/pom.xml b/clients/google-api-services-policysimulator/v1alpha/2.0.0/pom.xml index 69a2f453d43..dcab9f031ec 100644 --- a/clients/google-api-services-policysimulator/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-policysimulator/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} - *+ * Create a request for the method "replays.create". * - * @return the resource collection + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class Create extends PolicySimulatorRequest
{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); + } } - public class Get extends PolicySimulatorRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$"); - } - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The parent resource where this Replay will be created. This resource must be a project, + folder, or organization with a location. Example: `projects/my-example-project/locations/global` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets the specified Replay. Each `Replay` is available for at least 7 days. + * + * Create a request for the method "replays.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get extends PolicySimulatorRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); + } } - public class List extends PolicySimulatorRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Replay to retrieve, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: + `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least + * 7 days. + * + * Create a request for the method "replays.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListReplaysResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - } - } - } - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * An accessor for creating requests from the Operations collection. + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource, in the following format: `{projects|folders|organizations + }/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only + `Replay` objects that are direct children of the provided parent are listed. In other words, + `Replay` objects that are children of a project will not be included when the parent is a folder of + that project. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values + above 1000 are rounded down to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Results collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Results.List request = policysimulator.results().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Results results() { + return new Results(); + } + + /** + * The "results" collection of methods. + */ + public class Results { + + /** + * Lists the results of running a Replay. + * + * Create a request for the method "results.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListReplayResultsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Replay whose results are listed, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: + `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; + values above 5000 are rounded down to 5000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to + retrieve the next page of results. When paginating, all other parameters provided to + [Simulator.ListReplayResults[] must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations/.*$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations/.*$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Organizations collection. * *The typical use is:
** {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + * {@code PolicySimulator.Organizations.List request = policysimulator.organizations().list(parameters ...)} ** * @return the resource collection */ - public Operations operations() { - return new Operations(); + public Organizations organizations() { + return new Organizations(); } - /** - * The "operations" collection of methods. - */ - public class Operations { + /** + * The "organizations" collection of methods. + */ + public class Organizations { + + /** + * An accessor for creating requests from the Locations collection. + * + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for the proposed + * changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are + * specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified + * changes. + * + * Create a request for the method "locations.orgPolicyViolationsPreviews". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link OrgPolicyViolationsPreviewsRequest#execute()} method to + * invoke the remote operation. + * + * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: + * `organizations/my-example-org/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview} + * @return the request + */ + public OrgPolicyViolationsPreviewsRequest orgPolicyViolationsPreviews(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview content) throws java.io.IOException { + OrgPolicyViolationsPreviewsRequest result = new OrgPolicyViolationsPreviewsRequest(parent, content); + initialize(result); + return result; + } + + public class OrgPolicyViolationsPreviewsRequest extends PolicySimulatorRequest
{@link OrgPolicyViolationsPreviewsRequest#initialize(com.googl + * e.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize + * this instance immediately after invoking the constructor.
+ * + * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: + * `organizations/my-example-org/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview} + * @since 1.13 + */ + protected OrgPolicyViolationsPreviewsRequest(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public OrgPolicyViolationsPreviewsRequest set$Xgafv(java.lang.String $Xgafv) { + return (OrgPolicyViolationsPreviewsRequest) super.set$Xgafv($Xgafv); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setAccessToken(java.lang.String accessToken) { + return (OrgPolicyViolationsPreviewsRequest) super.setAccessToken(accessToken); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setAlt(java.lang.String alt) { + return (OrgPolicyViolationsPreviewsRequest) super.setAlt(alt); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setCallback(java.lang.String callback) { + return (OrgPolicyViolationsPreviewsRequest) super.setCallback(callback); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setFields(java.lang.String fields) { + return (OrgPolicyViolationsPreviewsRequest) super.setFields(fields); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setKey(java.lang.String key) { + return (OrgPolicyViolationsPreviewsRequest) super.setKey(key); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setOauthToken(java.lang.String oauthToken) { + return (OrgPolicyViolationsPreviewsRequest) super.setOauthToken(oauthToken); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (OrgPolicyViolationsPreviewsRequest) super.setPrettyPrint(prettyPrint); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setQuotaUser(java.lang.String quotaUser) { + return (OrgPolicyViolationsPreviewsRequest) super.setQuotaUser(quotaUser); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setUploadType(java.lang.String uploadType) { + return (OrgPolicyViolationsPreviewsRequest) super.setUploadType(uploadType); + } + + @Override + public OrgPolicyViolationsPreviewsRequest setUploadProtocol(java.lang.String uploadProtocol) { + return (OrgPolicyViolationsPreviewsRequest) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The organization under which this OrgPolicyViolationsPreview will be created. + * Example: `organizations/my-example-org/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: + `organizations/my-example-org/locations/global` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The organization under which this OrgPolicyViolationsPreview will be created. + * Example: `organizations/my-example-org/locations/global` + */ + public OrgPolicyViolationsPreviewsRequest setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public OrgPolicyViolationsPreviewsRequest set(String parameterName, Object value) { + return (OrgPolicyViolationsPreviewsRequest) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} + *+ * + * @return the resource collection + */ + public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { + return new OrgPolicyViolationsPreviews(); + } + + /** + * The "orgPolicyViolationsPreviews" collection of methods. + */ + public class OrgPolicyViolationsPreviews { + + /** + * GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each + * OrgPolicyViolationsPreview is available for at least 7 days. + * + * Create a request for the method "orgPolicyViolationsPreviews.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the policysimulator server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + /** Required. The name of the OrgPolicyViolationsPreview to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Get extends PolicySimulatorRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations/.*$"); + public class List extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent the violations are scoped to. Format: organizations/{organization} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent the violations are scoped to. Format: organizations/{organization} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent the violations are scoped to. Format: organizations/{organization} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent the violations are scoped to. Format: organizations/{organization} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of items to return. The service may return fewer than this value. If + * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 + * will be coerced to 10. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of items to return. The service may return fewer than this value. If + unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be + coerced to 10. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of items to return. The service may return fewer than this value. If + * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 + * will be coerced to 10. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When + paginating, all other parameters must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * The "operations" collection of methods. + */ + public class Operations { - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + public class Get extends PolicySimulatorRequest
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); + } + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations/.*$"); - } - this.name = name; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the policysimulator server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - public class List extends PolicySimulatorRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations$"); - } - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); + } + this.name = name; + return this; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + } + /** + * An accessor for creating requests from the OrgPolicyViolations collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.OrgPolicyViolations.List request = policysimulator.orgPolicyViolations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public OrgPolicyViolations orgPolicyViolations() { + return new OrgPolicyViolations(); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * The "orgPolicyViolations" collection of methods. + */ + public class OrgPolicyViolations { - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an + * OrgPolicyViolationsPreview. + * + * Create a request for the method "orgPolicyViolations.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org + * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org + * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + } + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^operations$"); - } - this.name = name; - return this; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org + * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy + * ViolationsPreview} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{or + ganization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org + * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy + * ViolationsPreview} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + } + this.parent = parent; + return this; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * The maximum number of items to return. The service may return fewer than this value. + * If unspecified, at most 50 items will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** The maximum number of items to return. The service may return fewer than this value. If + unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will + be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - } + /** + * The maximum number of items to return. The service may return fewer than this value. + * If unspecified, at most 50 items will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * An accessor for creating requests from the Organizations collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Organizations.List request = policysimulator.organizations().list(parameters ...)} - *- * - * @return the resource collection - */ - public Organizations organizations() { - return new Organizations(); - } + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the + * page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * The "organizations" collection of methods. - */ - public class Organizations { + /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When + paginating, all other parameters must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * An accessor for creating requests from the Locations collection. - * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} - *- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + /** + * A page token, received from a previous call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters must match the call that provided the + * page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The "locations" collection of methods. - */ - public class Locations { + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + } + } /** - * GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for the proposed - * changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are - * specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified - * changes. - * - * Create a request for the method "locations.orgPolicyViolationsPreviews". + * An accessor for creating requests from the Replays collection. * - * This request holds the parameters needed by the policysimulator server. After setting any - * optional parameters, call the {@link OrgPolicyViolationsPreviewsRequest#execute()} method to - * invoke the remote operation. + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} + ** - * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: - * `organizations/my-example-org/locations/global` - * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview} - * @return the request + * @return the resource collection */ - public OrgPolicyViolationsPreviewsRequest orgPolicyViolationsPreviews(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview content) throws java.io.IOException { - OrgPolicyViolationsPreviewsRequest result = new OrgPolicyViolationsPreviewsRequest(parent, content); - initialize(result); - return result; + public Replays replays() { + return new Replays(); } - public class OrgPolicyViolationsPreviewsRequest extends PolicySimulatorRequest
{@link OrgPolicyViolationsPreviewsRequest#initialize(com.googl - * e.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize - * this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: - * `organizations/my-example-org/locations/global` - * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview} - * @since 1.13 + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay} + * @return the request */ - protected OrgPolicyViolationsPreviewsRequest(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview content) { - super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } + public Create create(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public OrgPolicyViolationsPreviewsRequest set$Xgafv(java.lang.String $Xgafv) { - return (OrgPolicyViolationsPreviewsRequest) super.set$Xgafv($Xgafv); - } + public class Create extends PolicySimulatorRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } - @Override - public OrgPolicyViolationsPreviewsRequest setFields(java.lang.String fields) { - return (OrgPolicyViolationsPreviewsRequest) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public OrgPolicyViolationsPreviewsRequest setKey(java.lang.String key) { - return (OrgPolicyViolationsPreviewsRequest) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public OrgPolicyViolationsPreviewsRequest setOauthToken(java.lang.String oauthToken) { - return (OrgPolicyViolationsPreviewsRequest) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public OrgPolicyViolationsPreviewsRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (OrgPolicyViolationsPreviewsRequest) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public OrgPolicyViolationsPreviewsRequest setQuotaUser(java.lang.String quotaUser) { - return (OrgPolicyViolationsPreviewsRequest) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public OrgPolicyViolationsPreviewsRequest setUploadType(java.lang.String uploadType) { - return (OrgPolicyViolationsPreviewsRequest) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public OrgPolicyViolationsPreviewsRequest setUploadProtocol(java.lang.String uploadProtocol) { - return (OrgPolicyViolationsPreviewsRequest) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** - * Required. The organization under which this OrgPolicyViolationsPreview will be created. - * Example: `organizations/my-example-org/locations/global` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: - `organizations/my-example-org/locations/global` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * Required. The organization under which this OrgPolicyViolationsPreview will be created. - * Example: `organizations/my-example-org/locations/global` - */ - public OrgPolicyViolationsPreviewsRequest setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public OrgPolicyViolationsPreviewsRequest set(String parameterName, Object value) { - return (OrgPolicyViolationsPreviewsRequest) super.set(parameterName, value); - } - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** - * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} - *- * - * @return the resource collection - */ - public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { - return new OrgPolicyViolationsPreviews(); - } + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * The "orgPolicyViolationsPreviews" collection of methods. - */ - public class OrgPolicyViolationsPreviews { + /** Required. The parent resource where this Replay will be created. This resource must be a project, + folder, or organization with a location. Example: `projects/my-example-project/locations/global` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } /** - * GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each - * OrgPolicyViolationsPreview is available for at least 7 days. + * Gets the specified Replay. Each `Replay` is available for at least 7 days. * - * Create a request for the method "orgPolicyViolationsPreviews.get". + * Create a request for the method "replays.get". * * This request holds the parameters needed by the policysimulator server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -1307,34 +2950,37 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends PolicySimulatorRequest
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the OrgPolicyViolationsPreview to get. + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` * @since 1.13 */ protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview.class); + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } } @@ -1403,22 +3049,37 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the OrgPolicyViolationsPreview to get. */ + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the OrgPolicyViolationsPreview to get. + /** Required. The name of the Replay to retrieve, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: + `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */ public java.lang.String getName() { return name; } - /** Required. The name of the OrgPolicyViolationsPreview to get. */ + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } this.name = name; return this; @@ -1430,15 +3091,20 @@ public Get set(String parameterName, Object value) { } } /** - * ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each - * OrgPolicyViolationsPreview is available for at least 7 days. + * Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least + * 7 days. * - * Create a request for the method "orgPolicyViolationsPreviews.list". + * Create a request for the method "replays.list". * * This request holds the parameters needed by the policysimulator server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent the violations are scoped to. Format: organizations/{organization} + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -1447,29 +3113,34 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends PolicySimulatorRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent the violations are scoped to. Format: organizations/{organization} + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. * @since 1.13 */ protected List(java.lang.String parent) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse.class); + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListReplaysResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1544,19 +3215,34 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent the violations are scoped to. Format: organizations/{organization} + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent the violations are scoped to. Format: organizations/{organization} + /** Required. The parent resource, in the following format: `{projects|folders|organizations + }/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only + `Replay` objects that are direct children of the provided parent are listed. In other words, + `Replay` objects that are children of a project will not be included when the parent is a folder of + that project. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent the violations are scoped to. Format: organizations/{organization} + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -1569,25 +3255,22 @@ public List setParent(java.lang.String parent) { } /** - * The maximum number of items to return. The service may return fewer than this value. If - * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 - * will be coerced to 10. + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of items to return. The service may return fewer than this value. If - unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be - coerced to 10. + /** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values + above 1000 are rounded down to 1000. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of items to return. The service may return fewer than this value. If - * unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 - * will be coerced to 10. + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -1595,24 +3278,25 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the page - * token. + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When - paginating, all other parameters must match the call that provided the page token. + /** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match + the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the page - * token. + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -1668,7 +3352,7 @@ public class Get extends PolicySimulatorRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); } this.name = name; return this; } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the OrgPolicyViolations collection. + * An accessor for creating requests from the Results collection. * *The typical use is:
** {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.OrgPolicyViolations.List request = policysimulator.orgPolicyViolations().list(parameters ...)} + * {@code PolicySimulator.Results.List request = policysimulator.results().list(parameters ...)} ** * @return the resource collection */ - public OrgPolicyViolations orgPolicyViolations() { - return new OrgPolicyViolations(); + public Results results() { + return new Results(); } /** - * The "orgPolicyViolations" collection of methods. + * The "results" collection of methods. */ - public class OrgPolicyViolations { + public class Results { /** - * ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an - * OrgPolicyViolationsPreview. + * Lists the results of running a Replay. * - * Create a request for the method "orgPolicyViolations.list". + * Create a request for the method "results.list". * * This request holds the parameters needed by the policysimulator server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org - * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -1826,35 +3699,36 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends PolicySimulatorRequest
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{org - * anization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` * @since 1.13 */ protected List(java.lang.String parent) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse.class); + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListReplayResultsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } } @@ -1924,55 +3798,55 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org - * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy - * ViolationsPreview} + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{or - ganization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} + /** Required. The Replay whose results are listed, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: + `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */ public java.lang.String getParent() { return parent; } /** - * Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: org - * anizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicy - * ViolationsPreview} + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/replays/[^/]+$"); } this.parent = parent; return this; } /** - * The maximum number of items to return. The service may return fewer than this value. - * If unspecified, at most 50 items will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of items to return. The service may return fewer than this value. If - unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will - be coerced to 1000. + /** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; + values above 5000 are rounded down to 5000. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of items to return. The service may return fewer than this value. - * If unspecified, at most 50 items will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -1980,24 +3854,27 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the - * page token. + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous call. Provide this to retrieve the subsequent page. When - paginating, all other parameters must match the call that provided the page token. + /** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to + retrieve the next page of results. When paginating, all other parameters provided to + [Simulator.ListReplayResults[] must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters must match the call that provided the - * page token. + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -2012,25 +3889,68 @@ public List set(String parameterName, Object value) { } } + } + } + + /** + * An accessor for creating requests from the Projects collection. + * + *The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Projects.List request = policysimulator.projects().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * An accessor for creating requests from the Locations collection. + * + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + /** - * An accessor for creating requests from the Replays collection. + * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. * *
The typical use is:
** {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} + * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} ** * @return the resource collection */ - public Replays replays() { - return new Replays(); + public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { + return new OrgPolicyViolationsPreviews(); } /** - * The "replays" collection of methods. + * The "orgPolicyViolationsPreviews" collection of methods. */ - public class Replays { + public class OrgPolicyViolationsPreviews { /** * An accessor for creating requests from the Operations collection. @@ -2075,7 +3995,7 @@ public class Get extends PolicySimulatorRequest
+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Replays replays() { + return new Replays(); + } + + /** + * The "replays" collection of methods. + */ + public class Replays { + + /** + * Creates and starts a Replay using the given ReplayConfig. + * + * Create a request for the method "replays.create". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends PolicySimulatorRequest
{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param parent Required. The parent resource where this Replay will be created. This resource must be a project, + * folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + * @param content the {@link com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay} + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends PolicySimulatorRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$"); - } + protected Create(java.lang.String parent, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay content) { + super(PolicySimulator.this, "POST", REST_PATH, content, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** Required. The parent resource where this Replay will be created. This resource must be a project, + folder, or organization with a location. Example: `projects/my-example-project/locations/global` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this Replay will be created. This resource must be + * a project, folder, or organization with a location. Example: `projects/my-example- + * project/locations/global` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets the specified Replay. Each `Replay` is available for at least 7 days. + * + * Create a request for the method "replays.get". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + public class Get extends PolicySimulatorRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaReplay.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); } + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - } - } - } - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * An accessor for creating requests from the Projects collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Projects.List request = policysimulator.projects().list(parameters ...)} - *- * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * The "projects" collection of methods. - */ - public class Projects { + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * An accessor for creating requests from the Locations collection. - * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Locations.List request = policysimulator.locations().list(parameters ...)} - *- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * The "locations" collection of methods. - */ - public class Locations { + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An accessor for creating requests from the OrgPolicyViolationsPreviews collection. - * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.OrgPolicyViolationsPreviews.List request = policysimulator.orgPolicyViolationsPreviews().list(parameters ...)} - *- * - * @return the resource collection - */ - public OrgPolicyViolationsPreviews orgPolicyViolationsPreviews() { - return new OrgPolicyViolationsPreviews(); - } + /** Required. The name of the Replay to retrieve, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: + `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getName() { + return name; + } - /** - * The "orgPolicyViolationsPreviews" collection of methods. - */ - public class OrgPolicyViolationsPreviews { + /** + * Required. The name of the Replay to retrieve, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, + * where `{resource-id}` is the ID of the project, folder, or organization that owns the + * `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce- + * 4d7d-8e03-479ce1833c36` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * An accessor for creating requests from the Operations collection. + * Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least + * 7 days. * - *
The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Operations.List request = policysimulator.operations().list(parameters ...)} - *+ * Create a request for the method "replays.list". * - * @return the resource collection + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @return the request */ - public Operations operations() { - return new Operations(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param parent Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource- + * id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + * organization that owns the Replay. Example: `projects/my-example-project/locations/global` + * Only `Replay` objects that are direct children of the provided parent are listed. In other + * words, `Replay` objects that are children of a project will not be included when the + * parent is a folder of that project. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListReplaysResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - public class Get extends PolicySimulatorRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The parent resource, in the following format: `{projects|folders|organizations + }/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or + organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only + `Replay` objects that are direct children of the provided parent are listed. In other words, + `Replay` objects that are children of a project will not be included when the parent is a folder of + that project. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Required. The parent resource, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource- + * id}` is the ID of the project, folder, or organization that owns the Replay. Example: + * `projects/my-example-project/locations/global` Only `Replay` objects that are direct + * children of the provided parent are listed. In other words, `Replay` objects that are + * children of a project will not be included when the parent is a folder of that project. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values + above 1000 are rounded down to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$"); - } - this.name = name; - return this; - } + /** + * The maximum number of Replay objects to return. Defaults to 50. The maximum value is + * 1000; values above 1000 are rounded down to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; } - } - } - /** - * An accessor for creating requests from the Replays collection. - * - *The typical use is:
- *- * {@code PolicySimulator policysimulator = new PolicySimulator(...);} - * {@code PolicySimulator.Replays.List request = policysimulator.replays().list(parameters ...)} - *- * - * @return the resource collection - */ - public Replays replays() { - return new Replays(); - } + /** + * A page token, received from a previous Simulator.ListReplays call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * Simulator.ListReplays must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The "replays" collection of methods. - */ - public class Replays { + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the Operations collection. @@ -2979,6 +5009,235 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Results collection. + * + *
The typical use is:
+ *+ * {@code PolicySimulator policysimulator = new PolicySimulator(...);} + * {@code PolicySimulator.Results.List request = policysimulator.results().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Results results() { + return new Results(); + } + + /** + * The "results" collection of methods. + */ + public class Results { + + /** + * Lists the results of running a Replay. + * + * Create a request for the method "results.list". + * + * This request holds the parameters needed by the policysimulator server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends PolicySimulatorRequest
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(PolicySimulator.this, "GET", REST_PATH, null, com.google.api.services.policysimulator.v1beta.model.GoogleCloudPolicysimulatorV1betaListReplayResultsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Replay whose results are listed, in the following format: + `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: + `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Replay whose results are listed, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` + * Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/replays/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; + values above 5000 are rounded down to 5000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum + * value is 5000; values above 5000 are rounded down to 5000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to + retrieve the next page of results. When paginating, all other parameters provided to + [Simulator.ListReplayResults[] must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous Simulator.ListReplayResults call. Provide this + * token to retrieve the next page of results. When paginating, all other parameters + * provided to [Simulator.ListReplayResults[] must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } } } } diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessStateDiff.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessStateDiff.java new file mode 100644 index 00000000000..bcb7e1c6d19 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessStateDiff.java @@ -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.v1beta.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. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaAccessStateDiff 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 GoogleCloudPolicysimulatorV1betaExplainedAccess 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 GoogleCloudPolicysimulatorV1betaExplainedAccess 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 GoogleCloudPolicysimulatorV1betaAccessStateDiff 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 GoogleCloudPolicysimulatorV1betaExplainedAccess 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 GoogleCloudPolicysimulatorV1betaAccessStateDiff setBaseline(GoogleCloudPolicysimulatorV1betaExplainedAccess 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 GoogleCloudPolicysimulatorV1betaExplainedAccess 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 GoogleCloudPolicysimulatorV1betaAccessStateDiff setSimulated(GoogleCloudPolicysimulatorV1betaExplainedAccess simulated) { + this.simulated = simulated; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaAccessStateDiff set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaAccessStateDiff) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaAccessStateDiff clone() { + return (GoogleCloudPolicysimulatorV1betaAccessStateDiff) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessTuple.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessTuple.java new file mode 100644 index 00000000000..364e233bbbc --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaAccessTuple.java @@ -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.v1beta.model; + +/** + * Information about the principal, resource, and permission to check. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaAccessTuple 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, `alice@example.com` 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 GoogleCloudPolicysimulatorV1betaAccessTuple 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 GoogleCloudPolicysimulatorV1betaAccessTuple 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, `alice@example.com` 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, `alice@example.com` 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 GoogleCloudPolicysimulatorV1betaAccessTuple setPrincipal(java.lang.String principal) { + this.principal = principal; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaAccessTuple set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaAccessTuple) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaAccessTuple clone() { + return (GoogleCloudPolicysimulatorV1betaAccessTuple) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaBindingExplanation.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaBindingExplanation.java new file mode 100644 index 00000000000..cd1ef32283d --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaBindingExplanation.java @@ -0,0 +1,264 @@ +/* + * 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.v1beta.model; + +/** + * Details about how a binding in a policy affects a principal's ability to use a permission. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaBindingExplanation extends com.google.api.client.json.GenericJson { + + /** + * Required. Indicates whether _this binding_ provides the specified permission to the specified + * principal for the specified resource. This field does _not_ indicate whether the principal + * actually has the permission for the resource. There might be another binding that overrides + * this binding. To determine whether the principal actually has the permission, use the `access` + * field in the TroubleshootIamPolicyResponse. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String access; + + /** + * A condition expression that prevents this binding from granting access unless the expression + * evaluates to `true`. To learn about IAM Conditions, see https://cloud.google.com/iam/docs + * /conditions-overview. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeExpr condition; + + /** + * Indicates whether each principal in the binding includes the principal specified in the + * request, either directly or indirectly. Each key identifies a principal in the binding, and + * each value indicates whether the principal in the binding includes the principal in the + * request. For example, suppose that a binding includes the following principals: * + * `user:alice@example.com` * `group:product-eng@example.com` The principal in the replayed access + * tuple is `user:bob@example.com`. This user is a principal of the group `group:product- + * eng@example.com`. For the first principal in the binding, the key is `user:alice@example.com`, + * and the `membership` field in the value is set to `MEMBERSHIP_NOT_INCLUDED`. For the second + * principal in the binding, the key is `group:product-eng@example.com`, and the `membership` + * field in the value is set to `MEMBERSHIP_INCLUDED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether the binding includes the principal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String membership; + + /** + * The relevance of the principal's status to the overall determination for the binding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String relevance; + + /** + * Indicates whether the binding includes the principal. + * @return value or {@code null} for none + */ + public java.lang.String getMembership() { + return membership; + } + + /** + * Indicates whether the binding includes the principal. + * @param membership membership or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership setMembership(java.lang.String membership) { + this.membership = membership; + return this; + } + + /** + * The relevance of the principal's status to the overall determination for the binding. + * @return value or {@code null} for none + */ + public java.lang.String getRelevance() { + return relevance; + } + + /** + * The relevance of the principal's status to the overall determination for the binding. + * @param relevance relevance or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership setRelevance(java.lang.String relevance) { + this.relevance = relevance; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership clone() { + return (GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaExplainedAccess.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaExplainedAccess.java new file mode 100644 index 00000000000..46d305c2e52 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaExplainedAccess.java @@ -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.v1beta.model; + +/** + * Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState + * when replaying an access tuple. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaExplainedAccess extends com.google.api.client.json.GenericJson { + + /** + * Whether the principal in the access tuple has permission to access the resource in the access + * tuple under the given policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessState; + + /** + * If the AccessState is `UNKNOWN`, this field contains a list of errors explaining why the result + * is `UNKNOWN`. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is omitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaExplainedPolicy extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether _this policy_ provides the specified permission to the specified principal + * for the specified resource. This field does _not_ indicate whether the principal actually has + * the permission for the resource. There might be another policy that overrides this policy. To + * determine whether the principal actually has the permission, use the `access` field in the + * TroubleshootIamPolicyResponse. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String access; + + /** + * Details about how each binding in the policy affects the principal's ability, or inability, to + * use the permission for the resource. If the user who created the Replay does not have access to + * the policy, this field is omitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaListReplayResultsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that you can use to retrieve the next page of ReplayResult objects. If this field is + * omitted, there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The results of running a Replay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaListReplaysResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that you can use to retrieve the next page of results. If this field is omitted, there + * are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of Replay objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaReplay extends com.google.api.client.json.GenericJson { + + /** + * Required. The configuration used for the `Replay`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1betaReplayConfig config; + + /** + * Output only. The resource name of the `Replay`, which has the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + * `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. + * Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Summary statistics about the replayed log entries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1betaReplayResultsSummary resultsSummary; + + /** + * Output only. The current state of the `Replay`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. The configuration used for the `Replay`. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayConfig getConfig() { + return config; + } + + /** + * Required. The configuration used for the `Replay`. + * @param config config or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplay setConfig(GoogleCloudPolicysimulatorV1betaReplayConfig config) { + this.config = config; + return this; + } + + /** + * Output only. The resource name of the `Replay`, which has the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + * `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. + * Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The resource name of the `Replay`, which has the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where + * `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. + * Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d- + * 8e03-479ce1833c36` + * @param name name or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplay setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Summary statistics about the replayed log entries. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary getResultsSummary() { + return resultsSummary; + } + + /** + * Output only. Summary statistics about the replayed log entries. + * @param resultsSummary resultsSummary or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplay setResultsSummary(GoogleCloudPolicysimulatorV1betaReplayResultsSummary resultsSummary) { + this.resultsSummary = resultsSummary; + return this; + } + + /** + * Output only. The current state of the `Replay`. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the `Replay`. + * @param state state or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplay setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplay set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaReplay) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplay clone() { + return (GoogleCloudPolicysimulatorV1betaReplay) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayConfig.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayConfig.java new file mode 100644 index 00000000000..e640e1ea977 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayConfig.java @@ -0,0 +1,111 @@ +/* + * 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.v1beta.model; + +/** + * The configuration used for a Replay. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaReplayConfig extends com.google.api.client.json.GenericJson { + + /** + * The logs to use as input for the Replay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logSource; + + /** + * A mapping of the resources that you want to simulate policies for and the policies that you + * want to simulate. Keys are the full resource names for the resources. For example, + * `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of full resource + * names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full- + * resource-names. Values are Policy objects representing the policies that you want to simulate. + * Replays automatically take into account any IAM policies inherited through the resource + * hierarchy, and any policies set on descendant resources. You do not need to include these + * policies in the policy overlay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaReplayDiff extends com.google.api.client.json.GenericJson { + + /** + * A summary and comparison of the principal's access under the current (baseline) policies and + * the proposed (simulated) policies for a single access tuple. The evaluation of the principal's + * access is reported in the AccessState field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1betaAccessStateDiff accessDiff; + + /** + * A summary and comparison of the principal's access under the current (baseline) policies and + * the proposed (simulated) policies for a single access tuple. The evaluation of the principal's + * access is reported in the AccessState field. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaAccessStateDiff getAccessDiff() { + return accessDiff; + } + + /** + * A summary and comparison of the principal's access under the current (baseline) policies and + * the proposed (simulated) policies for a single access tuple. The evaluation of the principal's + * access is reported in the AccessState field. + * @param accessDiff accessDiff or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayDiff setAccessDiff(GoogleCloudPolicysimulatorV1betaAccessStateDiff accessDiff) { + this.accessDiff = accessDiff; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplayDiff set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaReplayDiff) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplayDiff clone() { + return (GoogleCloudPolicysimulatorV1betaReplayDiff) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResult.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResult.java new file mode 100644 index 00000000000..06c3157bee4 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResult.java @@ -0,0 +1,213 @@ +/* + * 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.v1beta.model; + +/** + * The result of replaying a single access tuple against a simulated state. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaReplayResult extends com.google.api.client.json.GenericJson { + + /** + * The access tuple that was replayed. This field includes information about the principal, + * resource, and permission that were involved in the access attempt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1betaAccessTuple accessTuple; + + /** + * The difference between the principal's access under the current (baseline) policies and the + * principal's access under the proposed (simulated) policies. This field is only included for + * access tuples that were successfully replayed and had different results under the current + * policies and the proposed policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudPolicysimulatorV1betaReplayDiff diff; + + /** + * The error that caused the access tuple replay to fail. This field is only included for access + * tuples that were not replayed successfully. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleRpcStatus error; + + /** + * The latest date this access tuple was seen in the logs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate lastSeenDate; + + /** + * The resource name of the `ReplayResult`, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results + * /{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization + * that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f- + * 38ce-4d7d-8e03-479ce1833c36/results/1234` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The Replay that the access tuple was included in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * The access tuple that was replayed. This field includes information about the principal, + * resource, and permission that were involved in the access attempt. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaAccessTuple getAccessTuple() { + return accessTuple; + } + + /** + * The access tuple that was replayed. This field includes information about the principal, + * resource, and permission that were involved in the access attempt. + * @param accessTuple accessTuple or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResult setAccessTuple(GoogleCloudPolicysimulatorV1betaAccessTuple accessTuple) { + this.accessTuple = accessTuple; + return this; + } + + /** + * The difference between the principal's access under the current (baseline) policies and the + * principal's access under the proposed (simulated) policies. This field is only included for + * access tuples that were successfully replayed and had different results under the current + * policies and the proposed policies. + * @return value or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayDiff getDiff() { + return diff; + } + + /** + * The difference between the principal's access under the current (baseline) policies and the + * principal's access under the proposed (simulated) policies. This field is only included for + * access tuples that were successfully replayed and had different results under the current + * policies and the proposed policies. + * @param diff diff or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResult setDiff(GoogleCloudPolicysimulatorV1betaReplayDiff diff) { + this.diff = diff; + return this; + } + + /** + * The error that caused the access tuple replay to fail. This field is only included for access + * tuples that were not replayed successfully. + * @return value or {@code null} for none + */ + public GoogleRpcStatus getError() { + return error; + } + + /** + * The error that caused the access tuple replay to fail. This field is only included for access + * tuples that were not replayed successfully. + * @param error error or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResult setError(GoogleRpcStatus error) { + this.error = error; + return this; + } + + /** + * The latest date this access tuple was seen in the logs. + * @return value or {@code null} for none + */ + public GoogleTypeDate getLastSeenDate() { + return lastSeenDate; + } + + /** + * The latest date this access tuple was seen in the logs. + * @param lastSeenDate lastSeenDate or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResult setLastSeenDate(GoogleTypeDate lastSeenDate) { + this.lastSeenDate = lastSeenDate; + return this; + } + + /** + * The resource name of the `ReplayResult`, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results + * /{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization + * that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f- + * 38ce-4d7d-8e03-479ce1833c36/results/1234` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The resource name of the `ReplayResult`, in the following format: + * `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results + * /{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization + * that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f- + * 38ce-4d7d-8e03-479ce1833c36/results/1234` + * @param name name or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResult setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The Replay that the access tuple was included in. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The Replay that the access tuple was included in. + * @param parent parent or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResult setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplayResult set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaReplayResult) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplayResult clone() { + return (GoogleCloudPolicysimulatorV1betaReplayResult) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResultsSummary.java b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResultsSummary.java new file mode 100644 index 00000000000..dc2df3079d0 --- /dev/null +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/com/google/api/services/policysimulator/v1beta/model/GoogleCloudPolicysimulatorV1betaReplayResultsSummary.java @@ -0,0 +1,186 @@ +/* + * 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.v1beta.model; + +/** + * Summary statistics about the replayed log entries. + * + *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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudPolicysimulatorV1betaReplayResultsSummary extends com.google.api.client.json.GenericJson { + + /** + * The number of replayed log entries with a difference between baseline and simulated policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer differenceCount; + + /** + * The number of log entries that could not be replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer errorCount; + + /** + * The total number of log entries replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer logCount; + + /** + * The date of the newest log entry replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate newestDate; + + /** + * The date of the oldest log entry replayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate oldestDate; + + /** + * The number of replayed log entries with no difference between baseline and simulated policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unchangedCount; + + /** + * The number of replayed log entries with a difference between baseline and simulated policies. + * @return value or {@code null} for none + */ + public java.lang.Integer getDifferenceCount() { + return differenceCount; + } + + /** + * The number of replayed log entries with a difference between baseline and simulated policies. + * @param differenceCount differenceCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary setDifferenceCount(java.lang.Integer differenceCount) { + this.differenceCount = differenceCount; + return this; + } + + /** + * The number of log entries that could not be replayed. + * @return value or {@code null} for none + */ + public java.lang.Integer getErrorCount() { + return errorCount; + } + + /** + * The number of log entries that could not be replayed. + * @param errorCount errorCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary setErrorCount(java.lang.Integer errorCount) { + this.errorCount = errorCount; + return this; + } + + /** + * The total number of log entries replayed. + * @return value or {@code null} for none + */ + public java.lang.Integer getLogCount() { + return logCount; + } + + /** + * The total number of log entries replayed. + * @param logCount logCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary setLogCount(java.lang.Integer logCount) { + this.logCount = logCount; + return this; + } + + /** + * The date of the newest log entry replayed. + * @return value or {@code null} for none + */ + public GoogleTypeDate getNewestDate() { + return newestDate; + } + + /** + * The date of the newest log entry replayed. + * @param newestDate newestDate or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary setNewestDate(GoogleTypeDate newestDate) { + this.newestDate = newestDate; + return this; + } + + /** + * The date of the oldest log entry replayed. + * @return value or {@code null} for none + */ + public GoogleTypeDate getOldestDate() { + return oldestDate; + } + + /** + * The date of the oldest log entry replayed. + * @param oldestDate oldestDate or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary setOldestDate(GoogleTypeDate oldestDate) { + this.oldestDate = oldestDate; + return this; + } + + /** + * The number of replayed log entries with no difference between baseline and simulated policies. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnchangedCount() { + return unchangedCount; + } + + /** + * The number of replayed log entries with no difference between baseline and simulated policies. + * @param unchangedCount unchangedCount or {@code null} for none + */ + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary setUnchangedCount(java.lang.Integer unchangedCount) { + this.unchangedCount = unchangedCount; + return this; + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary set(String fieldName, Object value) { + return (GoogleCloudPolicysimulatorV1betaReplayResultsSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudPolicysimulatorV1betaReplayResultsSummary clone() { + return (GoogleCloudPolicysimulatorV1betaReplayResultsSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-policysimulator/v1beta/2.0.0/pom.xml b/clients/google-api-services-policysimulator/v1beta/2.0.0/pom.xml index c43151888dc..69c8f6ac8d4 100644 --- a/clients/google-api-services-policysimulator/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-policysimulator/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@