diff --git a/clients/google-api-services-compute/alpha/2.0.0/README.md b/clients/google-api-services-compute/alpha/2.0.0/README.md index c5db4a81673..9c675fe8765 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/README.md +++ b/clients/google-api-services-compute/alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20250415-2.0.0 + alpha-rev20250511-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20250415-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20250511-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java index ccf8dfbfb0c..470c007e225 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java @@ -3498,6 +3498,195 @@ public CalendarMode set(String parameterName, Object value) { return (CalendarMode) super.set(parameterName, value); } } + /** + * Advice on making real-time decisions (such as choosing zone or machine types) during deployment + * to maximize your chances of obtaining capacity. + * + * Create a request for the method "advice.capacity". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Capacity#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param size Size of requested capacity. + * @param content the {@link com.google.api.services.compute.model.CapacityAdviceRequest} + * @return the request + */ + public Capacity capacity(java.lang.String project, java.lang.String region, java.lang.Integer size, com.google.api.services.compute.model.CapacityAdviceRequest content) throws java.io.IOException { + Capacity result = new Capacity(project, region, size, content); + initialize(result); + return result; + } + + public class Capacity extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/advice/capacity"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Advice on making real-time decisions (such as choosing zone or machine types) during deployment + * to maximize your chances of obtaining capacity. + * + * Create a request for the method "advice.capacity". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Capacity#execute()} method to invoke the remote operation.

+ * {@link + * Capacity#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param size Size of requested capacity. + * @param content the {@link com.google.api.services.compute.model.CapacityAdviceRequest} + * @since 1.13 + */ + protected Capacity(java.lang.String project, java.lang.String region, java.lang.Integer size, com.google.api.services.compute.model.CapacityAdviceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.CapacityAdviceResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); + } + + @Override + public Capacity set$Xgafv(java.lang.String $Xgafv) { + return (Capacity) super.set$Xgafv($Xgafv); + } + + @Override + public Capacity setAccessToken(java.lang.String accessToken) { + return (Capacity) super.setAccessToken(accessToken); + } + + @Override + public Capacity setAlt(java.lang.String alt) { + return (Capacity) super.setAlt(alt); + } + + @Override + public Capacity setCallback(java.lang.String callback) { + return (Capacity) super.setCallback(callback); + } + + @Override + public Capacity setFields(java.lang.String fields) { + return (Capacity) super.setFields(fields); + } + + @Override + public Capacity setKey(java.lang.String key) { + return (Capacity) super.setKey(key); + } + + @Override + public Capacity setOauthToken(java.lang.String oauthToken) { + return (Capacity) super.setOauthToken(oauthToken); + } + + @Override + public Capacity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Capacity) super.setPrettyPrint(prettyPrint); + } + + @Override + public Capacity setQuotaUser(java.lang.String quotaUser) { + return (Capacity) super.setQuotaUser(quotaUser); + } + + @Override + public Capacity setUploadType(java.lang.String uploadType) { + return (Capacity) super.setUploadType(uploadType); + } + + @Override + public Capacity setUploadProtocol(java.lang.String uploadProtocol) { + return (Capacity) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Capacity setUserIp(java.lang.String userIp) { + return (Capacity) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Capacity setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Capacity setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Size of requested capacity. */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** Size of requested capacity. + */ + public java.lang.Integer getSize() { + return size; + } + + /** Size of requested capacity. */ + public Capacity setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + @Override + public Capacity set(String parameterName, Object value) { + return (Capacity) super.set(parameterName, value); + } + } } @@ -121300,23 +121489,23 @@ public class PreviewFeatures { * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resourceId Name of the PreviewFeature for this request. + * @param previewFeature Name of the PreviewFeature for this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String resourceId) throws java.io.IOException { - Get result = new Get(project, resourceId); + public Get get(java.lang.String project, java.lang.String previewFeature) throws java.io.IOException { + Get result = new Get(project, previewFeature); initialize(result); return result; } public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/previewFeatures/{resourceId}"; + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_ID_PATTERN = + private final java.util.regex.Pattern PREVIEW_FEATURE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** @@ -121330,10 +121519,10 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param resourceId Name of the PreviewFeature for this request. + * @param previewFeature Name of the PreviewFeature for this request. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String resourceId) { + protected Get(java.lang.String project, java.lang.String previewFeature) { super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PreviewFeature.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -121341,10 +121530,10 @@ protected Get(java.lang.String project, java.lang.String resourceId) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); + this.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), - "Parameter resourceId must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -121442,22 +121631,22 @@ public Get setProject(java.lang.String project) { /** Name of the PreviewFeature for this request. */ @com.google.api.client.util.Key - private java.lang.String resourceId; + private java.lang.String previewFeature; /** Name of the PreviewFeature for this request. */ - public java.lang.String getResourceId() { - return resourceId; + public java.lang.String getPreviewFeature() { + return previewFeature; } /** Name of the PreviewFeature for this request. */ - public Get setResourceId(java.lang.String resourceId) { + public Get setPreviewFeature(java.lang.String previewFeature) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), - "Parameter resourceId must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resourceId = resourceId; + this.previewFeature = previewFeature; return this; } @@ -121826,24 +122015,24 @@ public List set(String parameterName, Object value) { * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resourceId Name of the PreviewFeature for this request. + * @param previewFeature Name of the PreviewFeature for this request. * @param content the {@link com.google.api.services.compute.model.PreviewFeature} * @return the request */ - public Update update(java.lang.String project, java.lang.String resourceId, com.google.api.services.compute.model.PreviewFeature content) throws java.io.IOException { - Update result = new Update(project, resourceId, content); + public Update update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.model.PreviewFeature content) throws java.io.IOException { + Update result = new Update(project, previewFeature, content); initialize(result); return result; } public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/previewFeatures/{resourceId}"; + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_ID_PATTERN = + private final java.util.regex.Pattern PREVIEW_FEATURE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** @@ -121857,11 +122046,11 @@ public class Update extends ComputeRequest * * @param project Project ID for this request. - * @param resourceId Name of the PreviewFeature for this request. + * @param previewFeature Name of the PreviewFeature for this request. * @param content the {@link com.google.api.services.compute.model.PreviewFeature} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String resourceId, com.google.api.services.compute.model.PreviewFeature content) { + protected Update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.model.PreviewFeature content) { super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -121869,10 +122058,10 @@ protected Update(java.lang.String project, java.lang.String resourceId, com.goog "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); + this.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), - "Parameter resourceId must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -121960,22 +122149,22 @@ public Update setProject(java.lang.String project) { /** Name of the PreviewFeature for this request. */ @com.google.api.client.util.Key - private java.lang.String resourceId; + private java.lang.String previewFeature; /** Name of the PreviewFeature for this request. */ - public java.lang.String getResourceId() { - return resourceId; + public java.lang.String getPreviewFeature() { + return previewFeature; } /** Name of the PreviewFeature for this request. */ - public Update setResourceId(java.lang.String resourceId) { + public Update setPreviewFeature(java.lang.String previewFeature) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), - "Parameter resourceId must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resourceId = resourceId; + this.previewFeature = previewFeature; return this; } @@ -130217,63 +130406,2437 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates an autoscaler in the specified project using the data included in the request. + * + * Create a request for the method "regionAutoscalers.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { + Update result = new Update(project, region, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern AUTOSCALER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates an autoscaler in the specified project using the data included in the request. + * + * Create a request for the method "regionAutoscalers.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Update setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Update setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the autoscaler to update. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to update. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to update. */ + public Update setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionBackendBuckets collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionBackendBuckets.List request = compute.regionBackendBuckets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionBackendBuckets regionBackendBuckets() { + return new RegionBackendBuckets(); + } + + /** + * The "regionBackendBuckets" collection of methods. + */ + public class RegionBackendBuckets { + + /** + * Deletes the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendBucket) throws java.io.IOException { + Delete result = new Delete(project, region, backendBucket); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendBucket) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the BackendBucket resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to delete. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to delete. */ + public Delete setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + return this; + } + + /** + * Force delete the backend bucket even if it is still in use by other resources. It's + * intended to be used internally only for requests from wipeout. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceDelete; + + /** Force delete the backend bucket even if it is still in use by other resources. It's intended to be + used internally only for requests from wipeout. + */ + public java.lang.Boolean getForceDelete() { + return forceDelete; + } + + /** + * Force delete the backend bucket even if it is still in use by other resources. It's + * intended to be used internally only for requests from wipeout. + */ + public Delete setForceDelete(java.lang.Boolean forceDelete) { + this.forceDelete = forceDelete; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String backendBucket) throws java.io.IOException { + Get result = new Get(project, region, backendBucket); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String backendBucket) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucket.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the BackendBucket resource to return. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to return. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to return. */ + public Get setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionBackendBuckets.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionBackendBuckets.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a RegionBackendBucket in the specified project in the given scope using the parameters + * that are included in the request. + * + * Create a request for the method "regionBackendBuckets.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BackendBucket content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/regionBackendBuckets"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Creates a RegionBackendBucket in the specified project in the given scope using the parameters + * that are included in the request. + * + * Create a request for the method "regionBackendBuckets.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BackendBucket content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. + * + * Create a request for the method "regionBackendBuckets.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. + * + * Create a request for the method "regionBackendBuckets.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucketList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of all usable backend buckets in the specified project in the given region. + * + * Create a request for the method "regionBackendBuckets.listUsable". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * @return the request + */ + public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { + ListUsable result = new ListUsable(project, region); + initialize(result); + return result; + } + + public class ListUsable extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/listUsable"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves a list of all usable backend buckets in the specified project in the given region. + * + * Create a request for the method "regionBackendBuckets.listUsable". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

+ * {@link + * ListUsable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * @since 1.13 + */ + protected ListUsable(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucketListUsable.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @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 ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); + } + + @Override + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); + } + + @Override + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); + } + + @Override + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); + } + + @Override + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); + } + + @Override + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); + } + + @Override + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); + } + + @Override + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); + } + + @Override + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); + } + + @Override + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public ListUsable setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. It must be a string that meets the requirements in + RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. + */ + public ListUsable setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public ListUsable setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public ListUsable setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public ListUsable setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public ListUsable setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); + } + } + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + * Create a request for the method "regionBackendBuckets.patch". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) throws java.io.IOException { + Patch result = new Patch(project, region, backendBucket, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + * Create a request for the method "regionBackendBuckets.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Patch setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the BackendBucket resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to patch. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to patch. */ + public Patch setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionBackendBuckets.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionBackendBuckets.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130287,7 +132850,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -130308,7 +132871,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + public SetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -130329,7 +132892,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -130340,32 +132903,33 @@ public TestIamPermissions setResource(java.lang.String resource) { } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Updates an autoscaler in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionAutoscalers.update". + * Create a request for the method "regionBackendBuckets.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Update update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { - Update result = new Update(project, region, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -130373,26 +132937,28 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -130405,66 +132971,72 @@ protected Update(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130478,7 +133050,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -130488,18 +133060,18 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -130509,70 +133081,30 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the autoscaler to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String resource; - /** Name of the autoscaler to update. + /** Name or id of the resource for this request. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getResource() { + return resource; } - /** Name of the autoscaler to update. */ - public Update setAutoscaler(java.lang.String autoscaler) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.autoscaler = autoscaler; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } @@ -193171,6 +195703,237 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Allows customers to perform maintenance on a reservation subBlock + * + * Create a request for the method "reservationSubBlocks.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, parentName, reservationSubBlock); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + + /** + * Allows customers to perform maintenance on a reservation subBlock + * + * Create a request for the method "reservationSubBlocks.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public PerformMaintenance setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public PerformMaintenance setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public PerformMaintenance setParentName(java.lang.String parentName) { + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public PerformMaintenance setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } } diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java index bb8e0ab4014..bcae93edb32 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -107,7 +107,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * The value may be {@code null}. @@ -336,7 +336,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson * balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host * selection times. For more information about Maglev, see * https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional - * backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and + * backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and * load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the * load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If * sessionAffinity is not configured—that is, if session affinity remains at the default value of @@ -394,7 +394,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson * The URL of the network to which this backend service belongs. This field must be set for * Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External * Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only - * be specified when the load balancing scheme is set to INTERNAL. + * be specified when the load balancing scheme is set to INTERNAL, or when the load balancing + * scheme is set to EXTERNAL and haPolicy fastIpMove is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -424,9 +425,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson * managed regional API endpoints or managed services published using Private Service Connect * Applicable backend service types can be: - A global backend service with the * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to - * INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the - * backend service is referenced by a URL map that is bound to target gRPC proxy that has + * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set + * to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when + * the backend service is referenced by a URL map that is bound to target gRPC proxy that has * validateForProxyless field set to true. * The value may be {@code null}. */ @@ -455,10 +456,10 @@ public final class BackendService extends com.google.api.client.json.GenericJson /** * The protocol this BackendService uses to communicate with backends. Possible values are HTTP, - * HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director - * configuration. Refer to the documentation for the load balancers or for Traffic Director for - * more information. Must be set to GRPC when the backend service is referenced by a URL map that - * is bound to target gRPC proxy. + * HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic + * Director configuration. Refer to the documentation for the load balancers or for Traffic + * Director for more information. Must be set to GRPC when the backend service is referenced by a + * URL map that is bound to target gRPC proxy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -726,7 +727,7 @@ public BackendService setConnectionTrackingPolicy(BackendServiceConnectionTracki * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * @return value or {@code null} for none @@ -742,7 +743,7 @@ public ConsistentHashLoadBalancerSettings getConsistentHash() { * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * @param consistentHash consistentHash or {@code null} for none @@ -1276,7 +1277,7 @@ public BackendService setLocalityLbPolicies(java.util.List 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 Compute Engine 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 CapacityAdviceRequest extends com.google.api.client.json.GenericJson { + + /** + * Policy specifying the distribution of instances across zones within the requested region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestDistributionPolicy distributionPolicy; + + /** + * Policy for instance selectors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy; + + /** + * Instance properties for this request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestInstanceProperties instanceProperties; + + /** + * Policy specifying the distribution of instances across zones within the requested region. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicy getDistributionPolicy() { + return distributionPolicy; + } + + /** + * Policy specifying the distribution of instances across zones within the requested region. + * @param distributionPolicy distributionPolicy or {@code null} for none + */ + public CapacityAdviceRequest setDistributionPolicy(CapacityAdviceRequestDistributionPolicy distributionPolicy) { + this.distributionPolicy = distributionPolicy; + return this; + } + + /** + * Policy for instance selectors. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { + return instanceFlexibilityPolicy; + } + + /** + * Policy for instance selectors. + * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none + */ + public CapacityAdviceRequest setInstanceFlexibilityPolicy(CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy) { + this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; + return this; + } + + /** + * Instance properties for this request. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestInstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * Instance properties for this request. + * @param instanceProperties instanceProperties or {@code null} for none + */ + public CapacityAdviceRequest setInstanceProperties(CapacityAdviceRequestInstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + @Override + public CapacityAdviceRequest set(String fieldName, Object value) { + return (CapacityAdviceRequest) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequest clone() { + return (CapacityAdviceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java new file mode 100644 index 00000000000..f7dd4492773 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * Model definition for CapacityAdviceRequestDistributionPolicy. + * + *

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 Compute Engine 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 CapacityAdviceRequestDistributionPolicy extends com.google.api.client.json.GenericJson { + + /** + * The distribution shape to which the group converges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetShape; + + /** + * Zones where Capacity Advisor looks for capacity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * The distribution shape to which the group converges. + * @return value or {@code null} for none + */ + public java.lang.String getTargetShape() { + return targetShape; + } + + /** + * The distribution shape to which the group converges. + * @param targetShape targetShape or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicy setTargetShape(java.lang.String targetShape) { + this.targetShape = targetShape; + return this; + } + + /** + * Zones where Capacity Advisor looks for capacity. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * Zones where Capacity Advisor looks for capacity. + * @param zones zones or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicy setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public CapacityAdviceRequestDistributionPolicy set(String fieldName, Object value) { + return (CapacityAdviceRequestDistributionPolicy) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestDistributionPolicy clone() { + return (CapacityAdviceRequestDistributionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java new file mode 100644 index 00000000000..01b707a185d --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * Model definition for CapacityAdviceRequestDistributionPolicyZoneConfiguration. + * + *

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 Compute Engine 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 CapacityAdviceRequestDistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The URL of the zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The URL of the zone. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The URL of the zone. + * @param zone zone or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicyZoneConfiguration setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public CapacityAdviceRequestDistributionPolicyZoneConfiguration set(String fieldName, Object value) { + return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestDistributionPolicyZoneConfiguration clone() { + return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java new file mode 100644 index 00000000000..ab9c088c163 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java @@ -0,0 +1,69 @@ +/* + * 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.compute.model; + +/** + * Specification of alternative, flexible instance subsets. + * + *

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 Compute Engine 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 CapacityAdviceRequestInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + + /** + * Named instance selections configure properties. The key is an arbitrary, unique RFC1035 string + * that identifies the instance selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map instanceSelections; + + /** + * Named instance selections configure properties. The key is an arbitrary, unique RFC1035 string + * that identifies the instance selection. + * @return value or {@code null} for none + */ + public java.util.Map getInstanceSelections() { + return instanceSelections; + } + + /** + * Named instance selections configure properties. The key is an arbitrary, unique RFC1035 string + * that identifies the instance selection. + * @param instanceSelections instanceSelections or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { + this.instanceSelections = instanceSelections; + return this; + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicy set(String fieldName, Object value) { + return (CapacityAdviceRequestInstanceFlexibilityPolicy) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicy clone() { + return (CapacityAdviceRequestInstanceFlexibilityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..c41abbe94db --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * Machine specification. + * + *

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 Compute Engine 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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection extends com.google.api.client.json.GenericJson { + + /** + * Full machine-type names, e.g. "n1-standard-16". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List machineTypes; + + /** + * Full machine-type names, e.g. "n1-standard-16". + * @return value or {@code null} for none + */ + public java.util.List getMachineTypes() { + return machineTypes; + } + + /** + * Full machine-type names, e.g. "n1-standard-16". + * @param machineTypes machineTypes or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { + this.machineTypes = machineTypes; + return this; + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { + return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection clone() { + return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java new file mode 100644 index 00000000000..eb3965e3774 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * Instance provisining properties. + * + *

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 Compute Engine 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 CapacityAdviceRequestInstanceProperties extends com.google.api.client.json.GenericJson { + + /** + * Specifies the scheduling options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestInstancePropertiesScheduling scheduling; + + /** + * Specifies the scheduling options. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestInstancePropertiesScheduling getScheduling() { + return scheduling; + } + + /** + * Specifies the scheduling options. + * @param scheduling scheduling or {@code null} for none + */ + public CapacityAdviceRequestInstanceProperties setScheduling(CapacityAdviceRequestInstancePropertiesScheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + @Override + public CapacityAdviceRequestInstanceProperties set(String fieldName, Object value) { + return (CapacityAdviceRequestInstanceProperties) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstanceProperties clone() { + return (CapacityAdviceRequestInstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java new file mode 100644 index 00000000000..a2fa1fd1198 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * Defines the instance scheduling options. + * + *

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 Compute Engine 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 CapacityAdviceRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { + + /** + * Specifies the provisioning model of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningModel; + + /** + * Specifies the provisioning model of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningModel() { + return provisioningModel; + } + + /** + * Specifies the provisioning model of the instance. + * @param provisioningModel provisioningModel or {@code null} for none + */ + public CapacityAdviceRequestInstancePropertiesScheduling setProvisioningModel(java.lang.String provisioningModel) { + this.provisioningModel = provisioningModel; + return this; + } + + @Override + public CapacityAdviceRequestInstancePropertiesScheduling set(String fieldName, Object value) { + return (CapacityAdviceRequestInstancePropertiesScheduling) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstancePropertiesScheduling clone() { + return (CapacityAdviceRequestInstancePropertiesScheduling) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.java new file mode 100644 index 00000000000..3ae13a3c218 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.java @@ -0,0 +1,69 @@ +/* + * 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.compute.model; + +/** + * A response contains multiple scoring recommendations. + * + *

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 Compute Engine 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 CapacityAdviceResponse extends com.google.api.client.json.GenericJson { + + /** + * Initially the API will provide one recommendation which balances the individual scores + * according to Google's preference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recommendations; + + /** + * Initially the API will provide one recommendation which balances the individual scores + * according to Google's preference. + * @return value or {@code null} for none + */ + public java.util.List getRecommendations() { + return recommendations; + } + + /** + * Initially the API will provide one recommendation which balances the individual scores + * according to Google's preference. + * @param recommendations recommendations or {@code null} for none + */ + public CapacityAdviceResponse setRecommendations(java.util.List recommendations) { + this.recommendations = recommendations; + return this; + } + + @Override + public CapacityAdviceResponse set(String fieldName, Object value) { + return (CapacityAdviceResponse) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponse clone() { + return (CapacityAdviceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java new file mode 100644 index 00000000000..fba366b6425 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Model definition for CapacityAdviceResponseRecommendation. + * + *

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 Compute Engine 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 CapacityAdviceResponseRecommendation extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceResponseRecommendationScores scores; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List shards; + + /** + * @return value or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores getScores() { + return scores; + } + + /** + * @param scores scores or {@code null} for none + */ + public CapacityAdviceResponseRecommendation setScores(CapacityAdviceResponseRecommendationScores scores) { + this.scores = scores; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getShards() { + return shards; + } + + /** + * @param shards shards or {@code null} for none + */ + public CapacityAdviceResponseRecommendation setShards(java.util.List shards) { + this.shards = shards; + return this; + } + + @Override + public CapacityAdviceResponseRecommendation set(String fieldName, Object value) { + return (CapacityAdviceResponseRecommendation) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponseRecommendation clone() { + return (CapacityAdviceResponseRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java new file mode 100644 index 00000000000..edf91ebdb36 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java @@ -0,0 +1,99 @@ +/* + * 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.compute.model; + +/** + * The Scores message groups information about a shard of capacity. + * + *

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 Compute Engine 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 CapacityAdviceResponseRecommendationScores extends com.google.api.client.json.GenericJson { + + /** + * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the + * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double obtainability; + + /** + * The preemption score indicates the likelihood that your Spot VMs is preempted. For more + * information about the preemption process, see Preemption of Spot VMs. The score range is 0.0 + * through 1.0. Higher is better. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double spotPreemption; + + /** + * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the + * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. + * @return value or {@code null} for none + */ + public java.lang.Double getObtainability() { + return obtainability; + } + + /** + * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the + * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. + * @param obtainability obtainability or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores setObtainability(java.lang.Double obtainability) { + this.obtainability = obtainability; + return this; + } + + /** + * The preemption score indicates the likelihood that your Spot VMs is preempted. For more + * information about the preemption process, see Preemption of Spot VMs. The score range is 0.0 + * through 1.0. Higher is better. + * @return value or {@code null} for none + */ + public java.lang.Double getSpotPreemption() { + return spotPreemption; + } + + /** + * The preemption score indicates the likelihood that your Spot VMs is preempted. For more + * information about the preemption process, see Preemption of Spot VMs. The score range is 0.0 + * through 1.0. Higher is better. + * @param spotPreemption spotPreemption or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores setSpotPreemption(java.lang.Double spotPreemption) { + this.spotPreemption = spotPreemption; + return this; + } + + @Override + public CapacityAdviceResponseRecommendationScores set(String fieldName, Object value) { + return (CapacityAdviceResponseRecommendationScores) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponseRecommendationScores clone() { + return (CapacityAdviceResponseRecommendationScores) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java new file mode 100644 index 00000000000..cf64a52871c --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java @@ -0,0 +1,137 @@ +/* + * 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.compute.model; + +/** + * Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone, + * single instance selection, and a single machine shape. Each shard defines a size expressed as the + * number of VMs. + * + *

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 Compute Engine 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 CapacityAdviceResponseRecommendationShard extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer instanceCount; + + /** + * The machine type corresponds to the instance selection in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * Provisioning model of the recommended capacity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningModel; + + /** + * The zone name for this shard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getInstanceCount() { + return instanceCount; + } + + /** + * @param instanceCount instanceCount or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setInstanceCount(java.lang.Integer instanceCount) { + this.instanceCount = instanceCount; + return this; + } + + /** + * The machine type corresponds to the instance selection in the request. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type corresponds to the instance selection in the request. + * @param machineType machineType or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * Provisioning model of the recommended capacity. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningModel() { + return provisioningModel; + } + + /** + * Provisioning model of the recommended capacity. + * @param provisioningModel provisioningModel or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setProvisioningModel(java.lang.String provisioningModel) { + this.provisioningModel = provisioningModel; + return this; + } + + /** + * The zone name for this shard. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The zone name for this shard. + * @param zone zone or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public CapacityAdviceResponseRecommendationShard set(String fieldName, Object value) { + return (CapacityAdviceResponseRecommendationShard) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponseRecommendationShard clone() { + return (CapacityAdviceResponseRecommendationShard) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java index 684907e6ac4..0bdb95e3cb3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -60,6 +60,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @com.google.api.client.util.Key private java.lang.String destNetworkScope; + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - + * NON_INTERNET + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destNetworkType; + /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" @@ -114,6 +122,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @com.google.api.client.util.Key private java.lang.String srcNetworkScope; + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - + * NON_INTERNET - VPC_NETWORKS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String srcNetworkType; + /** * Networks of the traffic source. It can be either a full or partial url. * The value may be {@code null}. @@ -219,6 +235,25 @@ public FirewallPolicyRuleMatcher setDestNetworkScope(java.lang.String destNetwor return this; } + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - + * NON_INTERNET + * @return value or {@code null} for none + */ + public java.lang.String getDestNetworkType() { + return destNetworkType; + } + + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - + * NON_INTERNET + * @param destNetworkType destNetworkType or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestNetworkType(java.lang.String destNetworkType) { + this.destNetworkType = destNetworkType; + return this; + } + /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" @@ -348,6 +383,25 @@ public FirewallPolicyRuleMatcher setSrcNetworkScope(java.lang.String srcNetworkS return this; } + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - + * NON_INTERNET - VPC_NETWORKS + * @return value or {@code null} for none + */ + public java.lang.String getSrcNetworkType() { + return srcNetworkType; + } + + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - + * NON_INTERNET - VPC_NETWORKS + * @param srcNetworkType srcNetworkType or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcNetworkType(java.lang.String srcNetworkType) { + this.srcNetworkType = srcNetworkType; + return this; + } + /** * Networks of the traffic source. It can be either a full or partial url. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java index 1ad89e432d1..f0954c6052f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java @@ -29,6 +29,20 @@ @SuppressWarnings("javadoc") public final class GroupMaintenanceInfo extends com.google.api.client.json.GenericJson { + /** + * Describes number of instances that have ongoing maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer instanceMaintenanceOngoingCount; + + /** + * Describes number of instances that have pending maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer instanceMaintenancePendingCount; + /** * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the * block that have ongoing maintenance. @@ -52,6 +66,24 @@ public final class GroupMaintenanceInfo extends com.google.api.client.json.Gener @com.google.api.client.util.Key private java.lang.String schedulingType; + /** + * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer subblockInfraMaintenanceOngoingCount; + + /** + * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer subblockInfraMaintenancePendingCount; + /** * Maintenance information on this group of VMs. * The value may be {@code null}. @@ -59,6 +91,40 @@ public final class GroupMaintenanceInfo extends com.google.api.client.json.Gener @com.google.api.client.util.Key private UpcomingMaintenance upcomingGroupMaintenance; + /** + * Describes number of instances that have ongoing maintenance. + * @return value or {@code null} for none + */ + public java.lang.Integer getInstanceMaintenanceOngoingCount() { + return instanceMaintenanceOngoingCount; + } + + /** + * Describes number of instances that have ongoing maintenance. + * @param instanceMaintenanceOngoingCount instanceMaintenanceOngoingCount or {@code null} for none + */ + public GroupMaintenanceInfo setInstanceMaintenanceOngoingCount(java.lang.Integer instanceMaintenanceOngoingCount) { + this.instanceMaintenanceOngoingCount = instanceMaintenanceOngoingCount; + return this; + } + + /** + * Describes number of instances that have pending maintenance. + * @return value or {@code null} for none + */ + public java.lang.Integer getInstanceMaintenancePendingCount() { + return instanceMaintenancePendingCount; + } + + /** + * Describes number of instances that have pending maintenance. + * @param instanceMaintenancePendingCount instanceMaintenancePendingCount or {@code null} for none + */ + public GroupMaintenanceInfo setInstanceMaintenancePendingCount(java.lang.Integer instanceMaintenancePendingCount) { + this.instanceMaintenancePendingCount = instanceMaintenancePendingCount; + return this; + } + /** * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the * block that have ongoing maintenance. @@ -114,6 +180,48 @@ public GroupMaintenanceInfo setSchedulingType(java.lang.String schedulingType) { return this; } + /** + * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + * @return value or {@code null} for none + */ + public java.lang.Integer getSubblockInfraMaintenanceOngoingCount() { + return subblockInfraMaintenanceOngoingCount; + } + + /** + * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + * @param subblockInfraMaintenanceOngoingCount subblockInfraMaintenanceOngoingCount or {@code null} for none + */ + public GroupMaintenanceInfo setSubblockInfraMaintenanceOngoingCount(java.lang.Integer subblockInfraMaintenanceOngoingCount) { + this.subblockInfraMaintenanceOngoingCount = subblockInfraMaintenanceOngoingCount; + return this; + } + + /** + * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + * @return value or {@code null} for none + */ + public java.lang.Integer getSubblockInfraMaintenancePendingCount() { + return subblockInfraMaintenancePendingCount; + } + + /** + * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + * @param subblockInfraMaintenancePendingCount subblockInfraMaintenancePendingCount or {@code null} for none + */ + public GroupMaintenanceInfo setSubblockInfraMaintenancePendingCount(java.lang.Integer subblockInfraMaintenancePendingCount) { + this.subblockInfraMaintenancePendingCount = subblockInfraMaintenancePendingCount; + return this; + } + /** * Maintenance information on this group of VMs. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index da18945c473..f7afffe54db 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -286,7 +286,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.Integer targetSize; /** - * Configures how target size of MIG is achieved. + * The policy that specifies how the MIG creates its VMs to achieve the target size. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -983,7 +983,7 @@ public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) { } /** - * Configures how target size of MIG is achieved. + * The policy that specifies how the MIG creates its VMs to achieve the target size. * @return value or {@code null} for none */ public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy() { @@ -991,7 +991,7 @@ public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy() { } /** - * Configures how target size of MIG is achieved. + * The policy that specifies how the MIG creates its VMs to achieve the target size. * @param targetSizePolicy targetSizePolicy or {@code null} for none */ public InstanceGroupManager setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy targetSizePolicy) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java index 66fc0d495b8..c5069609b47 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java @@ -77,6 +77,13 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl @com.google.api.client.util.Key private java.lang.String onFailedHealthCheck; + /** + * Configuration for VM repairs in the MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerInstanceLifecyclePolicyOnRepair onRepair; + /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails @@ -185,6 +192,23 @@ public InstanceGroupManagerInstanceLifecyclePolicy setOnFailedHealthCheck(java.l return this; } + /** + * Configuration for VM repairs in the MIG. + * @return value or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair getOnRepair() { + return onRepair; + } + + /** + * Configuration for VM repairs in the MIG. + * @param onRepair onRepair or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicy setOnRepair(InstanceGroupManagerInstanceLifecyclePolicyOnRepair onRepair) { + this.onRepair = onRepair; + return this; + } + @Override public InstanceGroupManagerInstanceLifecyclePolicy set(String fieldName, Object value) { return (InstanceGroupManagerInstanceLifecyclePolicy) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java new file mode 100644 index 00000000000..0f6fd4c2186 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * Configuration for VM repairs in the MIG. + * + *

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 Compute Engine 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 InstanceGroupManagerInstanceLifecyclePolicyOnRepair extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the MIG can change a VM's zone during repair. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowChangingZone; + + /** + * Specifies whether the MIG can change a VM's zone during repair. + * @return value or {@code null} for none + */ + public java.lang.String getAllowChangingZone() { + return allowChangingZone; + } + + /** + * Specifies whether the MIG can change a VM's zone during repair. + * @param allowChangingZone allowChangingZone or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair setAllowChangingZone(java.lang.String allowChangingZone) { + this.allowChangingZone = allowChangingZone; + return this; + } + + @Override + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceLifecyclePolicyOnRepair) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair clone() { + return (InstanceGroupManagerInstanceLifecyclePolicyOnRepair) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java index 3e4a097f554..16e78e7af4d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java @@ -44,7 +44,7 @@ public final class InstanceGroupManagerStatus extends com.google.api.client.json private java.lang.String autoscaler; /** - * [Output Only] Status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,7 +111,7 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * [Output Only] Status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { @@ -119,7 +119,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation( } /** - * [Output Only] Status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none */ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java index f7c65675763..989340fa3df 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -17,7 +17,8 @@ package com.google.api.services.compute.model; /** - * Model definition for InstanceGroupManagerStatusBulkInstanceOperation. + * Bulk instance operation is the creation of VMs in a MIG when the targetSizePolicy.mode is set to + * BULK. * *

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 Compute Engine API. For a detailed explanation see: @@ -37,7 +38,7 @@ public final class InstanceGroupManagerStatusBulkInstanceOperation extends com.g private java.lang.Boolean inProgress; /** - * [Output Only] Information from last progress check of bulk instance operation. + * [Output Only] Information from the last progress check of bulk instance operation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +62,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.B } /** - * [Output Only] Information from last progress check of bulk instance operation. + * [Output Only] Information from the last progress check of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { @@ -69,7 +70,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastP } /** - * [Output Only] Information from last progress check of bulk instance operation. + * [Output Only] Information from the last progress check of bulk instance operation. * @param lastProgressCheck lastProgressCheck or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperation setLastProgressCheck(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java index 50bdc65281c..ecbde4accc4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -30,7 +30,7 @@ public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { /** - * [Output Only] Contains errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,7 +45,7 @@ public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCh private String timestamp; /** - * [Output Only] Contains errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * @return value or {@code null} for none */ public Error getError() { @@ -53,7 +53,7 @@ public Error getError() { } /** - * [Output Only] Contains errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * @param error error or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { @@ -91,7 +91,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() } /** - * [Output Only] Contains errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java index 582f4778eba..df8d10c8af7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java @@ -30,14 +30,16 @@ public final class InstanceGroupManagerTargetSizePolicy extends com.google.api.client.json.GenericJson { /** - * Mode in which operations on size are processed. + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mode; /** - * Mode in which operations on size are processed. + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -45,7 +47,8 @@ public java.lang.String getMode() { } /** - * Mode in which operations on size are processed. + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. * @param mode mode or {@code null} for none */ public InstanceGroupManagerTargetSizePolicy setMode(java.lang.String mode) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 9a2af3583fd..7773180fba9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -296,7 +296,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -1125,7 +1126,8 @@ public InterconnectAttachment setLabels(java.util.Map /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * @return value or {@code null} for none */ public java.lang.Integer getMtu() { @@ -1134,7 +1136,8 @@ public java.lang.Integer getMtu() { /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * @param mtu mtu or {@code null} for none */ public InterconnectAttachment setMtu(java.lang.Integer mtu) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java index 7d42277f9f4..f61f4b3932e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java @@ -190,7 +190,8 @@ public final class InterconnectAttachmentGroupsCreateMembersInterconnectAttachme /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, or 8896. If not specified, the value will + * default to 1440. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -205,11 +206,12 @@ public final class InterconnectAttachmentGroupsCreateMembersInterconnectAttachme private java.lang.Boolean multicastEnabled; /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters - * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - * character must be a lowercase letter, and all following characters must be a dash, lowercase - * letter, or digit, except the last character, which cannot be a dash. + * Name of the resource. Provided by the client when the resource is created. Must be set on + * either the template_attachment or on each specific attachment. If set, the name must be 1-63 + * characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, lowercase letter, or + * digit, except the last character, which cannot be a dash. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -660,7 +662,8 @@ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setL /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, or 8896. If not specified, the value will + * default to 1440. * @return value or {@code null} for none */ public java.lang.Integer getMtu() { @@ -669,7 +672,8 @@ public java.lang.Integer getMtu() { /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, or 8896. If not specified, the value will + * default to 1440. * @param mtu mtu or {@code null} for none */ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setMtu(java.lang.Integer mtu) { @@ -697,11 +701,12 @@ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setM } /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters - * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - * character must be a lowercase letter, and all following characters must be a dash, lowercase - * letter, or digit, except the last character, which cannot be a dash. + * Name of the resource. Provided by the client when the resource is created. Must be set on + * either the template_attachment or on each specific attachment. If set, the name must be 1-63 + * characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, lowercase letter, or + * digit, except the last character, which cannot be a dash. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -709,11 +714,12 @@ public java.lang.String getName() { } /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters - * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - * character must be a lowercase letter, and all following characters must be a dash, lowercase - * letter, or digit, except the last character, which cannot be a dash. + * Name of the resource. Provided by the client when the resource is created. Must be set on + * either the template_attachment or on each specific attachment. If set, the name must be 1-63 + * characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, lowercase letter, or + * digit, except the last character, which cannot be a dash. * @param name name or {@code null} for none */ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setName(java.lang.String name) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java index cdd35cd7e30..6935a786c0a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java @@ -82,11 +82,12 @@ public final class InterconnectGroupsCreateMembersInterconnectInput extends com. private java.lang.String linkType; /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters - * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - * character must be a lowercase letter, and all following characters must be a dash, lowercase - * letter, or digit, except the last character, which cannot be a dash. + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -252,11 +253,12 @@ public InterconnectGroupsCreateMembersInterconnectInput setLinkType(java.lang.St } /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters - * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - * character must be a lowercase letter, and all following characters must be a dash, lowercase - * letter, or digit, except the last character, which cannot be a dash. + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -264,11 +266,12 @@ public java.lang.String getName() { } /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters - * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first - * character must be a lowercase letter, and all following characters must be a dash, lowercase - * letter, or digit, except the last character, which cannot be a dash. + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. * @param name name or {@code null} for none */ public InterconnectGroupsCreateMembersInterconnectInput setName(java.lang.String name) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 06050facce0..76fa0dedf9f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -38,6 +38,14 @@ public final class InterconnectLocationRegionInfo extends com.google.api.client. @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long expectedRttMs; + /** + * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects + * that are in this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean l2ForwardingEnabled; + /** * Identifies the network presence of this location. * The value may be {@code null}. @@ -71,6 +79,25 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt return this; } + /** + * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects + * that are in this location. + * @return value or {@code null} for none + */ + public java.lang.Boolean getL2ForwardingEnabled() { + return l2ForwardingEnabled; + } + + /** + * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects + * that are in this location. + * @param l2ForwardingEnabled l2ForwardingEnabled or {@code null} for none + */ + public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l2ForwardingEnabled) { + this.l2ForwardingEnabled = l2ForwardingEnabled; + return this; + } + /** * Identifies the network presence of this location. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java index 1cafebbb209..5819c20ed8d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java @@ -30,16 +30,16 @@ public final class ManagedInstanceScheduling extends com.google.api.client.json.GenericJson { /** - * [Output Only] The timestamp when the MIG will automatically terminate the instance. The value - * is in RFC3339 text format. + * [Output Only] The timestamp at which the managed instance will be terminated. This is in + * RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private String terminationTimestamp; /** - * [Output Only] The timestamp when the MIG will automatically terminate the instance. The value - * is in RFC3339 text format. + * [Output Only] The timestamp at which the managed instance will be terminated. This is in + * RFC3339 text format. * @return value or {@code null} for none */ public String getTerminationTimestamp() { @@ -47,8 +47,8 @@ public String getTerminationTimestamp() { } /** - * [Output Only] The timestamp when the MIG will automatically terminate the instance. The value - * is in RFC3339 text format. + * [Output Only] The timestamp at which the managed instance will be terminated. This is in + * RFC3339 text format. * @param terminationTimestamp terminationTimestamp or {@code null} for none */ public ManagedInstanceScheduling setTerminationTimestamp(String terminationTimestamp) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java index d389662a8e0..3c466657dea 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java @@ -32,8 +32,8 @@ public final class NetworkPeeringConnectionStatus extends com.google.api.client.json.GenericJson { /** - * The consensus state contains the information about the status of update and delete for a - * consensus peering connection. + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,8 +55,8 @@ public final class NetworkPeeringConnectionStatus extends com.google.api.client. private java.lang.String updateStrategy; /** - * The consensus state contains the information about the status of update and delete for a - * consensus peering connection. + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatusConsensusState getConsensusState() { @@ -64,8 +64,8 @@ public NetworkPeeringConnectionStatusConsensusState getConsensusState() { } /** - * The consensus state contains the information about the status of update and delete for a - * consensus peering connection. + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. * @param consensusState consensusState or {@code null} for none */ public NetworkPeeringConnectionStatus setConsensusState(NetworkPeeringConnectionStatusConsensusState consensusState) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java index 452aad91769..0f7f7086d44 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java @@ -17,9 +17,9 @@ package com.google.api.services.compute.model; /** - * Surfaces relevant state for a consensus peering connection update/delete semantics. Only set when - * connection_status.update_strategy is CONSENSUS or one network peering is proposing upgrading to - * CONSENSUS. + * The status of update/delete for a consensus peering connection. Only set when + * connection_status.update_strategy is CONSENSUS or a network peering is proposing to update the + * strategy to CONSENSUS. * *

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 Compute Engine API. For a detailed explanation see: diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java index 0e30d1ce2d7..0971f683c6b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java @@ -37,21 +37,21 @@ public final class NetworkPeeringConnectionStatusTrafficConfiguration extends co private java.lang.Boolean exportCustomRoutesToPeer; /** - * Whether subnet routes with public IP range are being exported to the peer network. + * Whether subnet routes with public IP ranges are being exported to the peer network. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer; /** - * Whether custom routes is being imported from the peer network. + * Whether custom routes are being imported from the peer network. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean importCustomRoutesFromPeer; /** - * Whether subnet routes with public IP range are being imported from the peer network. + * Whether subnet routes with public IP ranges are being imported from the peer network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public NetworkPeeringConnectionStatusTrafficConfiguration setExportCustomRoutesT } /** - * Whether subnet routes with public IP range are being exported to the peer network. + * Whether subnet routes with public IP ranges are being exported to the peer network. * @return value or {@code null} for none */ public java.lang.Boolean getExportSubnetRoutesWithPublicIpToPeer() { @@ -90,7 +90,7 @@ public java.lang.Boolean getExportSubnetRoutesWithPublicIpToPeer() { } /** - * Whether subnet routes with public IP range are being exported to the peer network. + * Whether subnet routes with public IP ranges are being exported to the peer network. * @param exportSubnetRoutesWithPublicIpToPeer exportSubnetRoutesWithPublicIpToPeer or {@code null} for none */ public NetworkPeeringConnectionStatusTrafficConfiguration setExportSubnetRoutesWithPublicIpToPeer(java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer) { @@ -99,7 +99,7 @@ public NetworkPeeringConnectionStatusTrafficConfiguration setExportSubnetRoutesW } /** - * Whether custom routes is being imported from the peer network. + * Whether custom routes are being imported from the peer network. * @return value or {@code null} for none */ public java.lang.Boolean getImportCustomRoutesFromPeer() { @@ -107,7 +107,7 @@ public java.lang.Boolean getImportCustomRoutesFromPeer() { } /** - * Whether custom routes is being imported from the peer network. + * Whether custom routes are being imported from the peer network. * @param importCustomRoutesFromPeer importCustomRoutesFromPeer or {@code null} for none */ public NetworkPeeringConnectionStatusTrafficConfiguration setImportCustomRoutesFromPeer(java.lang.Boolean importCustomRoutesFromPeer) { @@ -116,7 +116,7 @@ public NetworkPeeringConnectionStatusTrafficConfiguration setImportCustomRoutesF } /** - * Whether subnet routes with public IP range are being imported from the peer network. + * Whether subnet routes with public IP ranges are being imported from the peer network. * @return value or {@code null} for none */ public java.lang.Boolean getImportSubnetRoutesWithPublicIpFromPeer() { @@ -124,7 +124,7 @@ public java.lang.Boolean getImportSubnetRoutesWithPublicIpFromPeer() { } /** - * Whether subnet routes with public IP range are being imported from the peer network. + * Whether subnet routes with public IP ranges are being imported from the peer network. * @param importSubnetRoutesWithPublicIpFromPeer importSubnetRoutesWithPublicIpFromPeer or {@code null} for none */ public NetworkPeeringConnectionStatusTrafficConfiguration setImportSubnetRoutesWithPublicIpFromPeer(java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java index 99ef9b89719..9d2edd45901 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java @@ -162,8 +162,8 @@ public final class PublicDelegatedPrefix extends com.google.api.client.json.Gene * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -509,8 +509,8 @@ public PublicDelegatedPrefix setSelfLinkWithId(java.lang.String selfLinkWithId) * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -521,8 +521,8 @@ public java.lang.String getStatus() { * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * @param status status or {@code null} for none */ public PublicDelegatedPrefix setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java index 0256a71e2f9..986350a3c1e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -122,6 +122,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Protection tier for the workload which specifies the workload expectations in the event of + * infrastructure failures at data center (e.g. power and/or cooling failures). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String protectionTier; + /** * [Output only] Indicates the reservation mode of the reservation. * The value may be {@code null}. @@ -159,6 +167,13 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; + /** + * The type of maintenance for the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedulingType; + /** * [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. @@ -436,6 +451,25 @@ public Reservation setName(java.lang.String name) { return this; } + /** + * Protection tier for the workload which specifies the workload expectations in the event of + * infrastructure failures at data center (e.g. power and/or cooling failures). + * @return value or {@code null} for none + */ + public java.lang.String getProtectionTier() { + return protectionTier; + } + + /** + * Protection tier for the workload which specifies the workload expectations in the event of + * infrastructure failures at data center (e.g. power and/or cooling failures). + * @param protectionTier protectionTier or {@code null} for none + */ + public Reservation setProtectionTier(java.lang.String protectionTier) { + this.protectionTier = protectionTier; + return this; + } + /** * [Output only] Indicates the reservation mode of the reservation. * @return value or {@code null} for none @@ -525,6 +559,23 @@ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { return this; } + /** + * The type of maintenance for the reservation. + * @return value or {@code null} for none + */ + public java.lang.String getSchedulingType() { + return schedulingType; + } + + /** + * The type of maintenance for the reservation. + * @param schedulingType schedulingType or {@code null} for none + */ + public Reservation setSchedulingType(java.lang.String schedulingType) { + this.schedulingType = schedulingType; + return this; + } + /** * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 009138b549d..e5235bcbed7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -81,6 +81,13 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi @com.google.api.client.util.Key private ReservationSubBlockPhysicalTopology physicalTopology; + /** + * Maintenance information for this reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GroupMaintenanceInfo reservationSubBlockMaintenance; + /** * [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. @@ -234,6 +241,23 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo return this; } + /** + * Maintenance information for this reservation subBlock. + * @return value or {@code null} for none + */ + public GroupMaintenanceInfo getReservationSubBlockMaintenance() { + return reservationSubBlockMaintenance; + } + + /** + * Maintenance information for this reservation subBlock. + * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none + */ + public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { + this.reservationSubBlockMaintenance = reservationSubBlockMaintenance; + return this; + } + /** * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java index aefb2a1b9e5..a4fb3dc3ba9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java @@ -29,6 +29,34 @@ @SuppressWarnings("javadoc") public final class ResourceStatusEffectiveInstanceMetadata extends com.google.api.client.json.GenericJson { + /** + * Effective block-project-ssh-keys value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean blockProjectSshKeysMetadataValue; + + /** + * Effective enable-guest-attributes value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableGuestAttributesMetadataValue; + + /** + * Effective enable-os-inventory value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOsInventoryMetadataValue; + + /** + * Effective enable-osconfig value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOsconfigMetadataValue; + /** * Effective enable-oslogin value at Instance level. * The value may be {@code null}. @@ -36,6 +64,20 @@ public final class ResourceStatusEffectiveInstanceMetadata extends com.google.ap @com.google.api.client.util.Key private java.lang.Boolean enableOsloginMetadataValue; + /** + * Effective serial-port-enable value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean serialPortEnableMetadataValue; + + /** + * Effective serial-port-logging-enable value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean serialPortLoggingEnableMetadataValue; + /** * Effective VM DNS setting at Instance level. * The value may be {@code null}. @@ -43,6 +85,74 @@ public final class ResourceStatusEffectiveInstanceMetadata extends com.google.ap @com.google.api.client.util.Key private java.lang.String vmDnsSettingMetadataValue; + /** + * Effective block-project-ssh-keys value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBlockProjectSshKeysMetadataValue() { + return blockProjectSshKeysMetadataValue; + } + + /** + * Effective block-project-ssh-keys value at Instance level. + * @param blockProjectSshKeysMetadataValue blockProjectSshKeysMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setBlockProjectSshKeysMetadataValue(java.lang.Boolean blockProjectSshKeysMetadataValue) { + this.blockProjectSshKeysMetadataValue = blockProjectSshKeysMetadataValue; + return this; + } + + /** + * Effective enable-guest-attributes value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableGuestAttributesMetadataValue() { + return enableGuestAttributesMetadataValue; + } + + /** + * Effective enable-guest-attributes value at Instance level. + * @param enableGuestAttributesMetadataValue enableGuestAttributesMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableGuestAttributesMetadataValue(java.lang.Boolean enableGuestAttributesMetadataValue) { + this.enableGuestAttributesMetadataValue = enableGuestAttributesMetadataValue; + return this; + } + + /** + * Effective enable-os-inventory value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOsInventoryMetadataValue() { + return enableOsInventoryMetadataValue; + } + + /** + * Effective enable-os-inventory value at Instance level. + * @param enableOsInventoryMetadataValue enableOsInventoryMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableOsInventoryMetadataValue(java.lang.Boolean enableOsInventoryMetadataValue) { + this.enableOsInventoryMetadataValue = enableOsInventoryMetadataValue; + return this; + } + + /** + * Effective enable-osconfig value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOsconfigMetadataValue() { + return enableOsconfigMetadataValue; + } + + /** + * Effective enable-osconfig value at Instance level. + * @param enableOsconfigMetadataValue enableOsconfigMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableOsconfigMetadataValue(java.lang.Boolean enableOsconfigMetadataValue) { + this.enableOsconfigMetadataValue = enableOsconfigMetadataValue; + return this; + } + /** * Effective enable-oslogin value at Instance level. * @return value or {@code null} for none @@ -60,6 +170,40 @@ public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(jav return this; } + /** + * Effective serial-port-enable value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSerialPortEnableMetadataValue() { + return serialPortEnableMetadataValue; + } + + /** + * Effective serial-port-enable value at Instance level. + * @param serialPortEnableMetadataValue serialPortEnableMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setSerialPortEnableMetadataValue(java.lang.Boolean serialPortEnableMetadataValue) { + this.serialPortEnableMetadataValue = serialPortEnableMetadataValue; + return this; + } + + /** + * Effective serial-port-logging-enable value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSerialPortLoggingEnableMetadataValue() { + return serialPortLoggingEnableMetadataValue; + } + + /** + * Effective serial-port-logging-enable value at Instance level. + * @param serialPortLoggingEnableMetadataValue serialPortLoggingEnableMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setSerialPortLoggingEnableMetadataValue(java.lang.Boolean serialPortLoggingEnableMetadataValue) { + this.serialPortLoggingEnableMetadataValue = serialPortLoggingEnableMetadataValue; + return this; + } + /** * Effective VM DNS setting at Instance level. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java index 2cb3cb6c1d3..a555297c576 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java @@ -50,8 +50,8 @@ public final class SecurityPolicyAdvancedOptionsConfig extends com.google.api.cl private java.lang.String logLevel; /** - * The maximum request size chosen by the customer with Waf enabled. Currently only "8KB" and - * "128KB" are supported. Values are case insensitive. + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,8 +115,8 @@ public SecurityPolicyAdvancedOptionsConfig setLogLevel(java.lang.String logLevel } /** - * The maximum request size chosen by the customer with Waf enabled. Currently only "8KB" and - * "128KB" are supported. Values are case insensitive. + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. * @return value or {@code null} for none */ public java.lang.String getRequestBodyInspectionSize() { @@ -124,8 +124,8 @@ public java.lang.String getRequestBodyInspectionSize() { } /** - * The maximum request size chosen by the customer with Waf enabled. Currently only "8KB" and - * "128KB" are supported. Values are case insensitive. + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. * @param requestBodyInspectionSize requestBodyInspectionSize or {@code null} for none */ public SecurityPolicyAdvancedOptionsConfig setRequestBodyInspectionSize(java.lang.String requestBodyInspectionSize) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java index 17d5630766a..13ffdf6dae0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java @@ -29,12 +29,72 @@ @SuppressWarnings("javadoc") public final class SecurityPolicyDdosProtectionConfig extends com.google.api.client.json.GenericJson { + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ddosAdaptiveProtection; + + /** + * Adaptive Protection for Network Load Balancers (and VMs with public IPs) builds DDos + * mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse + * baseline that's inadvertently blocked. Rules whose collateral damage exceeds + * ddosAdaptiveImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize + * keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some + * or all of the attack. It should typically be between 0.01 and 0.10. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float ddosImpactedBaselineThreshold; + /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ddosProtection; + /** + * @return value or {@code null} for none + */ + public java.lang.String getDdosAdaptiveProtection() { + return ddosAdaptiveProtection; + } + + /** + * @param ddosAdaptiveProtection ddosAdaptiveProtection or {@code null} for none + */ + public SecurityPolicyDdosProtectionConfig setDdosAdaptiveProtection(java.lang.String ddosAdaptiveProtection) { + this.ddosAdaptiveProtection = ddosAdaptiveProtection; + return this; + } + + /** + * Adaptive Protection for Network Load Balancers (and VMs with public IPs) builds DDos + * mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse + * baseline that's inadvertently blocked. Rules whose collateral damage exceeds + * ddosAdaptiveImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize + * keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some + * or all of the attack. It should typically be between 0.01 and 0.10. + * @return value or {@code null} for none + */ + public java.lang.Float getDdosImpactedBaselineThreshold() { + return ddosImpactedBaselineThreshold; + } + + /** + * Adaptive Protection for Network Load Balancers (and VMs with public IPs) builds DDos + * mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse + * baseline that's inadvertently blocked. Rules whose collateral damage exceeds + * ddosAdaptiveImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize + * keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some + * or all of the attack. It should typically be between 0.01 and 0.10. + * @param ddosImpactedBaselineThreshold ddosImpactedBaselineThreshold or {@code null} for none + */ + public SecurityPolicyDdosProtectionConfig setDdosImpactedBaselineThreshold(java.lang.Float ddosImpactedBaselineThreshold) { + this.ddosImpactedBaselineThreshold = ddosImpactedBaselineThreshold; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java index e95ecb226cd..27a7d679b59 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java @@ -35,14 +35,14 @@ public final class StructuredEntries extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map entries; + private java.util.Map entries; /** * Map of a partner metadata that belong to the same subdomain. It accepts any value including * google.protobuf.Struct. * @return value or {@code null} for none */ - public java.util.Map getEntries() { + public java.util.Map getEntries() { return entries; } @@ -51,7 +51,7 @@ public java.util.Map getEntries() { * google.protobuf.Struct. * @param entries entries or {@code null} for none */ - public StructuredEntries setEntries(java.util.Map entries) { + public StructuredEntries setEntries(java.util.Map entries) { this.entries = entries; return this; } diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 4572c6a758a..a516c24542b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -347,6 +347,22 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String state; + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedExternalIpv6Ranges; + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedInternalIpv6Ranges; + /** * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the * total number of allocated and free IPs in each range. @@ -1137,6 +1153,44 @@ public Subnetwork setState(java.lang.String state) { return this; } + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedExternalIpv6Ranges() { + return systemReservedExternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @param systemReservedExternalIpv6Ranges systemReservedExternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedExternalIpv6Ranges(java.util.List systemReservedExternalIpv6Ranges) { + this.systemReservedExternalIpv6Ranges = systemReservedExternalIpv6Ranges; + return this; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedInternalIpv6Ranges() { + return systemReservedInternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @param systemReservedInternalIpv6Ranges systemReservedInternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedInternalIpv6Ranges(java.util.List systemReservedInternalIpv6Ranges) { + this.systemReservedInternalIpv6Ranges = systemReservedInternalIpv6Ranges; + return this; + } + /** * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the * total number of allocated and free IPs in each range. diff --git a/clients/google-api-services-compute/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index e86d9f7c8a9..3574e724275 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/pom.xml +++ b/clients/google-api-services-compute/alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - alpha-rev20250415-2.0.0 - Compute Engine API alpha-rev20250415-2.0.0 + alpha-rev20250511-2.0.0 + Compute Engine API alpha-rev20250511-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/alpha/README.md b/clients/google-api-services-compute/alpha/README.md index c5db4a81673..9c675fe8765 100644 --- a/clients/google-api-services-compute/alpha/README.md +++ b/clients/google-api-services-compute/alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20250415-2.0.0 + alpha-rev20250511-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20250415-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20250511-2.0.0' } ``` diff --git a/clients/google-api-services-compute/beta/2.0.0/README.md b/clients/google-api-services-compute/beta/2.0.0/README.md index 18844ed61e1..de4dcc5f5c6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/README.md +++ b/clients/google-api-services-compute/beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - beta-rev20250415-2.0.0 + beta-rev20250511-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20250415-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20250511-2.0.0' } ``` diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java index 475f00d21bd..d31c6bc463f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java @@ -15838,6 +15838,240 @@ public BulkInsert set(String parameterName, Object value) { return (BulkInsert) super.set(parameterName, value); } } + /** + * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "disks.bulkSetLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link BulkSetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} + * @return the request + */ + public BulkSetLabels bulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest content) throws java.io.IOException { + BulkSetLabels result = new BulkSetLabels(project, zone, content); + initialize(result); + return result; + } + + public class BulkSetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkSetLabels"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "disks.bulkSetLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link BulkSetLabels#execute()} method to invoke the remote operation.

+ * {@link BulkSetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} + * @since 1.13 + */ + protected BulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public BulkSetLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkSetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public BulkSetLabels setAccessToken(java.lang.String accessToken) { + return (BulkSetLabels) super.setAccessToken(accessToken); + } + + @Override + public BulkSetLabels setAlt(java.lang.String alt) { + return (BulkSetLabels) super.setAlt(alt); + } + + @Override + public BulkSetLabels setCallback(java.lang.String callback) { + return (BulkSetLabels) super.setCallback(callback); + } + + @Override + public BulkSetLabels setFields(java.lang.String fields) { + return (BulkSetLabels) super.setFields(fields); + } + + @Override + public BulkSetLabels setKey(java.lang.String key) { + return (BulkSetLabels) super.setKey(key); + } + + @Override + public BulkSetLabels setOauthToken(java.lang.String oauthToken) { + return (BulkSetLabels) super.setOauthToken(oauthToken); + } + + @Override + public BulkSetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkSetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkSetLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkSetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public BulkSetLabels setUploadType(java.lang.String uploadType) { + return (BulkSetLabels) super.setUploadType(uploadType); + } + + @Override + public BulkSetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkSetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public BulkSetLabels setUserIp(java.lang.String userIp) { + return (BulkSetLabels) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public BulkSetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public BulkSetLabels setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public BulkSetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public BulkSetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public BulkSetLabels set(String parameterName, Object value) { + return (BulkSetLabels) super.set(parameterName, value); + } + } /** * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using * snapshots.insert instead, as that method supports more features, such as creating snapshots in a @@ -75886,143 +76120,141 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectAttachments collection. + * An accessor for creating requests from the InterconnectAttachmentGroups collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
+   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
    * 
* * @return the resource collection */ - public InterconnectAttachments interconnectAttachments() { - return new InterconnectAttachments(); + public InterconnectAttachmentGroups interconnectAttachmentGroups() { + return new InterconnectAttachmentGroups(); } /** - * The "interconnectAttachments" collection of methods. + * The "interconnectAttachmentGroups" collection of methods. */ - public class InterconnectAttachments { + public class InterconnectAttachmentGroups { /** - * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends - * that you set the `returnPartialSuccess` parameter to `true`. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "interconnectAttachments.aggregatedList". + * Create a request for the method "interconnectAttachmentGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Delete delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectAttachmentGroup); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends - * that you set the `returnPartialSuccess` parameter to `true`. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "interconnectAttachments.aggregatedList". + * Create a request for the method "interconnectAttachmentGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); + protected Delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76036,7 +76268,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -76046,403 +76278,376 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ + /** Name of the InterconnectAttachmentGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String interconnectAttachmentGroup; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. + /** Name of the InterconnectAttachmentGroup resource to delete. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + /** Name of the InterconnectAttachmentGroup resource to delete. */ + public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String requestId; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getRequestId() { + return requestId; } /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } + } + /** + * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Get result = new Get(project, interconnectAttachmentGroup); + initialize(result); + return result; + } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } + public class Get extends ComputeRequest { - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + protected Get(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroup.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String project; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Project ID for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getProject() { + return project; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name of the InterconnectAttachmentGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String interconnectAttachmentGroup; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name of the InterconnectAttachmentGroup resource to return. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + /** Name of the InterconnectAttachmentGroup resource to return. */ + public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified interconnect attachment. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectAttachments.delete". + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @param resource Name or id of the resource for this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, interconnectAttachment); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified interconnect attachment. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectAttachments.delete". + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76456,7 +76661,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -76466,158 +76671,106 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the interconnect attachment to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String resource; - /** Name of the interconnect attachment to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect attachment to delete. */ - public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer optionsRequestedPolicyVersion; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified interconnect attachment. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "interconnectAttachments.get". + * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Get result = new Get(project, region, interconnectAttachment); + public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + GetOperationalStatus result = new GetOperationalStatus(project, interconnectAttachmentGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified interconnect attachment. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "interconnectAttachments.get". + * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation.

{@link GetOperationalStatus#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.class); + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsGetOperationalStatusResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -76633,63 +76786,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76703,7 +76856,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public GetOperationalStatus setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -76713,88 +76866,63 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the interconnect attachment to return. */ + /** Name of the interconnectAttachmentGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectAttachmentGroup; - /** Name of the interconnect attachment to return. + /** Name of the interconnectAttachmentGroup resource to query. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the interconnect attachment to return. */ - public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name of the interconnectAttachmentGroup resource to query. */ + public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); } } /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. * - * Create a request for the method "interconnectAttachments.insert". + * Create a request for the method "interconnectAttachmentGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. * - * Create a request for the method "interconnectAttachments.insert". + * Create a request for the method "interconnectAttachmentGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -76802,11 +76930,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -76814,12 +76941,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -76903,27 +77024,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -76932,7 +77032,7 @@ public Insert setRegion(java.lang.String region) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -76943,7 +77043,8 @@ public Insert setRegion(java.lang.String region) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -76957,66 +77058,46 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * Create a request for the method "interconnectAttachmentGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); - initialize(result); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * Create a request for the method "interconnectAttachmentGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -77024,23 +77105,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -77134,27 +77208,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -77369,44 +77422,41 @@ public List set(String parameterName, Object value) { } } /** - * Updates the specified interconnect attachment with the data included in the request. This method - * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. + * This method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "interconnectAttachments.patch". + * Create a request for the method "interconnectAttachmentGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, interconnectAttachment, content); + public Patch patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectAttachmentGroup, content); initialize(result); return result; } public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified interconnect attachment with the data included in the request. This - * method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Patches the specified InterconnectAttachmentGroup resource with the data included in the + * request. This method supports PATCH semantics and uses JSON merge patch format and processing + * rules. * - * Create a request for the method "interconnectAttachments.patch". + * Create a request for the method "interconnectAttachmentGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link @@ -77414,12 +77464,11 @@ public class Patch extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + protected Patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -77427,16 +77476,10 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -77522,45 +77565,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the interconnect attachment to patch. */ + /** Name of the InterconnectAttachmentGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectAttachmentGroup; - /** Name of the interconnect attachment to patch. + /** Name of the InterconnectAttachmentGroup resource to patch. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the interconnect attachment to patch. */ - public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name of the InterconnectAttachmentGroup resource to patch. */ + public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @@ -77572,7 +77594,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -77583,7 +77605,8 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -77597,150 +77620,153 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.setLabels". + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.setLabels". + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

+ * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

* {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region The region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -77754,7 +77780,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -77764,27 +77790,6 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -77796,98 +77801,54 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachments.testIamPermissions". + * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachments.testIamPermissions". + * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote @@ -77896,12 +77857,11 @@ public class TestIamPermissions extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -77909,17 +77869,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -78004,27 +77958,6 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -78040,7 +77973,7 @@ public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -78055,241 +77988,67 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectLocations collection. + * An accessor for creating requests from the InterconnectAttachments collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
+   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
    * 
* * @return the resource collection */ - public InterconnectLocations interconnectLocations() { - return new InterconnectLocations(); + public InterconnectAttachments interconnectAttachments() { + return new InterconnectAttachments(); } /** - * The "interconnectLocations" collection of methods. + * The "interconnectAttachments" collection of methods. */ - public class InterconnectLocations { - - /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. - * - * Create a request for the method "interconnectLocations.get". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnectLocation Name of the interconnect location to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { - Get result = new Get(project, interconnectLocation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern INTERCONNECT_LOCATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. - * - * Create a request for the method "interconnectLocations.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param interconnectLocation Name of the interconnect location to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String interconnectLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @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); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name of the interconnect location to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnectLocation; - - /** Name of the interconnect location to return. - */ - public java.lang.String getInterconnectLocation() { - return interconnectLocation; - } - - /** Name of the interconnect location to return. */ - public Get setInterconnectLocation(java.lang.String interconnectLocation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectLocation = interconnectLocation; - return this; - } + public class InterconnectAttachments { - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Retrieves the list of interconnect locations available to the specified project. + * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends + * that you set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "interconnectLocations.list". + * Create a request for the method "interconnectAttachments.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; + private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of interconnect locations available to the specified project. + * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends + * that you set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "interconnectLocations.list". + * Create a request for the method "interconnectAttachments.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocationList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -78309,63 +78068,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -78379,7 +78138,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -78477,11 +78236,45 @@ public java.lang.String getFilter() { * instances that do not end with name "instance", you would use `name ne .*instance`. You * cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -78506,7 +78299,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -78541,7 +78334,7 @@ public java.lang.String getOrderBy() { * this to sort resources like operations so that the newest operation is returned first. * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -78564,7 +78357,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -78592,167 +78385,166 @@ public java.lang.Boolean getReturnPartialSuccess() { * aggregatedList for a single zone scope either returns all resources in the zone or no * resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; - /** - * An accessor for creating requests from the InterconnectRemoteLocations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectRemoteLocations.List request = compute.interconnectRemoteLocations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectRemoteLocations interconnectRemoteLocations() { - return new InterconnectRemoteLocations(); - } + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } - /** - * The "interconnectRemoteLocations" collection of methods. - */ - public class InterconnectRemoteLocations { + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } /** - * Returns the details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making a list() request. + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectRemoteLocations.get". + * Create a request for the method "interconnectAttachments.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectRemoteLocation Name of the interconnect remote location to return. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { - Get result = new Get(project, interconnectRemoteLocation); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, interconnectAttachment); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_REMOTE_LOCATION_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making a list() request. + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectRemoteLocations.get". + * Create a request for the method "interconnectAttachments.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param interconnectRemoteLocation Name of the interconnect remote location to return. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String interconnectRemoteLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -78766,7 +78558,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -78776,77 +78568,160 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect remote location to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectRemoteLocation; + private java.lang.String region; - /** Name of the interconnect remote location to return. + /** Name of the region for this request. */ - public java.lang.String getInterconnectRemoteLocation() { - return interconnectRemoteLocation; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnect remote location to return. */ - public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to delete. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to delete. */ + public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectRemoteLocation = interconnectRemoteLocation; + this.interconnectAttachment = interconnectAttachment; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectRemoteLocations.list". + * Create a request for the method "interconnectAttachments.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Get result = new Get(project, region, interconnectAttachment); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectRemoteLocations.list". + * Create a request for the method "interconnectAttachments.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocationList.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -78860,63 +78735,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -78930,7 +78805,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -78940,358 +78815,173 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the region for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + /** Name of the interconnect attachment to return. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String interconnectAttachment; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Name of the interconnect attachment to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the interconnect attachment to return. */ + public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Interconnects collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Interconnects interconnects() { - return new Interconnects(); - } - - /** - * The "interconnects" collection of methods. - */ - public class Interconnects { - /** - * Deletes the specified Interconnect. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnects.delete". + * Create a request for the method "interconnectAttachments.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to delete. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Delete result = new Delete(project, interconnect); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Deletes the specified Interconnect. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnects.delete". + * Create a request for the method "interconnectAttachments.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect to delete. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -79305,7 +78995,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -79315,24 +79005,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the interconnect to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String region; - /** Name of the interconnect to delete. + /** Name of the region for this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnect to delete. */ - public Delete setInterconnect(java.lang.String interconnect) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnect = interconnect; + this.region = region; return this; } @@ -79371,73 +79061,87 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * Retrieves the list of interconnect attachments contained within the specified region. * - * Create a request for the method "interconnects.get". + * Create a request for the method "interconnectAttachments.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to return. + * @param region Name of the region for this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Get result = new Get(project, interconnect); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * Retrieves the list of interconnect attachments contained within the specified region. * - * Create a request for the method "interconnects.get". + * Create a request for the method "interconnectAttachments.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect to return. + * @param region Name of the region for this request. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Interconnect.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -79452,63 +79156,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -79522,7 +79226,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -79532,165 +79236,371 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String region; - /** Name of the interconnect to return. + /** Name of the region for this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnect to return. */ - public Get setInterconnect(java.lang.String interconnect) { + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnect = interconnect; + this.region = region; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; 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); } } /** - * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global - * outage, do not use this API to make decisions about where to redirect your network traffic. - * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global - * resource. A global outage can prevent this API from functioning properly. + * Updates the specified interconnect attachment with the data included in the request. This method + * supports PATCH semantics and uses the JSON merge patch format and processing rules. * - * Create a request for the method "interconnects.getDiagnostics". + * Create a request for the method "interconnectAttachments.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @return the request */ - public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetDiagnostics result = new GetDiagnostics(project, interconnect); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, interconnectAttachment, content); initialize(result); return result; } - public class GetDiagnostics extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global - * outage, do not use this API to make decisions about where to redirect your network traffic. - * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global - * resource. A global outage can prevent this API from functioning properly. + * Updates the specified interconnect attachment with the data included in the request. This + * method supports PATCH semantics and uses the JSON merge patch format and processing rules. * - * Create a request for the method "interconnects.getDiagnostics". + * Create a request for the method "interconnectAttachments.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. - *

{@link GetDiagnostics#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @since 1.13 */ - protected GetDiagnostics(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetDiagnosticsResponse.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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 GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { - return (GetDiagnostics) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetDiagnostics setAccessToken(java.lang.String accessToken) { - return (GetDiagnostics) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetDiagnostics setAlt(java.lang.String alt) { - return (GetDiagnostics) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetDiagnostics setCallback(java.lang.String callback) { - return (GetDiagnostics) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetDiagnostics setFields(java.lang.String fields) { - return (GetDiagnostics) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetDiagnostics setKey(java.lang.String key) { - return (GetDiagnostics) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetDiagnostics setOauthToken(java.lang.String oauthToken) { - return (GetDiagnostics) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetDiagnostics) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { - return (GetDiagnostics) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetDiagnostics setUploadType(java.lang.String uploadType) { - return (GetDiagnostics) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { - return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetDiagnostics setUserIp(java.lang.String userIp) { - return (GetDiagnostics) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -79704,7 +79614,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetDiagnostics setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -79714,159 +79624,225 @@ public GetDiagnostics setProject(java.lang.String project) { return this; } - /** Name of the interconnect resource to query. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String region; - /** Name of the interconnect resource to query. + /** Name of the region scoping this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnect resource to query. */ - public GetDiagnostics setInterconnect(java.lang.String interconnect) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to patch. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to patch. */ + public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetDiagnostics set(String parameterName, Object value) { - return (GetDiagnostics) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the interconnectMacsecConfig for the specified Interconnect. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnects.getMacsecConfig". + * Create a request for the method "interconnectAttachments.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @return the request */ - public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetMacsecConfig result = new GetMacsecConfig(project, interconnect); + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); initialize(result); return result; } - public class GetMacsecConfig extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the interconnectMacsecConfig for the specified Interconnect. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnects.getMacsecConfig". + * Create a request for the method "interconnectAttachments.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. - *

{@link GetMacsecConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

+ * {@link + * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @since 1.13 */ - protected GetMacsecConfig(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetMacsecConfigResponse.class); + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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 GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { - return (GetMacsecConfig) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public GetMacsecConfig setAccessToken(java.lang.String accessToken) { - return (GetMacsecConfig) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public GetMacsecConfig setAlt(java.lang.String alt) { - return (GetMacsecConfig) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public GetMacsecConfig setCallback(java.lang.String callback) { - return (GetMacsecConfig) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public GetMacsecConfig setFields(java.lang.String fields) { - return (GetMacsecConfig) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public GetMacsecConfig setKey(java.lang.String key) { - return (GetMacsecConfig) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { - return (GetMacsecConfig) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { - return (GetMacsecConfig) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public GetMacsecConfig setUploadType(java.lang.String uploadType) { - return (GetMacsecConfig) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public GetMacsecConfig setUserIp(java.lang.String userIp) { - return (GetMacsecConfig) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -79880,7 +79856,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetMacsecConfig setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -79890,139 +79866,223 @@ public GetMacsecConfig setProject(java.lang.String project) { return this; } - /** Name of the interconnect resource to query. */ + /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String region; - /** Name of the interconnect resource to query. + /** The region for this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnect resource to query. */ - public GetMacsecConfig setInterconnect(java.lang.String interconnect) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; + this.resource = resource; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetMacsecConfig set(String parameterName, Object value) { - return (GetMacsecConfig) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Creates an Interconnect in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnects.insert". + * Create a request for the method "interconnectAttachments.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { - Insert result = new Insert(project, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates an Interconnect in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnects.insert". + * Create a request for the method "interconnectAttachments.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80036,7 +80096,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80046,166 +80106,195 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** The name of the region for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getRegion() { + return region; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InterconnectGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectGroups interconnectGroups() { + return new InterconnectGroups(); + } + + /** + * The "interconnectGroups" collection of methods. + */ + public class InterconnectGroups { + /** - * Retrieves the list of Interconnects available to the specified project. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnects.list". + * Create a request for the method "interconnectGroups.createMembers". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) throws java.io.IOException { + CreateMembers result = new CreateMembers(project, interconnectGroup, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class CreateMembers extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of Interconnects available to the specified project. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnects.list". + * Create a request for the method "interconnectGroups.createMembers". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation.

+ * {@link CreateMembers#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *

* * @param project Project ID for this request. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectList.class); + protected CreateMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); } @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); - } - - @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80219,7 +80308,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public CreateMembers setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80229,339 +80318,148 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + /** Name of the group resource to create members for. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String interconnectGroup; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Name of the group resource to create members for. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the group resource to create members for. */ + public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); } } /** - * Updates the specified Interconnect with the data included in the request. This method supports - * PATCH semantics and uses the JSON merge patch format and processing rules. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnects.patch". + * Create a request for the method "interconnectGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to update. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectGroup Name of the InterconnectGroup resource to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { - Patch result = new Patch(project, interconnect, content); + public Delete delete(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectGroup); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified Interconnect with the data included in the request. This method supports - * PATCH semantics and uses the JSON merge patch format and processing rules. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnects.patch". + * Create a request for the method "interconnectGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect to update. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectGroup Name of the InterconnectGroup resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80575,7 +80473,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80585,24 +80483,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the interconnect to update. */ + /** Name of the InterconnectGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String interconnectGroup; - /** Name of the interconnect to update. + /** Name of the InterconnectGroup resource to delete. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect to update. */ - public Patch setInterconnect(java.lang.String interconnect) { + /** Name of the InterconnectGroup resource to delete. */ + public Delete setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; + this.interconnectGroup = interconnectGroup; return this; } @@ -80614,7 +80512,7 @@ public Patch setInterconnect(java.lang.String interconnect) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -80625,7 +80523,8 @@ public Patch setInterconnect(java.lang.String interconnect) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -80639,139 +80538,144 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. + * Returns the specified InterconnectGroup resource in the given scope. * - * Create a request for the method "interconnects.setLabels". + * Create a request for the method "interconnectGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param interconnectGroup Name of the InterconnectGroup resource to return. * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); + public Get get(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Get result = new Get(project, interconnectGroup); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. + * Returns the specified InterconnectGroup resource in the given scope. * - * Create a request for the method "interconnects.setLabels". + * Create a request for the method "interconnectGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param interconnectGroup Name of the InterconnectGroup resource to return. * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80785,7 +80689,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80795,54 +80699,53 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the InterconnectGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnectGroup; - /** Name or id of the resource for this request. + /** Name of the InterconnectGroup resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the InterconnectGroup resource to return. */ + public Get setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnectGroup = interconnectGroup; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnects.testIamPermissions". + * Create a request for the method "interconnectGroups.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -80851,23 +80754,23 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -80883,63 +80786,73 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80953,7 +80866,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80974,7 +80887,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -80984,93 +80897,84 @@ public TestIamPermissions setResource(java.lang.String resource) { return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; - /** - * An accessor for creating requests from the LicenseCodes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.LicenseCodes.List request = compute.licenseCodes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public LicenseCodes licenseCodes() { - return new LicenseCodes(); - } + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - /** - * The "licenseCodes" collection of methods. - */ - public class LicenseCodes { + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** - * Return a specified license code. License codes are mirrored across all projects that have - * permissions to read the License Code. *Caution* This resource is intended for use only by third- - * party partners who are creating Cloud Marketplace images. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "licenseCodes.get". + * Create a request for the method "interconnectGroups.getOperationalStatus". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param licenseCode Number corresponding to the License code resource to return. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @return the request */ - public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { - Get result = new Get(project, licenseCode); + public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + GetOperationalStatus result = new GetOperationalStatus(project, interconnectGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_CODE_PATTERN = - java.util.regex.Pattern.compile("[0-9]{0,61}?"); + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Return a specified license code. License codes are mirrored across all projects that have - * permissions to read the License Code. *Caution* This resource is intended for use only by - * third-party partners who are creating Cloud Marketplace images. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "licenseCodes.get". + * Create a request for the method "interconnectGroups.getOperationalStatus". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation.

{@link GetOperationalStatus#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param licenseCode Number corresponding to the License code resource to return. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String licenseCode) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicenseCode.class); + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsGetOperationalStatusResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -81085,233 +80989,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @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); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Number corresponding to the License code resource to return. */ - @com.google.api.client.util.Key - private java.lang.String licenseCode; - - /** Number corresponding to the License code resource to return. - */ - public java.lang.String getLicenseCode() { - return licenseCode; - } - - /** Number corresponding to the License code resource to return. */ - public Get setLicenseCode(java.lang.String licenseCode) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); - } - this.licenseCode = licenseCode; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is - * intended for use only by third-party partners who are creating Cloud Marketplace images. - * - * Create a request for the method "licenseCodes.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is - * intended for use only by third-party partners who are creating Cloud Marketplace images. - * - * Create a request for the method "licenseCodes.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -81325,7 +81059,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public GetOperationalStatus setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -81335,173 +81069,141 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnectGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnectGroup; - /** Name or id of the resource for this request. + /** Name of the interconnectGroup resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the interconnectGroup resource to query. */ + public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnectGroup = interconnectGroup; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Licenses collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Licenses licenses() { - return new Licenses(); - } - - /** - * The "licenses" collection of methods. - */ - public class Licenses { - /** - * Deletes the specified license. *Caution* This resource is intended for use only by third-party - * partners who are creating Cloud Marketplace images. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "licenses.delete". + * Create a request for the method "interconnectGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param license Name of the license resource to delete. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String license) throws java.io.IOException { - Delete result = new Delete(project, license); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified license. *Caution* This resource is intended for use only by third-party - * partners who are creating Cloud Marketplace images. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters + * that are included in the request. * - * Create a request for the method "licenses.delete". + * Create a request for the method "interconnectGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param license Name of the license resource to delete. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String license) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -81515,7 +81217,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -81525,27 +81227,6 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the license resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String license; - - /** Name of the license resource to delete. - */ - public java.lang.String getLicense() { - return license; - } - - /** Name of the license resource to delete. */ - public Delete setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -81554,7 +81235,7 @@ public Delete setLicense(java.lang.String license) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -81565,7 +81246,8 @@ public Delete setLicense(java.lang.String license) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -81579,76 +81261,63 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Delete setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified License resource. *Caution* This resource is intended for use only by - * third-party partners who are creating Cloud Marketplace images. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "licenses.get". + * Create a request for the method "interconnectGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param license Name of the License resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { - Get result = new Get(project, license); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified License resource. *Caution* This resource is intended for use only by - * third-party partners who are creating Cloud Marketplace images. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "licenses.get". + * Create a request for the method "interconnectGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param license Name of the License resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String license) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.License.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -81662,63 +81331,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -81732,7 +81401,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -81742,163 +81411,339 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the License resource to return. */ - @com.google.api.client.util.Key - private java.lang.String license; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** Name of the License resource to return. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getFilter() { + return filter; } - /** Name of the License resource to return. */ - public Get setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; 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); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * *Caution* This resource is intended for use only by third-party partners who are creating Cloud - * Marketplace images. + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "licenses.getIamPolicy". + * Create a request for the method "interconnectGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public Patch patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectGroup, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. *Caution* This resource is intended for use only by third-party partners who are - * creating Cloud Marketplace images. + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "licenses.getIamPolicy". + * Create a request for the method "interconnectGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -81912,7 +81757,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -81922,157 +81767,208 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the InterconnectGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnectGroup; - /** Name or id of the resource for this request. + /** Name of the InterconnectGroup resource to patch. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the InterconnectGroup resource to patch. */ + public Patch setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnectGroup = interconnectGroup; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Create a License resource in the specified project. *Caution* This resource is intended for use - * only by third-party partners who are creating Cloud Marketplace images. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "licenses.insert". + * Create a request for the method "interconnectGroups.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.License content) throws java.io.IOException { - Insert result = new Insert(project, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Create a License resource in the specified project. *Caution* This resource is intended for use - * only by third-party partners who are creating Cloud Marketplace images. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "licenses.insert". + * Create a request for the method "interconnectGroups.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.License content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -82086,7 +81982,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -82096,60 +81992,404 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves the list of licenses available in the specified project. This method does not get any - * licenses that belong to other projects, including licenses attached to publicly-available images, - * like Debian 9. If you want to get a list of publicly-available licenses, use this method to make - * a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This - * resource is intended for use only by third-party partners who are creating Cloud Marketplace - * images. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "licenses.list". + * Create a request for the method "interconnectGroups.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "interconnectGroups.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectLocations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectLocations interconnectLocations() { + return new InterconnectLocations(); + } + + /** + * The "interconnectLocations" collection of methods. + */ + public class InterconnectLocations { + + /** + * Returns the details for the specified interconnect location. Gets a list of available + * interconnect locations by making a list() request. + * + * Create a request for the method "interconnectLocations.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectLocation Name of the interconnect location to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { + Get result = new Get(project, interconnectLocation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_LOCATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the details for the specified interconnect location. Gets a list of available + * interconnect locations by making a list() request. + * + * Create a request for the method "interconnectLocations.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectLocation Name of the interconnect location to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectLocation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), + "Parameter interconnectLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the interconnect location to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectLocation; + + /** Name of the interconnect location to return. + */ + public java.lang.String getInterconnectLocation() { + return interconnectLocation; + } + + /** Name of the interconnect location to return. */ + public Get setInterconnectLocation(java.lang.String interconnectLocation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), + "Parameter interconnectLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectLocation = interconnectLocation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of interconnect locations available to the specified project. + * + * Create a request for the method "interconnectLocations.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -82163,22 +82403,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of licenses available in the specified project. This method does not get any - * licenses that belong to other projects, including licenses attached to publicly-available - * images, like Debian 9. If you want to get a list of publicly-available licenses, use this - * method to make a request to the respective image project, such as debian-cloud or windows- - * cloud. *Caution* This resource is intended for use only by third-party partners who are - * creating Cloud Marketplace images. + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "licenses.list". + * Create a request for the method "interconnectLocations.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -82189,7 +82424,7 @@ public class List extends ComputeRequestThe typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectRemoteLocations.List request = compute.interconnectRemoteLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectRemoteLocations interconnectRemoteLocations() { + return new InterconnectRemoteLocations(); + } + + /** + * The "interconnectRemoteLocations" collection of methods. + */ + public class InterconnectRemoteLocations { + /** - * Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* - * This resource is intended for use only by third-party partners who are creating Cloud Marketplace - * images. + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making a list() request. * - * Create a request for the method "licenses.setIamPolicy". + * Create a request for the method "interconnectRemoteLocations.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { + Get result = new Get(project, interconnectRemoteLocation); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_REMOTE_LOCATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * *Caution* This resource is intended for use only by third-party partners who are creating Cloud - * Marketplace images. + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making a list() request. * - * Create a request for the method "licenses.setIamPolicy". + * Create a request for the method "interconnectRemoteLocations.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Get(java.lang.String project, java.lang.String interconnectRemoteLocation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), + "Parameter interconnectRemoteLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -82638,7 +82901,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -82648,153 +82911,147 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect remote location to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnectRemoteLocation; - /** Name or id of the resource for this request. + /** Name of the interconnect remote location to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnectRemoteLocation() { + return interconnectRemoteLocation; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect remote location to return. */ + public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), + "Parameter interconnectRemoteLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnectRemoteLocation = interconnectRemoteLocation; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is - * intended for use only by third-party partners who are creating Cloud Marketplace images. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "licenses.testIamPermissions". + * Create a request for the method "interconnectRemoteLocations.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is - * intended for use only by third-party partners who are creating Cloud Marketplace images. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "licenses.testIamPermissions". + * Create a request for the method "interconnectRemoteLocations.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocationList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -82808,7 +83065,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -82818,88 +83075,274 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFilter() { + return filter; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MachineImages collection. + * An accessor for creating requests from the Interconnects collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
+   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
    * 
* * @return the resource collection */ - public MachineImages machineImages() { - return new MachineImages(); + public Interconnects interconnects() { + return new Interconnects(); } /** - * The "machineImages" collection of methods. + * The "interconnects" collection of methods. */ - public class MachineImages { + public class Interconnects { /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * Deletes the specified Interconnect. * - * Create a request for the method "machineImages.delete". + * Create a request for the method "interconnects.delete". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param machineImage The name of the machine image to delete. + * @param interconnect Name of the interconnect to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Delete result = new Delete(project, machineImage); + public Delete delete(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + Delete result = new Delete(project, interconnect); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be - * undone. + * Deletes the specified Interconnect. * - * Create a request for the method "machineImages.delete". + * Create a request for the method "interconnects.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link @@ -82907,10 +83350,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image to delete. + * @param interconnect Name of the interconnect to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String machineImage) { + protected Delete(java.lang.String project, java.lang.String interconnect) { super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -82918,10 +83361,10 @@ protected Delete(java.lang.String project, java.lang.String machineImage) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -83007,24 +83450,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the machine image to delete. */ + /** Name of the interconnect to delete. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String interconnect; - /** The name of the machine image to delete. + /** Name of the interconnect to delete. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getInterconnect() { + return interconnect; } - /** The name of the machine image to delete. */ - public Delete setMachineImage(java.lang.String machineImage) { + /** Name of the interconnect to delete. */ + public Delete setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.machineImage = machineImage; + this.interconnect = interconnect; return this; } @@ -83074,37 +83517,39 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified machine image. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "machineImages.get". + * Create a request for the method "interconnects.get". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param machineImage The name of the machine image. + * @param interconnect Name of the interconnect to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Get result = new Get(project, machineImage); + public Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + Get result = new Get(project, interconnect); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified machine image. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "machineImages.get". + * Create a request for the method "interconnects.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -83112,21 +83557,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image. + * @param interconnect Name of the interconnect to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String machineImage) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImage.class); + protected Get(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Interconnect.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -83222,24 +83667,24 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the machine image. */ + /** Name of the interconnect to return. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String interconnect; - /** The name of the machine image. + /** Name of the interconnect to return. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getInterconnect() { + return interconnect; } - /** The name of the machine image. */ - public Get setMachineImage(java.lang.String machineImage) { + /** Name of the interconnect to return. */ + public Get setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.machineImage = machineImage; + this.interconnect = interconnect; return this; } @@ -83249,62 +83694,67 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global + * outage, do not use this API to make decisions about where to redirect your network traffic. + * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global + * resource. A global outage can prevent this API from functioning properly. * - * Create a request for the method "machineImages.getIamPolicy". + * Create a request for the method "interconnects.getDiagnostics". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param interconnect Name of the interconnect resource to query. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + GetDiagnostics result = new GetDiagnostics(project, interconnect); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class GetDiagnostics extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global + * outage, do not use this API to make decisions about where to redirect your network traffic. + * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global + * resource. A global outage can prevent this API from functioning properly. * - * Create a request for the method "machineImages.getIamPolicy". + * Create a request for the method "interconnects.getDiagnostics". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. + *

{@link GetDiagnostics#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param interconnect Name of the interconnect resource to query. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected GetDiagnostics(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetDiagnosticsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -83319,63 +83769,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { + return (GetDiagnostics) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public GetDiagnostics setAccessToken(java.lang.String accessToken) { + return (GetDiagnostics) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public GetDiagnostics setAlt(java.lang.String alt) { + return (GetDiagnostics) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public GetDiagnostics setCallback(java.lang.String callback) { + return (GetDiagnostics) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public GetDiagnostics setFields(java.lang.String fields) { + return (GetDiagnostics) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public GetDiagnostics setKey(java.lang.String key) { + return (GetDiagnostics) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public GetDiagnostics setOauthToken(java.lang.String oauthToken) { + return (GetDiagnostics) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetDiagnostics) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { + return (GetDiagnostics) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public GetDiagnostics setUploadType(java.lang.String uploadType) { + return (GetDiagnostics) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { + return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public GetDiagnostics setUserIp(java.lang.String userIp) { + return (GetDiagnostics) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83389,7 +83839,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public GetDiagnostics setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -83399,63 +83849,221 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect resource to query. */ + public GetDiagnostics setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnect = interconnect; return this; } - /** Requested IAM Policy version. */ + @Override + public GetDiagnostics set(String parameterName, Object value) { + return (GetDiagnostics) super.set(parameterName, value); + } + } + /** + * Returns the interconnectMacsecConfig for the specified Interconnect. + * + * Create a request for the method "interconnects.getMacsecConfig". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect resource to query. + * @return the request + */ + public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + GetMacsecConfig result = new GetMacsecConfig(project, interconnect); + initialize(result); + return result; + } + + public class GetMacsecConfig extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the interconnectMacsecConfig for the specified Interconnect. + * + * Create a request for the method "interconnects.getMacsecConfig". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. + *

{@link GetMacsecConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect resource to query. + * @since 1.13 + */ + protected GetMacsecConfig(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetMacsecConfigResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { + return (GetMacsecConfig) super.set$Xgafv($Xgafv); + } + + @Override + public GetMacsecConfig setAccessToken(java.lang.String accessToken) { + return (GetMacsecConfig) super.setAccessToken(accessToken); + } + + @Override + public GetMacsecConfig setAlt(java.lang.String alt) { + return (GetMacsecConfig) super.setAlt(alt); + } + + @Override + public GetMacsecConfig setCallback(java.lang.String callback) { + return (GetMacsecConfig) super.setCallback(callback); + } + + @Override + public GetMacsecConfig setFields(java.lang.String fields) { + return (GetMacsecConfig) super.setFields(fields); + } + + @Override + public GetMacsecConfig setKey(java.lang.String key) { + return (GetMacsecConfig) super.setKey(key); + } + + @Override + public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { + return (GetMacsecConfig) super.setOauthToken(oauthToken); + } + + @Override + public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { + return (GetMacsecConfig) super.setQuotaUser(quotaUser); + } + + @Override + public GetMacsecConfig setUploadType(java.lang.String uploadType) { + return (GetMacsecConfig) super.setUploadType(uploadType); + } + + @Override + public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetMacsecConfig setUserIp(java.lang.String userIp) { + return (GetMacsecConfig) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String project; - /** Requested IAM Policy version. + /** Project ID for this request. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getProject() { + return project; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** Project ID for this request. */ + public GetMacsecConfig setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the interconnect resource to query. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect resource to query. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect resource to query. */ + public GetMacsecConfig setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public GetMacsecConfig set(String parameterName, Object value) { + return (GetMacsecConfig) super.set(parameterName, value); } } /** - * Creates a machine image in the specified project using the data that is included in the request. - * If you are creating a new machine image to update an existing instance, your new machine image - * should use the same network or, if applicable, the same subnetwork as the original instance. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "machineImages.insert". + * Create a request for the method "interconnects.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.MachineImage} + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -83463,18 +84071,15 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates a machine image in the specified project using the data that is included in the - * request. If you are creating a new machine image to update an existing instance, your new - * machine image should use the same network or, if applicable, the same subnetwork as the - * original instance. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "machineImages.insert". + * Create a request for the method "interconnects.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -83482,10 +84087,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.MachineImage} + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -83616,31 +84221,15 @@ public Insert setRequestId(java.lang.String requestId) { return this; } - /** Required. Source instance that is used to create the machine image from. */ - @com.google.api.client.util.Key - private java.lang.String sourceInstance; - - /** Required. Source instance that is used to create the machine image from. - */ - public java.lang.String getSourceInstance() { - return sourceInstance; - } - - /** Required. Source instance that is used to create the machine image from. */ - public Insert setSourceInstance(java.lang.String sourceInstance) { - this.sourceInstance = sourceInstance; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of machine images that are contained within the specified project. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "machineImages.list". + * Create a request for the method "interconnects.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -83654,17 +84243,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of machine images that are contained within the specified project. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "machineImages.list". + * Create a request for the method "interconnects.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -83675,7 +84264,7 @@ public class List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Updates the specified Interconnect with the data included in the request. This method supports + * PATCH semantics and uses the JSON merge patch format and processing rules. * - * Create a request for the method "machineImages.setIamPolicy". + * Create a request for the method "interconnects.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84120,7 +84710,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -84130,37 +84720,77 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect to update. */ + public Patch setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnect = interconnect; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the labels on a machine image. To learn more about labels, read the Labeling Resources + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources * documentation. * - * Create a request for the method "machineImages.setLabels". + * Create a request for the method "interconnects.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. @@ -84178,7 +84808,7 @@ public SetLabels setLabels(java.lang.String project, java.lang.String resource, public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -84187,10 +84817,10 @@ public class SetLabels extends ComputeRequest @@ -84329,7 +84959,7 @@ public SetLabels set(String parameterName, Object value) { /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "machineImages.testIamPermissions". + * Create a request for the method "interconnects.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. @@ -84347,7 +84977,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -84358,7 +84988,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
+   *   {@code Compute.LicenseCodes.List request = compute.licenseCodes().list(parameters ...)}
    * 
* * @return the resource collection */ - public MachineTypes machineTypes() { - return new MachineTypes(); + public LicenseCodes licenseCodes() { + return new LicenseCodes(); } /** - * The "machineTypes" collection of methods. + * The "licenseCodes" collection of methods. */ - public class MachineTypes { + public class LicenseCodes { /** - * Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set - * the `returnPartialSuccess` parameter to `true`. + * Return a specified license code. License codes are mirrored across all projects that have + * permissions to read the License Code. *Caution* This resource is intended for use only by third- + * party partners who are creating Cloud Marketplace images. * - * Create a request for the method "machineTypes.aggregatedList". + * Create a request for the method "licenseCodes.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param licenseCode Number corresponding to the License code resource to return. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { + Get result = new Get(project, licenseCode); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern LICENSE_CODE_PATTERN = + java.util.regex.Pattern.compile("[0-9]{0,61}?"); + /** - * Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you - * set the `returnPartialSuccess` parameter to `true`. + * Return a specified license code. License codes are mirrored across all projects that have + * permissions to read the License Code. *Caution* This resource is intended for use only by + * third-party partners who are creating Cloud Marketplace images. * - * Create a request for the method "machineTypes.aggregatedList". + * Create a request for the method "licenseCodes.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param licenseCode Number corresponding to the License code resource to return. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeAggregatedList.class); + protected Get(java.lang.String project, java.lang.String licenseCode) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicenseCode.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); + } } @Override @@ -84578,63 +85220,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84648,7 +85290,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -84658,413 +85300,343 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ + /** Number corresponding to the License code resource to return. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String licenseCode; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. + /** Number corresponding to the License code resource to return. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getLicenseCode() { + return licenseCode; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + /** Number corresponding to the License code resource to return. */ + public Get setLicenseCode(java.lang.String licenseCode) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); + } + this.licenseCode = licenseCode; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Returns permissions that a caller has on the specified resource. *Caution* This resource is + * intended for use only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenseCodes.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Returns permissions that a caller has on the specified resource. *Caution* This resource is + * intended for use only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenseCodes.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String project; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Project ID for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getProject() { + return project; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String resource; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name or id of the resource for this request. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getResource() { + return resource; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Licenses collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Licenses licenses() { + return new Licenses(); + } + + /** + * The "licenses" collection of methods. + */ + public class Licenses { + /** - * Returns the specified machine type. + * Deletes the specified license. *Caution* This resource is intended for use only by third-party + * partners who are creating Cloud Marketplace images. * - * Create a request for the method "machineTypes.get". + * Create a request for the method "licenses.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param machineType Name of the machine type to return. + * @param license Name of the license resource to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String machineType) throws java.io.IOException { - Get result = new Get(project, zone, machineType); + public Delete delete(java.lang.String project, java.lang.String license) throws java.io.IOException { + Delete result = new Delete(project, license); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern MACHINE_TYPE_PATTERN = + private final java.util.regex.Pattern LICENSE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified machine type. + * Deletes the specified license. *Caution* This resource is intended for use only by third-party + * partners who are creating Cloud Marketplace images. * - * Create a request for the method "machineTypes.get". + * Create a request for the method "licenses.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param machineType Name of the machine type to return. + * @param license Name of the license resource to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String machineType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineType.class); + protected Delete(java.lang.String project, java.lang.String license) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.machineType = com.google.api.client.util.Preconditions.checkNotNull(machineType, "Required parameter machineType must be specified."); + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85078,7 +85650,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85088,108 +85660,129 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the license resource to delete. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String license; - /** The name of the zone for this request. + /** Name of the license resource to delete. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getLicense() { + return license; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the license resource to delete. */ + public Delete setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.license = license; return this; } - /** Name of the machine type to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String machineType; + private java.lang.String requestId; - /** Name of the machine type to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.String getMachineType() { - return machineType; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the machine type to return. */ - public Get setMachineType(java.lang.String machineType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.machineType = machineType; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves a list of machine types available to the specified project. + * Returns the specified License resource. *Caution* This resource is intended for use only by + * third-party partners who are creating Cloud Marketplace images. * - * Create a request for the method "machineTypes.list". + * Create a request for the method "licenses.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param license Name of the License resource to return. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { + Get result = new Get(project, license); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern LICENSE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Retrieves a list of machine types available to the specified project. + * Returns the specified License resource. *Caution* This resource is intended for use only by + * third-party partners who are creating Cloud Marketplace images. * - * Create a request for the method "machineTypes.list". + * Create a request for the method "licenses.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param license Name of the License resource to return. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); + protected Get(java.lang.String project, java.lang.String license) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.License.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -85204,63 +85797,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85274,7 +85867,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85284,31 +85877,557 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the License resource to return. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String license; - /** The name of the zone for this request. + /** Name of the License resource to return. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getLicense() { + return license; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** Name of the License resource to return. */ + public Get setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.license = license; return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * *Caution* This resource is intended for use only by third-party partners who are creating Cloud + * Marketplace images. + * + * Create a request for the method "licenses.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. *Caution* This resource is intended for use only by third-party partners who are + * creating Cloud Marketplace images. + * + * Create a request for the method "licenses.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Create a License resource in the specified project. *Caution* This resource is intended for use + * only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenses.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.License content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Create a License resource in the specified project. *Caution* This resource is intended for use + * only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenses.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.License content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of licenses available in the specified project. This method does not get any + * licenses that belong to other projects, including licenses attached to publicly-available images, + * like Debian 9. If you want to get a list of publicly-available licenses, use this method to make + * a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This + * resource is intended for use only by third-party partners who are creating Cloud Marketplace + * images. + * + * Create a request for the method "licenses.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves the list of licenses available in the specified project. This method does not get any + * licenses that belong to other projects, including licenses attached to publicly-available + * images, like Debian 9. If you want to get a list of publicly-available licenses, use this + * method to make a request to the respective image project, such as debian-cloud or windows- + * cloud. *Caution* This resource is intended for use only by third-party partners who are + * creating Cloud Marketplace images. + * + * Create a request for the method "licenses.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicensesListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter * expressions cannot be mixed in one request. If you want to use AIP-160, your expression * must specify the field name, an operator, and the value that you want to use for filtering. * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, @@ -85518,149 +86637,129 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NetworkAttachments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkAttachments networkAttachments() { - return new NetworkAttachments(); - } - - /** - * The "networkAttachments" collection of methods. - */ - public class NetworkAttachments { - /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` - * parameter to `true`. + * Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* + * This resource is intended for use only by third-party partners who are creating Cloud Marketplace + * images. * - * Create a request for the method "networkAttachments.aggregatedList". + * Create a request for the method "licenses.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. To prevent failure, Google recommends that you set the - * `returnPartialSuccess` parameter to `true`. + * Sets the access control policy on the specified resource. Replaces any existing policy. + * *Caution* This resource is intended for use only by third-party partners who are creating Cloud + * Marketplace images. * - * Create a request for the method "networkAttachments.aggregatedList". + * Create a request for the method "licenses.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentAggregatedList.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85674,7 +86773,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85684,403 +86783,153 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String resource; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name or id of the resource for this request. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getResource() { + return resource; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Deletes the specified NetworkAttachment in the given scope + * Returns permissions that a caller has on the specified resource. *Caution* This resource is + * intended for use only by third-party partners who are creating Cloud Marketplace images. * - * Create a request for the method "networkAttachments.delete". + * Create a request for the method "licenses.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, networkAttachment); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified NetworkAttachment in the given scope + * Returns permissions that a caller has on the specified resource. *Caution* This resource is + * intended for use only by third-party partners who are creating Cloud Marketplace images. * - * Create a request for the method "networkAttachments.delete". + * Create a request for the method "licenses.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86094,7 +86943,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86104,45 +86953,193 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** Name of the region of this request. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** Name of the region of this request. */ - public Delete setRegion(java.lang.String region) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.resource = resource; return this; } - /** Name of the NetworkAttachment resource to delete. */ + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates a License resource in the specified project. *Caution* This resource is intended for use + * only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenses.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) throws java.io.IOException { + Update result = new Update(project, license, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern LICENSE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a License resource in the specified project. *Caution* This resource is intended for + * use only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenses.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String networkAttachment; + private java.lang.String project; - /** Name of the NetworkAttachment resource to delete. + /** Project ID for this request. */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; + public java.lang.String getProject() { + return project; } - /** Name of the NetworkAttachment resource to delete. */ - public Delete setNetworkAttachment(java.lang.String networkAttachment) { + /** Project ID for this request. */ + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The license name for this request. */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** The license name for this request. + */ + public java.lang.String getLicense() { + return license; + } + + /** The license name for this request. */ + public Update setLicense(java.lang.String license) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkAttachment = networkAttachment; + this.license = license; return this; } @@ -86154,7 +87151,7 @@ public Delete setNetworkAttachment(java.lang.String networkAttachment) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * 00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -86165,8 +87162,7 @@ public Delete setNetworkAttachment(java.lang.String networkAttachment) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: - MixerMutationRequestBuilder + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -86180,155 +87176,174 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * 00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the MachineImages collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public MachineImages machineImages() { + return new MachineImages(); + } + + /** + * The "machineImages" collection of methods. + */ + public class MachineImages { + /** - * Returns the specified NetworkAttachment resource in the given scope. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. * - * Create a request for the method "networkAttachments.get". + * Create a request for the method "machineImages.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. + * @param machineImage The name of the machine image to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { - Get result = new Get(project, region, networkAttachment); + public Delete delete(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { + Delete result = new Delete(project, machineImage); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified NetworkAttachment resource in the given scope. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be + * undone. * - * Create a request for the method "networkAttachments.get". + * Create a request for the method "machineImages.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. + * @param machineImage The name of the machine image to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachment.class); + protected Delete(java.lang.String project, java.lang.String machineImage) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + this.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86342,7 +87357,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86352,120 +87367,126 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the machine image to delete. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String machineImage; - /** Name of the region of this request. + /** The name of the machine image to delete. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getMachineImage() { + return machineImage; } - /** Name of the region of this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the machine image to delete. */ + public Delete setMachineImage(java.lang.String machineImage) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.machineImage = machineImage; return this; } - /** Name of the NetworkAttachment resource to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String networkAttachment; + private java.lang.String requestId; - /** Name of the NetworkAttachment resource to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the NetworkAttachment resource to return. */ - public Get setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified machine image. * - * Create a request for the method "networkAttachments.getIamPolicy". + * Create a request for the method "machineImages.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. + * @param machineImage The name of the machine image. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); + public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { + Get result = new Get(project, machineImage); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the specified machine image. * - * Create a request for the method "networkAttachments.getIamPolicy". + * Create a request for the method "machineImages.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. + * @param machineImage The name of the machine image. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Get(java.lang.String project, java.lang.String machineImage) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImage.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -86481,63 +87502,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86551,7 +87572,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86561,24 +87582,180 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the machine image. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String machineImage; - /** The name of the region for this request. + /** The name of the machine image. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getMachineImage() { + return machineImage; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** The name of the machine image. */ + public Get setMachineImage(java.lang.String machineImage) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.machineImage = machineImage; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "machineImages.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "machineImages.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } @@ -86597,7 +87774,7 @@ public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -86625,40 +87802,39 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a NetworkAttachment in the specified project in the given scope using the parameters that - * are included in the request. + * Creates a machine image in the specified project using the data that is included in the request. + * If you are creating a new machine image to update an existing instance, your new machine image + * should use the same network or, if applicable, the same subnetwork as the original instance. * - * Create a request for the method "networkAttachments.insert". + * Create a request for the method "machineImages.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param content the {@link com.google.api.services.compute.model.MachineImage} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + private static final String REST_PATH = "projects/{project}/global/machineImages"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates a NetworkAttachment in the specified project in the given scope using the parameters - * that are included in the request. + * Creates a machine image in the specified project using the data that is included in the + * request. If you are creating a new machine image to update an existing instance, your new + * machine image should use the same network or, if applicable, the same subnetwork as the + * original instance. * - * Create a request for the method "networkAttachments.insert". + * Create a request for the method "machineImages.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -86666,11 +87842,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param content the {@link com.google.api.services.compute.model.MachineImage} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -86678,12 +87853,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -86767,27 +87936,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Insert setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -86796,7 +87944,7 @@ public Insert setRegion(java.lang.String region) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * 00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -86807,8 +87955,7 @@ public Insert setRegion(java.lang.String region) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: - MixerMutationRequestBuilder + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -86822,50 +87969,62 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * 00000000-0000-0000-0000-000000000000). */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** Required. Source instance that is used to create the machine image from. */ + @com.google.api.client.util.Key + private java.lang.String sourceInstance; + + /** Required. Source instance that is used to create the machine image from. + */ + public java.lang.String getSourceInstance() { + return sourceInstance; + } + + /** Required. Source instance that is used to create the machine image from. */ + public Insert setSourceInstance(java.lang.String sourceInstance) { + this.sourceInstance = sourceInstance; + return this; + } + @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Lists the NetworkAttachments for a project in the given scope. + * Retrieves a list of machine images that are contained within the specified project. * - * Create a request for the method "networkAttachments.list". + * Create a request for the method "machineImages.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + private static final String REST_PATH = "projects/{project}/global/machineImages"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Lists the NetworkAttachments for a project in the given scope. + * Retrieves a list of machine images that are contained within the specified project. * - * Create a request for the method "networkAttachments.list". + * Create a request for the method "machineImages.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -86873,23 +88032,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImageList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -86983,27 +88135,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public List setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -87218,136 +88349,124 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified NetworkAttachment resource with the data included in the request. This - * method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkAttachments.patch". + * Create a request for the method "machineImages.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, networkAttachment, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified NetworkAttachment resource with the data included in the request. This - * method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkAttachments.patch". + * Create a request for the method "machineImages.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87361,7 +88480,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -87371,224 +88490,153 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the NetworkAttachment resource to patch. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkAttachment; + private java.lang.String resource; - /** Name of the NetworkAttachment resource to patch. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the NetworkAttachment resource to patch. */ - public Patch setNetworkAttachment(java.lang.String networkAttachment) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkAttachment = networkAttachment; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: - MixerMutationRequestBuilder - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the labels on a machine image. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "networkAttachments.setIamPolicy". + * Create a request for the method "machineImages.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the labels on a machine image. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "networkAttachments.setIamPolicy". + * Create a request for the method "machineImages.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

* {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87602,7 +88650,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -87612,27 +88660,6 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -87644,58 +88671,54 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + public SetLabels setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkAttachments.testIamPermissions". + * Create a request for the method "machineImages.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkAttachments.testIamPermissions". + * Create a request for the method "machineImages.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote @@ -87704,12 +88727,11 @@ public class TestIamPermissions extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -87717,17 +88739,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -87812,27 +88828,6 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -87848,7 +88843,7 @@ public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -87863,36 +88858,35 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the NetworkEdgeSecurityServices collection. + * An accessor for creating requests from the MachineTypes collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
+   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
    * 
* * @return the resource collection */ - public NetworkEdgeSecurityServices networkEdgeSecurityServices() { - return new NetworkEdgeSecurityServices(); + public MachineTypes machineTypes() { + return new MachineTypes(); } /** - * The "networkEdgeSecurityServices" collection of methods. + * The "machineTypes" collection of methods. */ - public class NetworkEdgeSecurityServices { + public class MachineTypes { /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter - * to `true`. + * Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set + * the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * Create a request for the method "machineTypes.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -87901,19 +88895,18 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. To prevent failure, Google recommends that you set the `returnPartialSuccess` - * parameter to `true`. + * Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you + * set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * Create a request for the method "machineTypes.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -87921,11 +88914,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityServiceAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -88004,17 +88997,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -88296,278 +89289,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified service. - * - * Create a request for the method "networkEdgeSecurityServices.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { - Delete result = new Delete(project, region, networkEdgeSecurityService); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified service. - * - * Create a request for the method "networkEdgeSecurityServices.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the network edge security service to delete. */ - @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; - - /** Name of the network edge security service to delete. - */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } - - /** Name of the network edge security service to delete. */ - public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a specified NetworkEdgeSecurityService. + * Returns the specified machine type. * - * Create a request for the method "networkEdgeSecurityServices.get". + * Create a request for the method "machineTypes.get". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. + * @param zone The name of the zone for this request. + * @param machineType Name of the machine type to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { - Get result = new Get(project, region, networkEdgeSecurityService); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String machineType) throws java.io.IOException { + Get result = new Get(project, zone, machineType); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + private final java.util.regex.Pattern MACHINE_TYPE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets a specified NetworkEdgeSecurityService. + * Returns the specified machine type. * - * Create a request for the method "networkEdgeSecurityServices.get". + * Create a request for the method "machineTypes.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -88575,28 +89331,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. + * @param zone The name of the zone for this request. + * @param machineType Name of the machine type to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityService.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String machineType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineType.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + this.machineType = com.google.api.client.util.Preconditions.checkNotNull(machineType, "Required parameter machineType must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), + "Parameter machineType must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -88692,45 +89448,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the network edge security service to get. */ + /** Name of the machine type to return. */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String machineType; - /** Name of the network edge security service to get. + /** Name of the machine type to return. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getMachineType() { + return machineType; } - /** Name of the network edge security service to get. */ - public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + /** Name of the machine type to return. */ + public Get setMachineType(java.lang.String machineType) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), + "Parameter machineType must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkEdgeSecurityService = networkEdgeSecurityService; + this.machineType = machineType; return this; } @@ -88740,123 +89496,131 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a new service in the specified project using the data included in the request. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "networkEdgeSecurityServices.insert". + * Create a request for the method "machineTypes.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @param zone The name of the zone for this request. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Creates a new service in the specified project using the data included in the request. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "networkEdgeSecurityServices.insert". + * Create a request for the method "machineTypes.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @param zone The name of the zone for this request. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88870,7 +89634,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -88880,386 +89644,269 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "networkEdgeSecurityServices.patch". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to update. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { - Patch result = new Patch(project, region, networkEdgeSecurityService, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "networkEdgeSecurityServices.patch". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to update. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} - * @since 1.13 + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); - } - - /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } - /** Name of the network edge security service to update. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String orderBy; - /** Name of the network edge security service to update. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } - - /** Name of the network edge security service to update. */ - public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; - return this; + public java.lang.String getOrderBy() { + return orderBy; } - @com.google.api.client.util.Key - private java.util.List paths; - /** - + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.util.List getPaths() { - return paths; - } - - public Patch setPaths(java.util.List paths) { - this.paths = paths; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String pageToken; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getPageToken() { + return pageToken; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Indicates fields to be updated as part of this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.Boolean returnPartialSuccess; - /** Indicates fields to be updated as part of this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. */ - public String getUpdateMask() { - return updateMask; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the NetworkEndpointGroups collection. + * An accessor for creating requests from the NetworkAttachments collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
+   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
    * 
* * @return the resource collection */ - public NetworkEndpointGroups networkEndpointGroups() { - return new NetworkEndpointGroups(); + public NetworkAttachments networkAttachments() { + return new NetworkAttachments(); } /** - * The "networkEndpointGroups" collection of methods. + * The "networkAttachments" collection of methods. */ - public class NetworkEndpointGroups { + public class NetworkAttachments { /** - * Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google - * recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` + * parameter to `true`. * - * Create a request for the method "networkEndpointGroups.aggregatedList". + * Create a request for the method "networkAttachments.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -89273,18 +89920,19 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, - * Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "networkEndpointGroups.aggregatedList". + * Create a request for the method "networkAttachments.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -89296,7 +89944,7 @@ public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Attach a list of network endpoints to the specified network endpoint group. + * Deletes the specified NetworkAttachment in the given scope * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * Create a request for the method "networkAttachments.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. * @since 1.13 */ - protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89796,7 +90454,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -89806,48 +90464,45 @@ public AttachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** Name of the region of this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public AttachNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region of this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ + /** Name of the NetworkAttachment resource to delete. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String networkAttachment; - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. + /** Name of the NetworkAttachment resource to delete. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the NetworkAttachment resource to delete. */ + public Delete setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; return this; } @@ -89859,7 +90514,7 @@ public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEn * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -89870,7 +90525,8 @@ public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEn make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -89884,133 +90540,155 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM - * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be - * deleted if there are backend services referencing it. + * Returns the specified NetworkAttachment resource in the given scope. * - * Create a request for the method "networkEndpointGroups.delete". + * Create a request for the method "networkAttachments.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, networkEndpointGroup); + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { + Get result = new Get(project, region, networkAttachment); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM - * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot - * be deleted if there are backend services referencing it. + * Returns the specified NetworkAttachment resource in the given scope. * - * Create a request for the method "networkEndpointGroups.delete". + * Create a request for the method "networkAttachments.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachment.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90024,7 +90702,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -90034,206 +90712,192 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the network endpoint group to delete. It should comply with RFC1035. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** Name of the region of this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getRegion() { + return region; } - /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the region of this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Name of the NetworkAttachment resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String networkAttachment; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Name of the NetworkAttachment resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the NetworkAttachment resource to return. */ + public Get setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Detach a list of network endpoints from the specified network endpoint group. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * Create a request for the method "networkAttachments.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @return the request */ - public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { - DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, zone, networkEndpointGroup, content); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); initialize(result); return result; } - public class DetachNetworkEndpoints extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Detach a list of network endpoints from the specified network endpoint group. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * Create a request for the method "networkAttachments.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90247,7 +90911,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -90257,316 +90921,104 @@ public DetachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public DetachNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String resource; - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getResource() { + return resource; } - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer optionsRequestedPolicyVersion; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Creates a NetworkAttachment in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "networkEndpointGroups.get". + * Create a request for the method "networkAttachments.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, zone, networkEndpointGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - } - - @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); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * Create a request for the method "networkEndpointGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. + * Creates a NetworkAttachment in the specified project in the given scope using the parameters + * that are included in the request. * - * Create a request for the method "networkEndpointGroups.insert". + * Create a request for the method "networkAttachments.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -90574,12 +91026,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone where you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -90587,7 +91038,12 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -90671,26 +91127,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. - */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where you want to create the network endpoint group. It should comply with - RFC1035. + /** Name of the region of this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region of this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -90702,7 +91156,7 @@ public Insert setZone(java.lang.String zone) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -90713,7 +91167,8 @@ public Insert setZone(java.lang.String zone) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -90727,7 +91182,7 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -90740,35 +91195,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of network endpoint groups that are located in the specified project and zone. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkEndpointGroups.list". + * Create a request for the method "networkAttachments.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param region Name of the region of this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves the list of network endpoint groups that are located in the specified project and - * zone. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkEndpointGroups.list". + * Create a request for the method "networkAttachments.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -90776,18 +91233,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param region Name of the region of this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupList.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -90881,25 +91343,24 @@ public List setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** Name of the region of this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public List setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region of this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -91117,122 +91578,136 @@ public List set(String parameterName, Object value) { } } /** - * Lists the network endpoints in the specified network endpoint group. + * Patches the specified NetworkAttachment resource with the data included in the request. This + * method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * Create a request for the method "networkAttachments.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network - * endpoints. It should comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} + * @param region Name of the region for this request. + * @param networkAttachment Name of the NetworkAttachment resource to patch. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @return the request */ - public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) throws java.io.IOException { - ListNetworkEndpoints result = new ListNetworkEndpoints(project, zone, networkEndpointGroup, content); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, networkAttachment, content); initialize(result); return result; } - public class ListNetworkEndpoints extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Lists the network endpoints in the specified network endpoint group. + * Patches the specified NetworkAttachment resource with the data included in the request. This + * method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * Create a request for the method "networkAttachments.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link ListNetworkEndpoints#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network - * endpoints. It should comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} + * @param region Name of the region for this request. + * @param networkAttachment Name of the NetworkAttachment resource to patch. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @since 1.13 */ - protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91246,7 +91721,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -91256,292 +91731,322 @@ public ListNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** Name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public ListNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region for this request. */ + public Patch setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ + /** Name of the NetworkAttachment resource to patch. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String networkAttachment; - /** The name of the network endpoint group from which you want to generate a list of included network - endpoints. It should comply with RFC1035. + /** Name of the NetworkAttachment resource to patch. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** Name of the NetworkAttachment resource to patch. */ + public Patch setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; + return this; } /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - return this; + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - @com.google.api.client.util.Key - private java.lang.String filter; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkAttachments.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkAttachments.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @since 1.13 */ - public ListNetworkEndpoints setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String project; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the region for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListNetworkEndpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String resource; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkEndpointGroups.testIamPermissions". + * Create a request for the method "networkAttachments.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); private final java.util.regex.Pattern RESOURCE_PATTERN = @@ -91550,7 +92055,7 @@ public class TestIamPermissions extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -91572,10 +92077,10 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); @@ -91667,24 +92172,24 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } @@ -91718,158 +92223,159 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the NetworkFirewallPolicies collection. + * An accessor for creating requests from the NetworkEdgeSecurityServices collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkFirewallPolicies.List request = compute.networkFirewallPolicies().list(parameters ...)}
+   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
    * 
* * @return the resource collection */ - public NetworkFirewallPolicies networkFirewallPolicies() { - return new NetworkFirewallPolicies(); + public NetworkEdgeSecurityServices networkEdgeSecurityServices() { + return new NetworkEdgeSecurityServices(); } /** - * The "networkFirewallPolicies" collection of methods. + * The "networkEdgeSecurityServices" collection of methods. */ - public class NetworkFirewallPolicies { + public class NetworkEdgeSecurityServices { /** - * Inserts an association for the specified firewall policy. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter + * to `true`. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * Create a request for the method "networkEdgeSecurityServices.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param project Name of the project scoping this request. * @return the request */ - public AddAssociation addAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(project, firewallPolicy, content); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class AddAssociation extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Inserts an association for the specified firewall policy. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. To prevent failure, Google recommends that you set the `returnPartialSuccess` + * parameter to `true`. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * Create a request for the method "networkEdgeSecurityServices.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl * ientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param project Name of the project scoping this request. * @since 1.13 */ - protected AddAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityServiceAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + /** Name of the project scoping this request. */ + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -91879,217 +92385,403 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String filter; - /** Name of the firewall policy to update. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getFilter() { + return filter; } - /** Name of the firewall policy to update. */ - public AddAssociation setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. */ @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; + private java.lang.Boolean includeAllScopes; - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Long maxResults; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Long getMaxResults() { + return maxResults; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ - public AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Inserts a packet mirroring rule into a firewall policy. + * Deletes the specified service. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * Create a request for the method "networkEdgeSecurityServices.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @return the request */ - public AddPacketMirroringRule addPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - AddPacketMirroringRule result = new AddPacketMirroringRule(project, firewallPolicy, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { + Delete result = new Delete(project, region, networkEdgeSecurityService); initialize(result); return result; } - public class AddPacketMirroringRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Inserts a packet mirroring rule into a firewall policy. + * Deletes the specified service. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * Create a request for the method "networkEdgeSecurityServices.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote - * operation.

{@link AddPacketMirroringRule#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @since 1.13 */ - protected AddPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (AddPacketMirroringRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddPacketMirroringRule setAlt(java.lang.String alt) { - return (AddPacketMirroringRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddPacketMirroringRule setCallback(java.lang.String callback) { - return (AddPacketMirroringRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddPacketMirroringRule setFields(java.lang.String fields) { - return (AddPacketMirroringRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddPacketMirroringRule setKey(java.lang.String key) { - return (AddPacketMirroringRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (AddPacketMirroringRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (AddPacketMirroringRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddPacketMirroringRule setUserIp(java.lang.String userIp) { - return (AddPacketMirroringRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92103,7 +92795,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPacketMirroringRule setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -92113,70 +92805,45 @@ public AddPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String region; - /** Name of the firewall policy to update. + /** Name of the region scoping this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the firewall policy to update. */ - public AddPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPriority; - - /** When rule.priority is not specified, auto choose a unused priority between minPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMaxPriority() { - return maxPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; + this.region = region; return this; } - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ + /** Name of the network edge security service to delete. */ @com.google.api.client.util.Key - private java.lang.Integer minPriority; + private java.lang.String networkEdgeSecurityService; - /** When rule.priority is not specified, auto choose a unused priority between minPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Name of the network edge security service to delete. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + /** Name of the network edge security service to delete. */ + public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } @@ -92215,135 +92882,153 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public AddPacketMirroringRule setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddPacketMirroringRule set(String parameterName, Object value) { - return (AddPacketMirroringRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts a rule into a firewall policy. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkFirewallPolicies.addRule". + * Create a request for the method "networkEdgeSecurityServices.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @return the request */ - public AddRule addRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(project, firewallPolicy, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { + Get result = new Get(project, region, networkEdgeSecurityService); initialize(result); return result; } - public class AddRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Inserts a rule into a firewall policy. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkFirewallPolicies.addRule". + * Create a request for the method "networkEdgeSecurityServices.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

- * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @since 1.13 */ - protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityService.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92357,7 +93042,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -92367,70 +93052,212 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String region; - /** Name of the firewall policy to update. + /** Name of the region scoping this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the firewall policy to update. */ - public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = firewallPolicy; + this.region = region; return this; } - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ + /** Name of the network edge security service to get. */ @com.google.api.client.util.Key - private java.lang.Integer maxPriority; + private java.lang.String networkEdgeSecurityService; - /** When rule.priority is not specified, auto choose a unused priority between minPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Name of the network edge security service to get. */ - public java.lang.Integer getMaxPriority() { - return maxPriority; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; + /** Name of the network edge security service to get. */ + public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new service in the specified project using the data included in the request. + * + * Create a request for the method "networkEdgeSecurityServices.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. + * Creates a new service in the specified project using the data included in the request. + * + * Create a request for the method "networkEdgeSecurityServices.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @since 1.13 */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Integer minPriority; + private java.lang.String project; - /** When rule.priority is not specified, auto choose a unused priority between minPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Project ID for this request. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getProject() { + return project; } - /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and - * maxPriority>. This field is exclusive with rule.priority. + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. */ - public AddRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -92469,136 +93296,161 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public AddRule setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies from - * all applicable scopes (global and regional) and grouping the results per scope. To prevent - * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * Create a request for the method "networkEdgeSecurityServices.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to update. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { + Patch result = new Patch(project, region, networkEdgeSecurityService, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies - * from all applicable scopes (global and regional) and grouping the results per scope. To prevent - * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * Create a request for the method "networkEdgeSecurityServices.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to update. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92612,7 +93464,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -92622,81 +93474,363 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String region; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. + /** Name of the region scoping this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRegion() { + return region; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the network edge security service to update. */ + @com.google.api.client.util.Key + private java.lang.String networkEdgeSecurityService; + + /** Name of the network edge security service to update. + */ + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; + } + + /** Name of the network edge security service to update. */ + public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Patch setPaths(java.util.List paths) { + this.paths = paths; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NetworkEndpointGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkEndpointGroups networkEndpointGroups() { + return new NetworkEndpointGroups(); + } + + /** + * The "networkEndpointGroups" collection of methods. + */ + public class NetworkEndpointGroups { + + /** + * Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google + * recommends that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "networkEndpointGroups.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, + * Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "networkEndpointGroups.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupAggregatedList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public AggregatedList setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each * expression is an `AND` expression. However, you can include `AND` and `OR` expressions * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel @@ -92893,122 +94027,122 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Copies rules to the specified firewall policy. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} * @return the request */ - public CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(project, firewallPolicy); + public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { + AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, zone, networkEndpointGroup, content); initialize(result); return result; } - public class CloneRules extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Copies rules to the specified firewall policy. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

- * {@link - * CloneRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic + * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} * @since 1.13 */ - protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93022,7 +94156,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CloneRules setProject(java.lang.String project) { + public AttachNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93032,24 +94166,48 @@ public CloneRules setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to update. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to update. */ - public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public AttachNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -93088,64 +94246,50 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public CloneRules setRequestId(java.lang.String requestId) { + public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** The firewall policy from which to copy rules. */ - @com.google.api.client.util.Key - private java.lang.String sourceFirewallPolicy; - - /** The firewall policy from which to copy rules. - */ - public java.lang.String getSourceFirewallPolicy() { - return sourceFirewallPolicy; - } - - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; - return this; - } - - @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); + @Override + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } } /** - * Deletes the specified policy. + * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM + * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be + * deleted if there are backend services referencing it. * - * Create a request for the method "networkFirewallPolicies.delete". + * Create a request for the method "networkEndpointGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to delete. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(project, firewallPolicy); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, networkEndpointGroup); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified policy. + * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM + * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot + * be deleted if there are backend services referencing it. * - * Create a request for the method "networkFirewallPolicies.delete". + * Create a request for the method "networkEndpointGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link @@ -93153,10 +94297,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to delete. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String firewallPolicy) { + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -93164,12 +94309,8 @@ protected Delete(java.lang.String project, java.lang.String firewallPolicy) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override @@ -93253,24 +94394,41 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to delete. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to delete. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to delete. */ - public Delete setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ + public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -93320,131 +94478,122 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified network firewall policy. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.get". + * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to get. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(project, firewallPolicy); + public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { + DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, zone, networkEndpointGroup, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified network firewall policy. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.get". + * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic + * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to get. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.class); + protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @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(); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93458,7 +94607,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public DetachNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93468,89 +94617,147 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to get. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to get. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to get. */ - public Get setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public DetachNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are removing network endpoints. It should comply + with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. + */ + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); } } /** - * Gets an association with the specified name. + * Returns the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.getAssociation". + * Create a request for the method "networkEndpointGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @return the request */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, firewallPolicy); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { + Get result = new Get(project, zone, networkEndpointGroup); initialize(result); return result; } - public class GetAssociation extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets an association with the specified name. + * Returns the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.getAssociation". + * Create a request for the method "networkEndpointGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @since 1.13 */ - protected GetAssociation(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override @@ -93564,63 +94771,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93634,7 +94841,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetAssociation setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93644,176 +94851,163 @@ public GetAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried association belongs. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to which the queried association belongs. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to which the queried association belongs. */ - public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** The name of the association to get from the firewall policy. */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String networkEndpointGroup; - /** The name of the association to get from the firewall policy. + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getName() { - return name; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". + * Create a request for the method "networkEndpointGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param zone The name of the zone where you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". + * Create a request for the method "networkEndpointGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param zone The name of the zone where you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93827,7 +95021,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93837,106 +95031,123 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * The name of the zone where you want to create the network endpoint group. It should comply + * with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** The name of the zone where you want to create the network endpoint group. It should comply with + RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * The name of the zone where you want to create the network endpoint group. It should comply + * with RFC1035. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Gets a packet mirroring rule of the specified priority. + * Retrieves the list of network endpoint groups that are located in the specified project and zone. * - * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". + * Create a request for the method "networkEndpointGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetPacketMirroringRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @return the request */ - public GetPacketMirroringRule getPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetPacketMirroringRule result = new GetPacketMirroringRule(project, firewallPolicy); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class GetPacketMirroringRule extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets a packet mirroring rule of the specified priority. + * Retrieves the list of network endpoint groups that are located in the specified project and + * zone. * - * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". + * Create a request for the method "networkEndpointGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetPacketMirroringRule#execute()} method to invoke the remote - * operation.

{@link GetPacketMirroringRule#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @since 1.13 */ - protected GetPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override @@ -93950,63 +95161,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (GetPacketMirroringRule) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetPacketMirroringRule setAlt(java.lang.String alt) { - return (GetPacketMirroringRule) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetPacketMirroringRule setCallback(java.lang.String callback) { - return (GetPacketMirroringRule) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetPacketMirroringRule setFields(java.lang.String fields) { - return (GetPacketMirroringRule) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetPacketMirroringRule setKey(java.lang.String key) { - return (GetPacketMirroringRule) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (GetPacketMirroringRule) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (GetPacketMirroringRule) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public GetPacketMirroringRule setUserIp(java.lang.String userIp) { - return (GetPacketMirroringRule) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94020,7 +95231,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetPacketMirroringRule setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -94030,175 +95241,358 @@ public GetPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to which the queried rule belongs. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to which the queried rule belongs. */ - public GetPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** The priority of the rule to get from the firewall policy. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String filter; - /** The priority of the rule to get from the firewall policy. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getFilter() { + return filter; } - /** The priority of the rule to get from the firewall policy. */ - public GetPacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public GetPacketMirroringRule set(String parameterName, Object value) { - return (GetPacketMirroringRule) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.getRule". + * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network + * endpoints. It should comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} * @return the request */ - public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, firewallPolicy); + public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) throws java.io.IOException { + ListNetworkEndpoints result = new ListNetworkEndpoints(project, zone, networkEndpointGroup, content); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class ListNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets a rule of the specified priority. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.getRule". + * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

- * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link ListNetworkEndpoints#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network + * endpoints. It should comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} * @since 1.13 */ - protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); + protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94212,7 +95606,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + public ListNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -94222,358 +95616,48 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried rule belongs. + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String zone; - /** The priority of the rule to get from the firewall policy. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public java.lang.String getZone() { + return zone; } - } - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + public ListNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + private java.lang.String networkEndpointGroup; - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + /** The name of the network endpoint group from which you want to generate a list of included network + endpoints. It should comply with RFC1035. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - } - /** - * Lists all the policies that have been configured for the specified project. - * - * Create a request for the method "networkFirewallPolicies.list". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists all the policies that have been configured for the specified project. - * - * Create a request for the method "networkFirewallPolicies.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @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); - } - - @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public List setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -94665,7 +95749,7 @@ public java.lang.String getFilter() { * instances that do not end with name "instance", you would use `name ne .*instance`. You * cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListNetworkEndpoints setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -94694,7 +95778,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -94729,7 +95813,7 @@ public java.lang.String getOrderBy() { * this to sort resources like operations so that the newest operation is returned first. * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -94752,7 +95836,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public ListNetworkEndpoints setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -94780,134 +95864,146 @@ public java.lang.Boolean getReturnPartialSuccess() { * aggregatedList for a single zone scope either returns all resources in the zone or no * resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.patch". + * Create a request for the method "networkEndpointGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { - Patch result = new Patch(project, firewallPolicy, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified policy with the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.patch". + * Create a request for the method "networkEndpointGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94921,7 +96017,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -94931,95 +96027,98 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to update. + /** The name of the zone for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to update. */ - public Patch setFirewallPolicy(java.lang.String firewallPolicy) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = firewallPolicy; + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NetworkFirewallPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkFirewallPolicies.List request = compute.networkFirewallPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkFirewallPolicies networkFirewallPolicies() { + return new NetworkFirewallPolicies(); + } + + /** + * The "networkFirewallPolicies" collection of methods. + */ + public class NetworkFirewallPolicies { + /** - * Patches a packet mirroring rule of the specified priority. + * Inserts an association for the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * Create a request for the method "networkFirewallPolicies.addAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @return the request */ - public PatchPacketMirroringRule patchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - PatchPacketMirroringRule result = new PatchPacketMirroringRule(project, firewallPolicy, content); + public AddAssociation addAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(project, firewallPolicy, content); initialize(result); return result; } - public class PatchPacketMirroringRule extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -95028,22 +96127,22 @@ public class PatchPacketMirroringRule extends ComputeRequest {@link PatchPacketMirroringRule#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @since 1.13 */ - protected PatchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + protected AddAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -95060,63 +96159,63 @@ protected PatchPacketMirroringRule(java.lang.String project, java.lang.String fi } @Override - public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (PatchPacketMirroringRule) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public PatchPacketMirroringRule setAlt(java.lang.String alt) { - return (PatchPacketMirroringRule) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public PatchPacketMirroringRule setCallback(java.lang.String callback) { - return (PatchPacketMirroringRule) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public PatchPacketMirroringRule setFields(java.lang.String fields) { - return (PatchPacketMirroringRule) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public PatchPacketMirroringRule setKey(java.lang.String key) { - return (PatchPacketMirroringRule) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (PatchPacketMirroringRule) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { - return (PatchPacketMirroringRule) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95130,7 +96229,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPacketMirroringRule setProject(java.lang.String project) { + public AddAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -95151,7 +96250,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + public AddAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -95161,19 +96260,28 @@ public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolic return this; } - /** The priority of the rule to patch. */ + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.Boolean replaceExistingAssociation; - /** The priority of the rule to patch. + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; } - /** The priority of the rule to patch. */ - public PatchPacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; return this; } @@ -95212,38 +96320,39 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public PatchPacketMirroringRule setRequestId(java.lang.String requestId) { + public AddAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchPacketMirroringRule set(String parameterName, Object value) { - return (PatchPacketMirroringRule) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Inserts a packet mirroring rule into a firewall policy. * - * Create a request for the method "networkFirewallPolicies.patchRule". + * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public PatchRule patchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(project, firewallPolicy, content); + public AddPacketMirroringRule addPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddPacketMirroringRule result = new AddPacketMirroringRule(project, firewallPolicy, content); initialize(result); return result; } - public class PatchRule extends ComputeRequest { + public class AddPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -95252,22 +96361,22 @@ public class PatchRule extends ComputeRequest - * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote + * operation.

{@link AddPacketMirroringRule#initialize(com.google.api.client.googleapis.servic + * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + protected AddPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -95284,63 +96393,63 @@ protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, c } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (AddPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public AddPacketMirroringRule setAlt(java.lang.String alt) { + return (AddPacketMirroringRule) super.setAlt(alt); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public AddPacketMirroringRule setCallback(java.lang.String callback) { + return (AddPacketMirroringRule) super.setCallback(callback); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public AddPacketMirroringRule setFields(java.lang.String fields) { + return (AddPacketMirroringRule) super.setFields(fields); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public AddPacketMirroringRule setKey(java.lang.String key) { + return (AddPacketMirroringRule) super.setKey(key); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (AddPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (AddPacketMirroringRule) super.setUploadType(uploadType); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public AddPacketMirroringRule setUserIp(java.lang.String userIp) { + return (AddPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95354,7 +96463,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + public AddPacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -95375,7 +96484,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { + public AddPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -95385,19 +96494,49 @@ public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to patch. */ + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.Integer maxPriority; - /** The priority of the rule to patch. + /** When rule.priority is not specified, auto choose a unused priority between minPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; + return this; + } + + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPriority; + + /** When rule.priority is not specified, auto choose a unused priority between minPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMinPriority() { + return minPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; return this; } @@ -95436,37 +96575,38 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public PatchRule setRequestId(java.lang.String requestId) { + public AddPacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public AddPacketMirroringRule set(String parameterName, Object value) { + return (AddPacketMirroringRule) super.set(parameterName, value); } } /** - * Removes an association for the specified firewall policy. + * Inserts a rule into a firewall policy. * - * Create a request for the method "networkFirewallPolicies.removeAssociation". + * Create a request for the method "networkFirewallPolicies.addRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); + public AddRule addRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(project, firewallPolicy, content); initialize(result); return result; } - public class RemoveAssociation extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -95475,22 +96615,23 @@ public class RemoveAssociation extends ComputeRequest {@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

+ * {@link + * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected RemoveAssociation(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -95506,63 +96647,63 @@ protected RemoveAssociation(java.lang.String project, java.lang.String firewallP } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95576,7 +96717,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + public AddRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -95597,7 +96738,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -95607,19 +96748,49 @@ public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** Name for the attachment that will be removed. */ + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Integer maxPriority; - /** Name for the attachment that will be removed. + /** When rule.priority is not specified, auto choose a unused priority between minPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; + return this; + } + + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPriority; + + /** When rule.priority is not specified, auto choose a unused priority between minPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMinPriority() { + return minPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority between minPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; return this; } @@ -95658,134 +96829,136 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public RemoveAssociation setRequestId(java.lang.String requestId) { + public AddRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Deletes a packet mirroring rule of the specified priority. + * Retrieves an aggregated list of network firewall policies, listing network firewall policies from + * all applicable scopes (global and regional) and grouping the results per scope. To prevent + * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * Create a request for the method "networkFirewallPolicies.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class RemovePacketMirroringRule extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes a packet mirroring rule of the specified priority. + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. To prevent + * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * Create a request for the method "networkFirewallPolicies.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote - * operation.

{@link RemovePacketMirroringRule#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected RemovePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (RemovePacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemovePacketMirroringRule setAlt(java.lang.String alt) { - return (RemovePacketMirroringRule) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public RemovePacketMirroringRule setCallback(java.lang.String callback) { - return (RemovePacketMirroringRule) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public RemovePacketMirroringRule setFields(java.lang.String fields) { - return (RemovePacketMirroringRule) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public RemovePacketMirroringRule setKey(java.lang.String key) { - return (RemovePacketMirroringRule) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { - return (RemovePacketMirroringRule) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { - return (RemovePacketMirroringRule) super.setUserIp(userIp); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95799,7 +96972,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePacketMirroringRule setProject(java.lang.String project) { + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -95809,109 +96982,297 @@ public RemovePacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String filter; - /** Name of the firewall policy to update. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getFilter() { + return filter; } - /** Name of the firewall policy to update. */ - public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** The priority of the rule to remove from the firewall policy. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.Boolean includeAllScopes; - /** The priority of the rule to remove from the firewall policy. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** The priority of the rule to remove from the firewall policy. */ - public RemovePacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Long maxResults; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Long getMaxResults() { + return maxResults; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ - public RemovePacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public RemovePacketMirroringRule set(String parameterName, Object value) { - return (RemovePacketMirroringRule) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * Copies rules to the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.removeRule". + * Create a request for the method "networkFirewallPolicies.cloneRules". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, firewallPolicy); + public CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + CloneRules result = new CloneRules(project, firewallPolicy); initialize(result); return result; } - public class RemoveRule extends ComputeRequest { + public class CloneRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -95920,21 +97281,21 @@ public class RemoveRule extends ComputeRequest + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

* {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * CloneRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) { + protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) { super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -95951,63 +97312,63 @@ protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96021,7 +97382,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + public CloneRules setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96042,7 +97403,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { + public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -96052,22 +97413,6 @@ public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to remove from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the firewall policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -96103,135 +97448,148 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public RemoveRule setRequestId(java.lang.String requestId) { + public CloneRules setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** The firewall policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceFirewallPolicy; + + /** The firewall policy from which to copy rules. + */ + public java.lang.String getSourceFirewallPolicy() { + return sourceFirewallPolicy; + } + + /** The firewall policy from which to copy rules. */ + public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { + this.sourceFirewallPolicy = sourceFirewallPolicy; + return this; + } + @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified policy. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * Create a request for the method "networkFirewallPolicies.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param firewallPolicy Name of the firewall policy to delete. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + Delete result = new Delete(project, firewallPolicy); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified policy. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * Create a request for the method "networkFirewallPolicies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param firewallPolicy Name of the firewall policy to delete. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Delete(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96245,7 +97603,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96255,151 +97613,198 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the firewall policy to delete. */ + public Delete setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified network firewall policy. * - * Create a request for the method "networkFirewallPolicies.testIamPermissions". + * Create a request for the method "networkFirewallPolicies.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param firewallPolicy Name of the firewall policy to get. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + Get result = new Get(project, firewallPolicy); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified network firewall policy. * - * Create a request for the method "networkFirewallPolicies.testIamPermissions". + * Create a request for the method "networkFirewallPolicies.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param firewallPolicy Name of the firewall policy to get. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96413,7 +97818,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96423,109 +97828,87 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to get. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to get. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the firewall policy to get. */ + public Get setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.firewallPolicy = firewallPolicy; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NetworkProfiles collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkProfiles.List request = compute.networkProfiles().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkProfiles networkProfiles() { - return new NetworkProfiles(); - } - - /** - * The "networkProfiles" collection of methods. - */ - public class NetworkProfiles { - /** - * Returns the specified network profile. + * Gets an association with the specified name. * - * Create a request for the method "networkProfiles.get". + * Create a request for the method "networkFirewallPolicies.getAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param networkProfile Name of the network profile to return. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @return the request */ - public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { - Get result = new Get(project, networkProfile); + public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(project, firewallPolicy); initialize(result); return result; } - public class Get extends ComputeRequest { + public class GetAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PROFILE_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified network profile. + * Gets an association with the specified name. * - * Create a request for the method "networkProfiles.get". + * Create a request for the method "networkFirewallPolicies.getAssociation". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. - * @param networkProfile Name of the network profile to return. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String networkProfile) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfile.class); + protected GetAssociation(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), - "Parameter networkProfile must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -96541,63 +97924,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96611,7 +97994,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public GetAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96621,77 +98004,106 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the network profile to return. */ + /** Name of the firewall policy to which the queried association belongs. */ @com.google.api.client.util.Key - private java.lang.String networkProfile; + private java.lang.String firewallPolicy; - /** Name of the network profile to return. + /** Name of the firewall policy to which the queried association belongs. */ - public java.lang.String getNetworkProfile() { - return networkProfile; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network profile to return. */ - public Get setNetworkProfile(java.lang.String networkProfile) { + /** Name of the firewall policy to which the queried association belongs. */ + public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), - "Parameter networkProfile must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkProfile = networkProfile; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The name of the association to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the firewall policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the firewall policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Retrieves a list of network profiles available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "networkProfiles.list". + * Create a request for the method "networkFirewallPolicies.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class List extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkProfiles"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves a list of network profiles available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "networkProfiles.list". + * Create a request for the method "networkFirewallPolicies.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfilesListResponse.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -96705,63 +98117,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96775,7 +98187,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96785,361 +98197,176 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String resource; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name or id of the resource for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getResource() { + return resource; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.Integer optionsRequestedPolicyVersion; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Requested IAM Policy version. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Networks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Networks.List request = compute.networks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Networks networks() { - return new Networks(); - } - - /** - * The "networks" collection of methods. - */ - public class Networks { - /** - * Adds a peering to the specified network. + * Gets a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.addPeering". + * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation. + * parameters, call the {@link GetPacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param network Name of the network resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @return the request */ - public AddPeering addPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) throws java.io.IOException { - AddPeering result = new AddPeering(project, network, content); + public GetPacketMirroringRule getPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetPacketMirroringRule result = new GetPacketMirroringRule(project, firewallPolicy); initialize(result); return result; } - public class AddPeering extends ComputeRequest { + public class GetPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Adds a peering to the specified network. + * Gets a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.addPeering". + * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation.

- * {@link - * AddPeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetPacketMirroringRule#execute()} method to invoke the remote + * operation.

{@link GetPacketMirroringRule#initialize(com.google.api.client.googleapis.servic + * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param network Name of the network resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @since 1.13 */ - protected AddPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddPeering set$Xgafv(java.lang.String $Xgafv) { - return (AddPeering) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddPeering setAccessToken(java.lang.String accessToken) { - return (AddPeering) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddPeering setAlt(java.lang.String alt) { - return (AddPeering) super.setAlt(alt); + public GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public AddPeering setCallback(java.lang.String callback) { - return (AddPeering) super.setCallback(callback); + public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (GetPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public AddPeering setFields(java.lang.String fields) { - return (AddPeering) super.setFields(fields); + public GetPacketMirroringRule setAlt(java.lang.String alt) { + return (GetPacketMirroringRule) super.setAlt(alt); } @Override - public AddPeering setKey(java.lang.String key) { - return (AddPeering) super.setKey(key); + public GetPacketMirroringRule setCallback(java.lang.String callback) { + return (GetPacketMirroringRule) super.setCallback(callback); } @Override - public AddPeering setOauthToken(java.lang.String oauthToken) { - return (AddPeering) super.setOauthToken(oauthToken); + public GetPacketMirroringRule setFields(java.lang.String fields) { + return (GetPacketMirroringRule) super.setFields(fields); } @Override - public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPeering) super.setPrettyPrint(prettyPrint); + public GetPacketMirroringRule setKey(java.lang.String key) { + return (GetPacketMirroringRule) super.setKey(key); } @Override - public AddPeering setQuotaUser(java.lang.String quotaUser) { - return (AddPeering) super.setQuotaUser(quotaUser); + public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (GetPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public AddPeering setUploadType(java.lang.String uploadType) { - return (AddPeering) super.setUploadType(uploadType); + public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPeering) super.setUploadProtocol(uploadProtocol); + public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public AddPeering setUserIp(java.lang.String userIp) { - return (AddPeering) super.setUserIp(userIp); + public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (GetPacketMirroringRule) super.setUploadType(uploadType); + } + + @Override + public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetPacketMirroringRule setUserIp(java.lang.String userIp) { + return (GetPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97153,7 +98380,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPeering setProject(java.lang.String project) { + public GetPacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -97163,188 +98390,175 @@ public AddPeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to add peering to. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network resource to add peering to. + /** Name of the firewall policy to which the queried rule belongs. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network resource to add peering to. */ - public AddPeering setNetwork(java.lang.String network) { + /** Name of the firewall policy to which the queried rule belongs. */ + public GetPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer priority; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** The priority of the rule to get from the firewall policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPriority() { + return priority; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public AddPeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** The priority of the rule to get from the firewall policy. */ + public GetPacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @Override - public AddPeering set(String parameterName, Object value) { - return (AddPeering) super.set(parameterName, value); + public GetPacketMirroringRule set(String parameterName, Object value) { + return (GetPacketMirroringRule) super.set(parameterName, value); } } /** - * Deletes the specified network. + * Gets a rule of the specified priority. * - * Create a request for the method "networks.delete". + * Create a request for the method "networkFirewallPolicies.getRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to delete. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { - Delete result = new Delete(project, network); + public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetRule result = new GetRule(project, firewallPolicy); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified network. + * Gets a rule of the specified priority. * - * Create a request for the method "networks.delete". + * Create a request for the method "networkFirewallPolicies.getRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

+ * {@link + * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param network Name of the network to delete. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String network) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97358,7 +98572,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public GetRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -97368,437 +98582,61 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the network to delete. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network to delete. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network to delete. */ - public Delete setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified network. - * - * Create a request for the method "networks.get". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { - Get result = new Get(project, network); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the specified network. - * - * Create a request for the method "networks.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param network Name of the network to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Network.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @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); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name of the network to return. */ - @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to return. + /** Name of the firewall policy to which the queried rule belongs. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to return. */ - public Get setNetwork(java.lang.String network) { + /** Name of the firewall policy to which the queried rule belongs. */ + public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the effective firewalls on a given network. - * - * Create a request for the method "networks.getEffectiveFirewalls". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param network Name of the network for this request. - * @return the request - */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); - initialize(result); - return result; - } - - public class GetEffectiveFirewalls extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Returns the effective firewalls on a given network. - * - * Create a request for the method "networks.getEffectiveFirewalls". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param network Name of the network for this request. - * @since 1.13 - */ - protected GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworksGetEffectiveFirewallsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @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 GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); - } - - @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); - } - - @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); - } - - @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); - } - - @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); - } - - @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); - } - - @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); - } - - @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); - } - - @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); - } - - @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + this.firewallPolicy = firewallPolicy; return this; } - /** Name of the network for this request. */ + /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.Integer priority; - /** Name of the network for this request. + /** The priority of the rule to get from the firewall policy. */ - public java.lang.String getNetwork() { - return network; + public java.lang.Integer getPriority() { + return priority; } - /** Name of the network for this request. */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.network = network; + /** The priority of the rule to get from the firewall policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @Override - public GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Creates a network in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "networks.insert". + * Create a request for the method "networkFirewallPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.Network content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -97806,15 +98644,15 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates a network in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "networks.insert". + * Create a request for the method "networkFirewallPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -97822,10 +98660,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.Network content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -97962,9 +98800,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of networks available to the specified project. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networks.list". + * Create a request for the method "networkFirewallPolicies.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -97978,17 +98816,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of networks available to the specified project. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networks.list". + * Create a request for the method "networkFirewallPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -97999,7 +98837,7 @@ public class List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists the peering routes exchanged over peering connection. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networks.listPeeringRoutes". + * Create a request for the method "networkFirewallPolicies.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. - *

{@link ListPeeringRoutes#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @since 1.13 */ - protected ListPeeringRoutes(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExchangedPeeringRoutesList.class); + protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListPeeringRoutes) super.set$Xgafv($Xgafv); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { - return (ListPeeringRoutes) super.setAccessToken(accessToken); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ListPeeringRoutes setAlt(java.lang.String alt) { - return (ListPeeringRoutes) super.setAlt(alt); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ListPeeringRoutes setCallback(java.lang.String callback) { - return (ListPeeringRoutes) super.setCallback(callback); - } - - @Override - public ListPeeringRoutes setFields(java.lang.String fields) { - return (ListPeeringRoutes) super.setFields(fields); - } - - @Override - public ListPeeringRoutes setKey(java.lang.String key) { - return (ListPeeringRoutes) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { - return (ListPeeringRoutes) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListPeeringRoutes) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ListPeeringRoutes setUploadType(java.lang.String uploadType) { - return (ListPeeringRoutes) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ListPeeringRoutes setUserIp(java.lang.String userIp) { - return (ListPeeringRoutes) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -98452,7 +99281,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPeeringRoutes setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -98462,415 +99291,192 @@ public ListPeeringRoutes setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network for this request. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network for this request. */ - public ListPeeringRoutes setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public Patch setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; - return this; - } - - /** The direction of the exchanged routes. */ - @com.google.api.client.util.Key - private java.lang.String direction; - - /** The direction of the exchanged routes. - */ - public java.lang.String getDirection() { - return direction; - } - - /** The direction of the exchanged routes. */ - public ListPeeringRoutes setDirection(java.lang.String direction) { - this.direction = direction; - return this; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public ListPeeringRoutes setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListPeeringRoutes setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListPeeringRoutes setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListPeeringRoutes setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** The response will show routes exchanged over the given peering connection. */ - @com.google.api.client.util.Key - private java.lang.String peeringName; - - /** The response will show routes exchanged over the given peering connection. - */ - public java.lang.String getPeeringName() { - return peeringName; - } - - /** The response will show routes exchanged over the given peering connection. */ - public ListPeeringRoutes setPeeringName(java.lang.String peeringName) { - this.peeringName = peeringName; - return this; - } - - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region of the request. The response will include all subnet routes, static routes and dynamic - routes in the region. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. - */ - public ListPeeringRoutes setRegion(java.lang.String region) { - this.region = region; + this.firewallPolicy = firewallPolicy; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). */ - public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListPeeringRoutes set(String parameterName, Object value) { - return (ListPeeringRoutes) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.patch". + * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param network Name of the network to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) throws java.io.IOException { - Patch result = new Patch(project, network, content); + public PatchPacketMirroringRule patchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchPacketMirroringRule result = new PatchPacketMirroringRule(project, firewallPolicy, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class PatchPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.patch". + * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote + * operation.

{@link PatchPacketMirroringRule#initialize(com.google.api.client.googleapis.serv + * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param network Name of the network to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected PatchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (PatchPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public PatchPacketMirroringRule setAlt(java.lang.String alt) { + return (PatchPacketMirroringRule) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public PatchPacketMirroringRule setCallback(java.lang.String callback) { + return (PatchPacketMirroringRule) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public PatchPacketMirroringRule setFields(java.lang.String fields) { + return (PatchPacketMirroringRule) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public PatchPacketMirroringRule setKey(java.lang.String key) { + return (PatchPacketMirroringRule) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (PatchPacketMirroringRule) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { + return (PatchPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -98884,7 +99490,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public PatchPacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -98894,24 +99500,40 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the network to update. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to update. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to update. */ - public Patch setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchPacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -98950,62 +99572,62 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public PatchPacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public PatchPacketMirroringRule set(String parameterName, Object value) { + return (PatchPacketMirroringRule) super.set(parameterName, value); } } /** - * Removes a peering from the specified network. + * Patches a rule of the specified priority. * - * Create a request for the method "networks.removePeering". + * Create a request for the method "networkFirewallPolicies.patchRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public RemovePeering removePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) throws java.io.IOException { - RemovePeering result = new RemovePeering(project, network, content); + public PatchRule patchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(project, firewallPolicy, content); initialize(result); return result; } - public class RemovePeering extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Removes a peering from the specified network. + * Patches a rule of the specified priority. * - * Create a request for the method "networks.removePeering". + * Create a request for the method "networkFirewallPolicies.patchRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation.

- * {@link RemovePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

+ * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

+ * {@link + * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) { + protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -99013,72 +99635,72 @@ protected RemovePeering(java.lang.String project, java.lang.String network, com. "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RemovePeering) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public RemovePeering setAccessToken(java.lang.String accessToken) { - return (RemovePeering) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public RemovePeering setAlt(java.lang.String alt) { - return (RemovePeering) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public RemovePeering setCallback(java.lang.String callback) { - return (RemovePeering) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public RemovePeering setFields(java.lang.String fields) { - return (RemovePeering) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public RemovePeering setKey(java.lang.String key) { - return (RemovePeering) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public RemovePeering setOauthToken(java.lang.String oauthToken) { - return (RemovePeering) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePeering) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public RemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RemovePeering) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public RemovePeering setUploadType(java.lang.String uploadType) { - return (RemovePeering) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePeering) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public RemovePeering setUserIp(java.lang.String userIp) { - return (RemovePeering) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99092,7 +99714,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePeering setProject(java.lang.String project) { + public PatchRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -99102,24 +99724,40 @@ public RemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network resource to remove peering from. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network resource to remove peering from. */ - public RemovePeering setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -99158,60 +99796,60 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public RemovePeering setRequestId(java.lang.String requestId) { + public PatchRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemovePeering set(String parameterName, Object value) { - return (RemovePeering) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Switches the network mode from auto subnet mode to custom subnet mode. + * Removes an association for the specified firewall policy. * - * Create a request for the method "networks.switchToCustomMode". + * Create a request for the method "networkFirewallPolicies.removeAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to be updated. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { - SwitchToCustomMode result = new SwitchToCustomMode(project, network); + public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); initialize(result); return result; } - public class SwitchToCustomMode extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Switches the network mode from auto subnet mode to custom subnet mode. + * Removes an association for the specified firewall policy. * - * Create a request for the method "networks.switchToCustomMode". + * Create a request for the method "networkFirewallPolicies.removeAssociation". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote - * operation.

{@link SwitchToCustomMode#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. - * @param network Name of the network to be updated. + * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected SwitchToCustomMode(java.lang.String project, java.lang.String network) { + protected RemoveAssociation(java.lang.String project, java.lang.String firewallPolicy) { super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -99219,72 +99857,72 @@ protected SwitchToCustomMode(java.lang.String project, java.lang.String network) "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { - return (SwitchToCustomMode) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { - return (SwitchToCustomMode) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public SwitchToCustomMode setAlt(java.lang.String alt) { - return (SwitchToCustomMode) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public SwitchToCustomMode setCallback(java.lang.String callback) { - return (SwitchToCustomMode) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public SwitchToCustomMode setFields(java.lang.String fields) { - return (SwitchToCustomMode) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public SwitchToCustomMode setKey(java.lang.String key) { - return (SwitchToCustomMode) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { - return (SwitchToCustomMode) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { - return (SwitchToCustomMode) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public SwitchToCustomMode setUploadType(java.lang.String uploadType) { - return (SwitchToCustomMode) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { - return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public SwitchToCustomMode setUserIp(java.lang.String userIp) { - return (SwitchToCustomMode) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99298,7 +99936,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SwitchToCustomMode setProject(java.lang.String project) { + public RemoveAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -99308,24 +99946,40 @@ public SwitchToCustomMode setProject(java.lang.String project) { return this; } - /** Name of the network to be updated. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to be updated. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to be updated. */ - public SwitchToCustomMode setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** Name for the attachment that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the attachment that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; return this; } @@ -99364,135 +100018,134 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public SwitchToCustomMode setRequestId(java.lang.String requestId) { + public RemoveAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SwitchToCustomMode set(String parameterName, Object value) { - return (SwitchToCustomMode) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.testIamPermissions". + * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class RemovePacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.testIamPermissions". + * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote + * operation.

{@link RemovePacketMirroringRule#initialize(com.google.api.client.googleapis.ser + * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected RemovePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (RemovePacketMirroringRule) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public RemovePacketMirroringRule setAlt(java.lang.String alt) { + return (RemovePacketMirroringRule) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public RemovePacketMirroringRule setCallback(java.lang.String callback) { + return (RemovePacketMirroringRule) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public RemovePacketMirroringRule setFields(java.lang.String fields) { + return (RemovePacketMirroringRule) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public RemovePacketMirroringRule setKey(java.lang.String key) { + return (RemovePacketMirroringRule) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { + return (RemovePacketMirroringRule) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { + return (RemovePacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99506,7 +100159,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public RemovePacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -99516,154 +100169,205 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the firewall policy to update. */ + public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemovePacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public RemovePacketMirroringRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public RemovePacketMirroringRule set(String parameterName, Object value) { + return (RemovePacketMirroringRule) super.set(parameterName, value); } } /** - * Updates the specified network peering with the data included in the request. You can only modify - * the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + * Deletes a rule of the specified priority. * - * Create a request for the method "networks.updatePeering". + * Create a request for the method "networkFirewallPolicies.removeRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network resource which the updated peering is belonging to. - * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public UpdatePeering updatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) throws java.io.IOException { - UpdatePeering result = new UpdatePeering(project, network, content); + public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(project, firewallPolicy); initialize(result); return result; } - public class UpdatePeering extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/updatePeering"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified network peering with the data included in the request. You can only - * modify the NetworkPeering.export_custom_routes field and the - * NetworkPeering.import_custom_routes field. + * Deletes a rule of the specified priority. * - * Create a request for the method "networks.updatePeering". + * Create a request for the method "networkFirewallPolicies.removeRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation.

- * {@link UpdatePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

+ * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

+ * {@link + * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param network Name of the network resource which the updated peering is belonging to. - * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected UpdatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePeering) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public UpdatePeering setAccessToken(java.lang.String accessToken) { - return (UpdatePeering) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public UpdatePeering setAlt(java.lang.String alt) { - return (UpdatePeering) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public UpdatePeering setCallback(java.lang.String callback) { - return (UpdatePeering) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public UpdatePeering setFields(java.lang.String fields) { - return (UpdatePeering) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public UpdatePeering setKey(java.lang.String key) { - return (UpdatePeering) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public UpdatePeering setOauthToken(java.lang.String oauthToken) { - return (UpdatePeering) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePeering) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public UpdatePeering setQuotaUser(java.lang.String quotaUser) { - return (UpdatePeering) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public UpdatePeering setUploadType(java.lang.String uploadType) { - return (UpdatePeering) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePeering) super.setUploadProtocol(uploadProtocol); - } + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } @Override - public UpdatePeering setUserIp(java.lang.String userIp) { - return (UpdatePeering) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99677,7 +100381,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdatePeering setProject(java.lang.String project) { + public RemoveRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -99687,24 +100391,40 @@ public UpdatePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource which the updated peering is belonging to. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network resource which the updated peering is belonging to. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network resource which the updated peering is belonging to. */ - public UpdatePeering setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -99743,169 +100463,135 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public UpdatePeering setRequestId(java.lang.String requestId) { + public RemoveRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdatePeering set(String parameterName, Object value) { - return (UpdatePeering) super.set(parameterName, value); + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NodeGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeGroups.List request = compute.nodeGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeGroups nodeGroups() { - return new NodeGroups(); - } - - /** - * The "nodeGroups" collection of methods. - */ - public class NodeGroups { - /** - * Adds specified number of nodes to the node group. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeGroups.addNodes". + * Create a request for the method "networkFirewallPolicies.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public AddNodes addNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) throws java.io.IOException { - AddNodes result = new AddNodes(project, zone, nodeGroup, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class AddNodes extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Adds specified number of nodes to the node group. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeGroups.addNodes". + * Create a request for the method "networkFirewallPolicies.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation.

+ * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

* {@link - * AddNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddNodes set$Xgafv(java.lang.String $Xgafv) { - return (AddNodes) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AddNodes setAccessToken(java.lang.String accessToken) { - return (AddNodes) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public AddNodes setAlt(java.lang.String alt) { - return (AddNodes) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public AddNodes setCallback(java.lang.String callback) { - return (AddNodes) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public AddNodes setFields(java.lang.String fields) { - return (AddNodes) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public AddNodes setKey(java.lang.String key) { - return (AddNodes) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public AddNodes setOauthToken(java.lang.String oauthToken) { - return (AddNodes) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNodes) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AddNodes setQuotaUser(java.lang.String quotaUser) { - return (AddNodes) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AddNodes setUploadType(java.lang.String uploadType) { - return (AddNodes) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNodes) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AddNodes setUserIp(java.lang.String userIp) { - return (AddNodes) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99919,7 +100605,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddNodes setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -99929,213 +100615,151 @@ public AddNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public AddNodes setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the NodeGroup resource. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String resource; - /** Name of the NodeGroup resource. + /** Name or id of the resource for this request. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getResource() { + return resource; } - /** Name of the NodeGroup resource. */ - public AddNodes setNodeGroup(java.lang.String nodeGroup) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public AddNodes setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public AddNodes set(String parameterName, Object value) { - return (AddNodes) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details - * about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` - * parameter to `true`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.aggregatedList". + * Create a request for the method "networkFirewallPolicies.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details - * about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` - * parameter to `true`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.aggregatedList". + * Create a request for the method "networkFirewallPolicies.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupAggregatedList.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100149,7 +100773,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -100159,403 +100783,181 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String resource; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. + /** Name or id of the resource for this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getResource() { + return resource; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } + } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } + /** + * An accessor for creating requests from the NetworkProfiles collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkProfiles.List request = compute.networkProfiles().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkProfiles networkProfiles() { + return new NetworkProfiles(); + } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } + /** + * The "networkProfiles" collection of methods. + */ + public class NetworkProfiles { - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } /** - * Deletes the specified NodeGroup resource. + * Returns the specified network profile. * - * Create a request for the method "nodeGroups.delete". + * Create a request for the method "networkProfiles.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to delete. + * @param networkProfile Name of the network profile to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, nodeGroup); + public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { + Get result = new Get(project, networkProfile); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = + private final java.util.regex.Pattern NETWORK_PROFILE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified NodeGroup resource. + * Returns the specified network profile. * - * Create a request for the method "nodeGroups.delete". + * Create a request for the method "networkProfiles.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to delete. + * @param networkProfile Name of the network profile to return. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String networkProfile) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfile.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), + "Parameter networkProfile must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100569,7 +100971,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -100579,223 +100981,147 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the NodeGroup resource to delete. */ + /** Name of the network profile to return. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String networkProfile; - /** Name of the NodeGroup resource to delete. + /** Name of the network profile to return. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetworkProfile() { + return networkProfile; } - /** Name of the NodeGroup resource to delete. */ - public Delete setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network profile to return. */ + public Get setNetworkProfile(java.lang.String networkProfile) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), + "Parameter networkProfile must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.networkProfile = networkProfile; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes specified nodes from the node group. + * Retrieves a list of network profiles available to the specified project. * - * Create a request for the method "nodeGroups.deleteNodes". + * Create a request for the method "networkProfiles.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} * @return the request */ - public DeleteNodes deleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) throws java.io.IOException { - DeleteNodes result = new DeleteNodes(project, zone, nodeGroup, content); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class DeleteNodes extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; + private static final String REST_PATH = "projects/{project}/global/networkProfiles"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes specified nodes from the node group. + * Retrieves a list of network profiles available to the specified project. * - * Create a request for the method "nodeGroups.deleteNodes". + * Create a request for the method "networkProfiles.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation.

- * {@link - * DeleteNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} * @since 1.13 */ - protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfilesListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNodes) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeleteNodes setAccessToken(java.lang.String accessToken) { - return (DeleteNodes) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeleteNodes setAlt(java.lang.String alt) { - return (DeleteNodes) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public DeleteNodes setCallback(java.lang.String callback) { - return (DeleteNodes) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public DeleteNodes setFields(java.lang.String fields) { - return (DeleteNodes) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public DeleteNodes setKey(java.lang.String key) { - return (DeleteNodes) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public DeleteNodes setOauthToken(java.lang.String oauthToken) { - return (DeleteNodes) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNodes) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public DeleteNodes setQuotaUser(java.lang.String quotaUser) { - return (DeleteNodes) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public DeleteNodes setUploadType(java.lang.String uploadType) { - return (DeleteNodes) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNodes) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public DeleteNodes setUserIp(java.lang.String userIp) { - return (DeleteNodes) super.setUserIp(userIp); + 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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100809,7 +101135,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteNodes setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -100819,232 +101145,361 @@ public DeleteNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getZone() { - return zone; - } + @com.google.api.client.util.Key + private java.lang.String filter; - /** The name of the zone for this request. */ - public DeleteNodes setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } - /** Name of the NodeGroup resource whose nodes will be deleted. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.Long maxResults; - /** Name of the NodeGroup resource whose nodes will be deleted. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Name of the NodeGroup resource whose nodes will be deleted. */ - public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public DeleteNodes setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public DeleteNodes set(String parameterName, Object value) { - return (DeleteNodes) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Networks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Networks.List request = compute.networks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Networks networks() { + return new Networks(); + } + + /** + * The "networks" collection of methods. + */ + public class Networks { + /** - * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * Adds a peering to the specified network. * - * Create a request for the method "nodeGroups.get". + * Create a request for the method "networks.addPeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group to return. + * @param network Name of the network resource to add peering to. + * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - Get result = new Get(project, zone, nodeGroup); + public AddPeering addPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) throws java.io.IOException { + AddPeering result = new AddPeering(project, network, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class AddPeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * Adds a peering to the specified network. * - * Create a request for the method "nodeGroups.get". + * Create a request for the method "networks.addPeering". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation.

+ * {@link + * AddPeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group to return. + * @param network Name of the network resource to add peering to. + * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroup.class); + protected AddPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public AddPeering set$Xgafv(java.lang.String $Xgafv) { + return (AddPeering) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AddPeering setAccessToken(java.lang.String accessToken) { + return (AddPeering) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AddPeering setAlt(java.lang.String alt) { + return (AddPeering) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AddPeering setCallback(java.lang.String callback) { + return (AddPeering) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AddPeering setFields(java.lang.String fields) { + return (AddPeering) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AddPeering setKey(java.lang.String key) { + return (AddPeering) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AddPeering setOauthToken(java.lang.String oauthToken) { + return (AddPeering) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPeering) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AddPeering setQuotaUser(java.lang.String quotaUser) { + return (AddPeering) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AddPeering setUploadType(java.lang.String uploadType) { + return (AddPeering) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPeering) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AddPeering setUserIp(java.lang.String userIp) { + return (AddPeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101058,7 +101513,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public AddPeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -101068,192 +101523,188 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network resource to add peering to. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network resource to add peering to. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the network resource to add peering to. */ + public AddPeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.network = network; return this; } - /** Name of the node group to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String requestId; - /** Name of the node group to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the node group to return. */ - public Get setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public AddPeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AddPeering set(String parameterName, Object value) { + return (AddPeering) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Deletes the specified network. * - * Create a request for the method "nodeGroups.getIamPolicy". + * Create a request for the method "networks.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. + * @param network Name of the network to delete. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); + public Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { + Delete result = new Delete(project, network); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Deletes the specified network. * - * Create a request for the method "nodeGroups.getIamPolicy". + * Create a request for the method "networks.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. + * @param network Name of the network to delete. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Delete(java.lang.String project, java.lang.String network) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101267,7 +101718,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -101277,190 +101728,198 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name or id of the resource for this request. */ + /** Name of the network to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String network; - /** Name or id of the resource for this request. + /** Name of the network to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetwork() { + return network; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the network to delete. */ + public Delete setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.network = network; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Returns the specified network. * - * Create a request for the method "nodeGroups.insert". + * Create a request for the method "networks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param network Name of the network to return. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, initialNodeCount, content); + public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { + Get result = new Get(project, network); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Returns the specified network. * - * Create a request for the method "nodeGroups.insert". + * Create a request for the method "networks.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param network Name of the network to return. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Network.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101474,7 +101933,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -101484,144 +101943,88 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network to return. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network to return. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + /** Name of the network to return. */ + public Get setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; - return this; - } - - /** Initial count of nodes in the node group. */ - @com.google.api.client.util.Key - private java.lang.Integer initialNodeCount; - - /** Initial count of nodes in the node group. - */ - public java.lang.Integer getInitialNodeCount() { - return initialNodeCount; - } - - /** Initial count of nodes in the node group. */ - public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { - this.initialNodeCount = initialNodeCount; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.network = network; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Returns the effective firewalls on a given network. * - * Create a request for the method "nodeGroups.list". + * Create a request for the method "networks.getEffectiveFirewalls". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param network Name of the network for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { + GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); initialize(result); return result; } - public class List extends ComputeRequest { + public class GetEffectiveFirewalls extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Returns the effective firewalls on a given network. * - * Create a request for the method "nodeGroups.list". + * Create a request for the method "networks.getEffectiveFirewalls". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param network Name of the network for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); + protected GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworksGetEffectiveFirewallsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -101637,63 +102040,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101707,7 +102110,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetEffectiveFirewalls setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -101717,88 +102120,406 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** Name of the network for this request. */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.network = network; return this; } + @Override + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); + } + } + /** + * Creates a network in the specified project using the data included in the request. + * + * Create a request for the method "networks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Network} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Network content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. + * Creates a network in the specified project using the data included in the request. + * + * Create a request for the method "networks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Network} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; + protected Insert(java.lang.String project, com.google.api.services.compute.model.Network content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } - /** + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of networks available to the specified project. + * + * Create a request for the method "networks.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves the list of networks available to the specified project. + * + * Create a request for the method "networks.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and * expressions that follow API improvement proposal AIP-160. These two types of filter @@ -101952,133 +102673,132 @@ public List set(String parameterName, Object value) { } } /** - * Lists nodes in the node group. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "nodeGroups.listNodes". + * Create a request for the method "networks.listPeeringRoutes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @param network Name of the network for this request. * @return the request */ - public ListNodes listNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - ListNodes result = new ListNodes(project, zone, nodeGroup); + public ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { + ListPeeringRoutes result = new ListPeeringRoutes(project, network); initialize(result); return result; } - public class ListNodes extends ComputeRequest { + public class ListPeeringRoutes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Lists nodes in the node group. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "nodeGroups.listNodes". + * Create a request for the method "networks.listPeeringRoutes". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation.

- * {@link - * ListNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. + *

{@link ListPeeringRoutes#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @param network Name of the network for this request. * @since 1.13 */ - protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NodeGroupsListNodes.class); + protected ListPeeringRoutes(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExchangedPeeringRoutesList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public ListNodes set$Xgafv(java.lang.String $Xgafv) { - return (ListNodes) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ListNodes setAccessToken(java.lang.String accessToken) { - return (ListNodes) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ListNodes setAlt(java.lang.String alt) { - return (ListNodes) super.setAlt(alt); + public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListPeeringRoutes) super.set$Xgafv($Xgafv); } @Override - public ListNodes setCallback(java.lang.String callback) { - return (ListNodes) super.setCallback(callback); + public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { + return (ListPeeringRoutes) super.setAccessToken(accessToken); } @Override - public ListNodes setFields(java.lang.String fields) { - return (ListNodes) super.setFields(fields); + public ListPeeringRoutes setAlt(java.lang.String alt) { + return (ListPeeringRoutes) super.setAlt(alt); } @Override - public ListNodes setKey(java.lang.String key) { - return (ListNodes) super.setKey(key); + public ListPeeringRoutes setCallback(java.lang.String callback) { + return (ListPeeringRoutes) super.setCallback(callback); } @Override - public ListNodes setOauthToken(java.lang.String oauthToken) { - return (ListNodes) super.setOauthToken(oauthToken); + public ListPeeringRoutes setFields(java.lang.String fields) { + return (ListPeeringRoutes) super.setFields(fields); } @Override - public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNodes) super.setPrettyPrint(prettyPrint); + public ListPeeringRoutes setKey(java.lang.String key) { + return (ListPeeringRoutes) super.setKey(key); } @Override - public ListNodes setQuotaUser(java.lang.String quotaUser) { - return (ListNodes) super.setQuotaUser(quotaUser); + public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { + return (ListPeeringRoutes) super.setOauthToken(oauthToken); } @Override - public ListNodes setUploadType(java.lang.String uploadType) { - return (ListNodes) super.setUploadType(uploadType); + public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); } @Override - public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNodes) super.setUploadProtocol(uploadProtocol); + public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListPeeringRoutes) super.setQuotaUser(quotaUser); } @Override - public ListNodes setUserIp(java.lang.String userIp) { - return (ListNodes) super.setUserIp(userIp); + public ListPeeringRoutes setUploadType(java.lang.String uploadType) { + return (ListPeeringRoutes) super.setUploadType(uploadType); + } + + @Override + public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPeeringRoutes setUserIp(java.lang.String userIp) { + return (ListPeeringRoutes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102092,7 +102812,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNodes setProject(java.lang.String project) { + public ListPeeringRoutes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -102102,45 +102822,40 @@ public ListNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public ListNodes setZone(java.lang.String zone) { + /** Name of the network for this request. */ + public ListPeeringRoutes setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.network = network; return this; } - /** Name of the NodeGroup resource whose nodes you want to list. */ + /** The direction of the exchanged routes. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String direction; - /** Name of the NodeGroup resource whose nodes you want to list. + /** The direction of the exchanged routes. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getDirection() { + return direction; } - /** Name of the NodeGroup resource whose nodes you want to list. */ - public ListNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; + /** The direction of the exchanged routes. */ + public ListPeeringRoutes setDirection(java.lang.String direction) { + this.direction = direction; return this; } @@ -102232,7 +102947,7 @@ public java.lang.String getFilter() { * instances that do not end with name "instance", you would use `name ne .*instance`. You * cannot combine constraints on multiple fields using regular expressions. */ - public ListNodes setFilter(java.lang.String filter) { + public ListPeeringRoutes setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -102261,7 +102976,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public ListNodes setMaxResults(java.lang.Long maxResults) { + public ListPeeringRoutes setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -102296,7 +103011,7 @@ public java.lang.String getOrderBy() { * this to sort resources like operations so that the newest operation is returned first. * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListNodes setOrderBy(java.lang.String orderBy) { + public ListPeeringRoutes setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -102319,81 +103034,118 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public ListNodes setPageToken(java.lang.String pageToken) { + public ListPeeringRoutes setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + /** The response will show routes exchanged over the given peering connection. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String peeringName; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** The response will show routes exchanged over the given peering connection. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getPeeringName() { + return peeringName; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** The response will show routes exchanged over the given peering connection. */ + public ListPeeringRoutes setPeeringName(java.lang.String peeringName) { + this.peeringName = peeringName; return this; } - @Override - public ListNodes set(String parameterName, Object value) { - return (ListNodes) super.set(parameterName, value); + /** + * The region of the request. The response will include all subnet routes, static routes and + * dynamic routes in the region. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region of the request. The response will include all subnet routes, static routes and dynamic + routes in the region. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The region of the request. The response will include all subnet routes, static routes and + * dynamic routes in the region. + */ + public ListPeeringRoutes setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public ListPeeringRoutes set(String parameterName, Object value) { + return (ListPeeringRoutes) super.set(parameterName, value); } } /** - * Updates the specified node group. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "nodeGroups.patch". + * Create a request for the method "networks.patch". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { - Patch result = new Patch(project, zone, nodeGroup, content); + public Patch patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) throws java.io.IOException { + Patch result = new Patch(project, network, content); initialize(result); return result; } public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified node group. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "nodeGroups.patch". + * Create a request for the method "networks.patch". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link @@ -102401,12 +103153,11 @@ public class Patch extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) { + protected Patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) { super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -102414,16 +103165,10 @@ protected Patch(java.lang.String project, java.lang.String zone, java.lang.Strin "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -102509,45 +103254,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public Patch setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the NodeGroup resource to update. */ + /** Name of the network to update. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String network; - /** Name of the NodeGroup resource to update. + /** Name of the network to update. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetwork() { + return network; } - /** Name of the NodeGroup resource to update. */ - public Patch setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network to update. */ + public Patch setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + this.network = network; return this; } @@ -102597,56 +103321,51 @@ public Patch set(String parameterName, Object value) { } } /** - * Perform maintenance on a subset of nodes in the node group. + * Removes a peering from the specified network. * - * Create a request for the method "nodeGroups.performMaintenance". + * Create a request for the method "networks.removePeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} * @return the request */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, nodeGroup, content); + public RemovePeering removePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) throws java.io.IOException { + RemovePeering result = new RemovePeering(project, network, content); initialize(result); return result; } - public class PerformMaintenance extends ComputeRequest { + public class RemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Perform maintenance on a subset of nodes in the node group. + * Removes a peering from the specified network. * - * Create a request for the method "nodeGroups.performMaintenance". + * Create a request for the method "networks.removePeering". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote - * operation.

{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation.

+ * {@link RemovePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} * @since 1.13 */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) { + protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -102654,78 +103373,72 @@ protected PerformMaintenance(java.lang.String project, java.lang.String zone, ja "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public RemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RemovePeering) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public RemovePeering setAccessToken(java.lang.String accessToken) { + return (RemovePeering) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public RemovePeering setAlt(java.lang.String alt) { + return (RemovePeering) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public RemovePeering setCallback(java.lang.String callback) { + return (RemovePeering) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public RemovePeering setFields(java.lang.String fields) { + return (RemovePeering) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public RemovePeering setKey(java.lang.String key) { + return (RemovePeering) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public RemovePeering setOauthToken(java.lang.String oauthToken) { + return (RemovePeering) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public RemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RemovePeering) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public RemovePeering setUploadType(java.lang.String uploadType) { + return (RemovePeering) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public RemovePeering setUserIp(java.lang.String userIp) { + return (RemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102739,7 +103452,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + public RemovePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -102749,45 +103462,24 @@ public PerformMaintenance setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the node group scoping this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String network; - /** Name of the node group scoping this request. + /** Name of the network resource to remove peering from. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetwork() { + return network; } - /** Name of the node group scoping this request. */ - public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network resource to remove peering from. */ + public RemovePeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + this.network = network; return this; } @@ -102826,146 +103518,138 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public PerformMaintenance setRequestId(java.lang.String requestId) { + public RemovePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public RemovePeering set(String parameterName, Object value) { + return (RemovePeering) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "nodeGroups.setIamPolicy". + * Create a request for the method "networks.requestRemovePeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + public RequestRemovePeering requestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) throws java.io.IOException { + RequestRemovePeering result = new RequestRemovePeering(project, network, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class RequestRemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "nodeGroups.setIamPolicy". + * Create a request for the method "networks.requestRemovePeering". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote + * operation.

{@link RequestRemovePeering#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected RequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RequestRemovePeering) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public RequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (RequestRemovePeering) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public RequestRemovePeering setAlt(java.lang.String alt) { + return (RequestRemovePeering) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public RequestRemovePeering setCallback(java.lang.String callback) { + return (RequestRemovePeering) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public RequestRemovePeering setFields(java.lang.String fields) { + return (RequestRemovePeering) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public RequestRemovePeering setKey(java.lang.String key) { + return (RequestRemovePeering) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (RequestRemovePeering) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RequestRemovePeering) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public RequestRemovePeering setUploadType(java.lang.String uploadType) { + return (RequestRemovePeering) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public RequestRemovePeering setUserIp(java.lang.String userIp) { + return (RequestRemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102979,7 +103663,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public RequestRemovePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -102989,183 +103673,189 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network resource to remove peering from. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** Name of the network resource to remove peering from. */ + public RequestRemovePeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.network = network; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public RequestRemovePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public RequestRemovePeering set(String parameterName, Object value) { + return (RequestRemovePeering) super.set(parameterName, value); } } /** - * Updates the node template of the node group. + * Switches the network mode from auto subnet mode to custom subnet mode. * - * Create a request for the method "nodeGroups.setNodeTemplate". + * Create a request for the method "networks.switchToCustomMode". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetNodeTemplate#execute()} method to invoke the remote operation. + * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @param network Name of the network to be updated. * @return the request */ - public SetNodeTemplate setNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) throws java.io.IOException { - SetNodeTemplate result = new SetNodeTemplate(project, zone, nodeGroup, content); + public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { + SwitchToCustomMode result = new SwitchToCustomMode(project, network); initialize(result); return result; } - public class SetNodeTemplate extends ComputeRequest { + public class SwitchToCustomMode extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the node template of the node group. + * Switches the network mode from auto subnet mode to custom subnet mode. * - * Create a request for the method "nodeGroups.setNodeTemplate". + * Create a request for the method "networks.switchToCustomMode". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetNodeTemplate#execute()} method to invoke the remote operation. - *

{@link SetNodeTemplate#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote + * operation.

{@link SwitchToCustomMode#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @param network Name of the network to be updated. * @since 1.13 */ - protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SwitchToCustomMode(java.lang.String project, java.lang.String network) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetNodeTemplate) super.set$Xgafv($Xgafv); + public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { + return (SwitchToCustomMode) super.set$Xgafv($Xgafv); } @Override - public SetNodeTemplate setAccessToken(java.lang.String accessToken) { - return (SetNodeTemplate) super.setAccessToken(accessToken); + public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { + return (SwitchToCustomMode) super.setAccessToken(accessToken); } @Override - public SetNodeTemplate setAlt(java.lang.String alt) { - return (SetNodeTemplate) super.setAlt(alt); + public SwitchToCustomMode setAlt(java.lang.String alt) { + return (SwitchToCustomMode) super.setAlt(alt); } @Override - public SetNodeTemplate setCallback(java.lang.String callback) { - return (SetNodeTemplate) super.setCallback(callback); + public SwitchToCustomMode setCallback(java.lang.String callback) { + return (SwitchToCustomMode) super.setCallback(callback); } @Override - public SetNodeTemplate setFields(java.lang.String fields) { - return (SetNodeTemplate) super.setFields(fields); + public SwitchToCustomMode setFields(java.lang.String fields) { + return (SwitchToCustomMode) super.setFields(fields); } @Override - public SetNodeTemplate setKey(java.lang.String key) { - return (SetNodeTemplate) super.setKey(key); + public SwitchToCustomMode setKey(java.lang.String key) { + return (SwitchToCustomMode) super.setKey(key); } @Override - public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { - return (SetNodeTemplate) super.setOauthToken(oauthToken); + public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { + return (SwitchToCustomMode) super.setOauthToken(oauthToken); } @Override - public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); + public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); } @Override - public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetNodeTemplate) super.setQuotaUser(quotaUser); + public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { + return (SwitchToCustomMode) super.setQuotaUser(quotaUser); } @Override - public SetNodeTemplate setUploadType(java.lang.String uploadType) { - return (SetNodeTemplate) super.setUploadType(uploadType); + public SwitchToCustomMode setUploadType(java.lang.String uploadType) { + return (SwitchToCustomMode) super.setUploadType(uploadType); } @Override - public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); + public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { + return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); } @Override - public SetNodeTemplate setUserIp(java.lang.String userIp) { - return (SetNodeTemplate) super.setUserIp(userIp); + public SwitchToCustomMode setUserIp(java.lang.String userIp) { + return (SwitchToCustomMode) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103179,7 +103869,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNodeTemplate setProject(java.lang.String project) { + public SwitchToCustomMode setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -103189,45 +103879,24 @@ public SetNodeTemplate setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public SetNodeTemplate setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the NodeGroup resource to update. */ + /** Name of the network to be updated. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String network; - /** Name of the NodeGroup resource to update. + /** Name of the network to be updated. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetwork() { + return network; } - /** Name of the NodeGroup resource to update. */ - public SetNodeTemplate setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network to be updated. */ + public SwitchToCustomMode setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + this.network = network; return this; } @@ -103266,147 +103935,135 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public SetNodeTemplate setRequestId(java.lang.String requestId) { + public SwitchToCustomMode setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNodeTemplate set(String parameterName, Object value) { - return (SetNodeTemplate) super.set(parameterName, value); + public SwitchToCustomMode set(String parameterName, Object value) { + return (SwitchToCustomMode) super.set(parameterName, value); } } /** - * Simulates maintenance event on specified nodes from the node group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * Create a request for the method "networks.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance simulation. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) throws java.io.IOException { - SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, nodeGroup, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class SimulateMaintenanceEvent extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; + private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Simulates maintenance event on specified nodes from the node group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * Create a request for the method "networks.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation.

{@link SimulateMaintenanceEvent#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance simulation. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { - return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { - return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SimulateMaintenanceEvent setAlt(java.lang.String alt) { - return (SimulateMaintenanceEvent) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SimulateMaintenanceEvent setCallback(java.lang.String callback) { - return (SimulateMaintenanceEvent) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SimulateMaintenanceEvent setFields(java.lang.String fields) { - return (SimulateMaintenanceEvent) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SimulateMaintenanceEvent setKey(java.lang.String key) { - return (SimulateMaintenanceEvent) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { - return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { - return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { - return (SimulateMaintenanceEvent) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { - return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { - return (SimulateMaintenanceEvent) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103420,7 +104077,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SimulateMaintenanceEvent setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -103430,45 +104087,195 @@ public SimulateMaintenanceEvent setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public SimulateMaintenanceEvent setZone(java.lang.String zone) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.resource = resource; return this; } - /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates the specified network peering with the data included in the request. You can only modify + * the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + * + * Create a request for the method "networks.updatePeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource which the updated peering is belonging to. + * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @return the request + */ + public UpdatePeering updatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) throws java.io.IOException { + UpdatePeering result = new UpdatePeering(project, network, content); + initialize(result); + return result; + } + + public class UpdatePeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/updatePeering"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified network peering with the data included in the request. You can only + * modify the NetworkPeering.export_custom_routes field and the + * NetworkPeering.import_custom_routes field. + * + * Create a request for the method "networks.updatePeering". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation.

+ * {@link UpdatePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *

+ * + * @param project Project ID for this request. + * @param network Name of the network resource which the updated peering is belonging to. + * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @since 1.13 + */ + protected UpdatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePeering) super.set$Xgafv($Xgafv); + } + + @Override + public UpdatePeering setAccessToken(java.lang.String accessToken) { + return (UpdatePeering) super.setAccessToken(accessToken); + } + + @Override + public UpdatePeering setAlt(java.lang.String alt) { + return (UpdatePeering) super.setAlt(alt); + } + + @Override + public UpdatePeering setCallback(java.lang.String callback) { + return (UpdatePeering) super.setCallback(callback); + } + + @Override + public UpdatePeering setFields(java.lang.String fields) { + return (UpdatePeering) super.setFields(fields); + } + + @Override + public UpdatePeering setKey(java.lang.String key) { + return (UpdatePeering) super.setKey(key); + } + + @Override + public UpdatePeering setOauthToken(java.lang.String oauthToken) { + return (UpdatePeering) super.setOauthToken(oauthToken); + } + + @Override + public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePeering) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdatePeering setQuotaUser(java.lang.String quotaUser) { + return (UpdatePeering) super.setQuotaUser(quotaUser); + } + + @Override + public UpdatePeering setUploadType(java.lang.String uploadType) { + return (UpdatePeering) super.setUploadType(uploadType); + } + + @Override + public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePeering) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdatePeering setUserIp(java.lang.String userIp) { + return (UpdatePeering) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String project; - /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. + /** Project ID for this request. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getProject() { + return project; } - /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ - public SimulateMaintenanceEvent setNodeGroup(java.lang.String nodeGroup) { + /** Project ID for this request. */ + public UpdatePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the network resource which the updated peering is belonging to. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource which the updated peering is belonging to. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource which the updated peering is belonging to. */ + public UpdatePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + this.network = network; return this; } @@ -103507,39 +104314,62 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { + public UpdatePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SimulateMaintenanceEvent set(String parameterName, Object value) { - return (SimulateMaintenanceEvent) super.set(parameterName, value); + public UpdatePeering set(String parameterName, Object value) { + return (UpdatePeering) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NodeGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeGroups.List request = compute.nodeGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeGroups nodeGroups() { + return new NodeGroups(); + } + + /** + * The "nodeGroups" collection of methods. + */ + public class NodeGroups { + /** - * Returns permissions that a caller has on the specified resource. + * Adds specified number of nodes to the node group. * - * Create a request for the method "nodeGroups.testIamPermissions". + * Create a request for the method "nodeGroups.addNodes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param nodeGroup Name of the NodeGroup resource. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public AddNodes addNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) throws java.io.IOException { + AddNodes result = new AddNodes(project, zone, nodeGroup, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class AddNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -103547,28 +104377,28 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation.

+ * {@link + * AddNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param nodeGroup Name of the NodeGroup resource. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -103581,72 +104411,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public AddNodes set$Xgafv(java.lang.String $Xgafv) { + return (AddNodes) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public AddNodes setAccessToken(java.lang.String accessToken) { + return (AddNodes) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public AddNodes setAlt(java.lang.String alt) { + return (AddNodes) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public AddNodes setCallback(java.lang.String callback) { + return (AddNodes) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public AddNodes setFields(java.lang.String fields) { + return (AddNodes) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public AddNodes setKey(java.lang.String key) { + return (AddNodes) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public AddNodes setOauthToken(java.lang.String oauthToken) { + return (AddNodes) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNodes) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public AddNodes setQuotaUser(java.lang.String quotaUser) { + return (AddNodes) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public AddNodes setUploadType(java.lang.String uploadType) { + return (AddNodes) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNodes) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public AddNodes setUserIp(java.lang.String userIp) { + return (AddNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103660,7 +104490,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public AddNodes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -103681,7 +104511,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + public AddNodes setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -103691,60 +104521,78 @@ public TestIamPermissions setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the NodeGroup resource. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the NodeGroup resource. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the NodeGroup resource. */ + public AddNodes setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.nodeGroup = nodeGroup; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - /** - * An accessor for creating requests from the NodeTemplates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeTemplates nodeTemplates() { - return new NodeTemplates(); - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } - /** - * The "nodeTemplates" collection of methods. - */ - public class NodeTemplates { + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public AddNodes setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override + public AddNodes set(String parameterName, Object value) { + return (AddNodes) super.set(parameterName, value); + } + } /** - * Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you - * set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` + * parameter to `true`. * - * Create a request for the method "nodeTemplates.aggregatedList". + * Create a request for the method "nodeGroups.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -103758,18 +104606,19 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you - * set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` + * parameter to `true`. * - * Create a request for the method "nodeTemplates.aggregatedList". + * Create a request for the method "nodeGroups.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -103781,7 +104630,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = + private final java.util.regex.Pattern NODE_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified NodeTemplate resource. + * Deletes the specified NodeGroup resource. * - * Create a request for the method "nodeTemplates.delete". + * Create a request for the method "nodeGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link @@ -104194,11 +105043,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -104206,16 +105055,16 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -104301,45 +105150,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the NodeTemplate resource to delete. */ + /** Name of the NodeGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String nodeTemplate; + private java.lang.String nodeGroup; - /** Name of the NodeTemplate resource to delete. + /** Name of the NodeGroup resource to delete. */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name of the NodeTemplate resource to delete. */ - public Delete setNodeTemplate(java.lang.String nodeTemplate) { + /** Name of the NodeGroup resource to delete. */ + public Delete setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeTemplate = nodeTemplate; + this.nodeGroup = nodeGroup; return this; } @@ -104389,142 +105238,135 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified node template. + * Deletes specified nodes from the node group. * - * Create a request for the method "nodeTemplates.get". + * Create a request for the method "nodeGroups.deleteNodes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { - Get result = new Get(project, region, nodeTemplate); + public DeleteNodes deleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) throws java.io.IOException { + DeleteNodes result = new DeleteNodes(project, zone, nodeGroup, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class DeleteNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = + private final java.util.regex.Pattern NODE_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified node template. + * Deletes specified nodes from the node group. * - * Create a request for the method "nodeTemplates.get". + * Create a request for the method "nodeGroups.deleteNodes". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation.

+ * {@link + * DeleteNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplate.class); + protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNodes) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public DeleteNodes setAccessToken(java.lang.String accessToken) { + return (DeleteNodes) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public DeleteNodes setAlt(java.lang.String alt) { + return (DeleteNodes) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public DeleteNodes setCallback(java.lang.String callback) { + return (DeleteNodes) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public DeleteNodes setFields(java.lang.String fields) { + return (DeleteNodes) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public DeleteNodes setKey(java.lang.String key) { + return (DeleteNodes) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public DeleteNodes setOauthToken(java.lang.String oauthToken) { + return (DeleteNodes) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNodes) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public DeleteNodes setQuotaUser(java.lang.String quotaUser) { + return (DeleteNodes) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public DeleteNodes setUploadType(java.lang.String uploadType) { + return (DeleteNodes) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNodes) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public DeleteNodes setUserIp(java.lang.String userIp) { + return (DeleteNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104538,7 +105380,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public DeleteNodes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -104548,120 +105390,160 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public DeleteNodes setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the node template to return. */ + /** Name of the NodeGroup resource whose nodes will be deleted. */ @com.google.api.client.util.Key - private java.lang.String nodeTemplate; + private java.lang.String nodeGroup; - /** Name of the node template to return. + /** Name of the NodeGroup resource whose nodes will be deleted. */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name of the node template to return. */ - public Get setNodeTemplate(java.lang.String nodeTemplate) { + /** Name of the NodeGroup resource whose nodes will be deleted. */ + public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeTemplate = nodeTemplate; + this.nodeGroup = nodeGroup; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public DeleteNodes setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public DeleteNodes set(String parameterName, Object value) { + return (DeleteNodes) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. + * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. * - * Create a request for the method "nodeTemplates.getIamPolicy". + * Create a request for the method "nodeGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group to return. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + Get result = new Get(project, zone, nodeGroup); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NODE_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. + * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. * - * Create a request for the method "nodeTemplates.getIamPolicy". + * Create a request for the method "nodeGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group to return. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -104677,63 +105559,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104747,7 +105629,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -104757,39 +105639,248 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** Name of the node group to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the node group to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the node group to return. */ + public Get setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "nodeGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "nodeGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public GetIamPolicy setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -104821,39 +105912,39 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a NodeTemplate resource in the specified project using the data included in the request. + * Creates a NodeGroup resource in the specified project using the data included in the request. * - * Create a request for the method "nodeTemplates.insert". + * Create a request for the method "nodeGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @param zone The name of the zone for this request. + * @param initialNodeCount Initial count of nodes in the node group. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, initialNodeCount, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Creates a NodeTemplate resource in the specified project using the data included in the - * request. + * Creates a NodeGroup resource in the specified project using the data included in the request. * - * Create a request for the method "nodeTemplates.insert". + * Create a request for the method "nodeGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -104861,11 +105952,12 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @param zone The name of the zone for this request. + * @param initialNodeCount Initial count of nodes in the node group. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) { + protected Insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -104873,12 +105965,13 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override @@ -104962,24 +106055,40 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; + return this; + } + + /** Initial count of nodes in the node group. */ + @com.google.api.client.util.Key + private java.lang.Integer initialNodeCount; + + /** Initial count of nodes in the node group. + */ + public java.lang.Integer getInitialNodeCount() { + return initialNodeCount; + } + + /** Initial count of nodes in the node group. */ + public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { + this.initialNodeCount = initialNodeCount; return this; } @@ -105029,37 +106138,39 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of node templates available to the specified project. + * Retrieves a list of node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. * - * Create a request for the method "nodeTemplates.list". + * Create a request for the method "nodeGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. + * @param zone The name of the zone for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Retrieves a list of node templates available to the specified project. + * Retrieves a list of node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. * - * Create a request for the method "nodeTemplates.list". + * Create a request for the method "nodeGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -105067,21 +106178,21 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region for this request. + * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -105177,24 +106288,24 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -105412,135 +106523,133 @@ public List set(String parameterName, Object value) { } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Lists nodes in the node group. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * Create a request for the method "nodeGroups.listNodes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + public ListNodes listNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + ListNodes result = new ListNodes(project, zone, nodeGroup); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class ListNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NODE_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Lists nodes in the node group. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * Create a request for the method "nodeGroups.listNodes". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation.

* {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * ListNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NodeGroupsListNodes.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public ListNodes set$Xgafv(java.lang.String $Xgafv) { + return (ListNodes) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public ListNodes setAccessToken(java.lang.String accessToken) { + return (ListNodes) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public ListNodes setAlt(java.lang.String alt) { + return (ListNodes) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public ListNodes setCallback(java.lang.String callback) { + return (ListNodes) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public ListNodes setFields(java.lang.String fields) { + return (ListNodes) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public ListNodes setKey(java.lang.String key) { + return (ListNodes) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public ListNodes setOauthToken(java.lang.String oauthToken) { + return (ListNodes) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNodes) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public ListNodes setQuotaUser(java.lang.String quotaUser) { + return (ListNodes) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public ListNodes setUploadType(java.lang.String uploadType) { + return (ListNodes) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNodes) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public ListNodes setUserIp(java.lang.String userIp) { + return (ListNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105554,7 +106663,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public ListNodes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -105564,414 +106673,45 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public ListNodes setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** Name of the NodeGroup resource whose nodes you want to list. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the NodeGroup resource whose nodes you want to list. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the NodeGroup resource whose nodes you want to list. */ + public ListNodes setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "nodeTemplates.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "nodeTemplates.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NodeTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeTypes nodeTypes() { - return new NodeTypes(); - } - - /** - * The "nodeTypes" collection of methods. - */ - public class NodeTypes { - - /** - * Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set - * the `returnPartialSuccess` parameter to `true`. - * - * Create a request for the method "nodeTypes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set - * the `returnPartialSuccess` parameter to `true`. - * - * Create a request for the method "nodeTypes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeAggregatedList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + this.nodeGroup = nodeGroup; return this; } @@ -106063,45 +106803,11 @@ public java.lang.String getFilter() { * instances that do not end with name "instance", you would use `name ne .*instance`. You * cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListNodes setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -106126,7 +106832,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public ListNodes setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -106161,7 +106867,7 @@ public java.lang.String getOrderBy() { * this to sort resources like operations so that the newest operation is returned first. * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListNodes setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -106184,7 +106890,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public ListNodes setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -106212,61 +106918,39 @@ public java.lang.Boolean getReturnPartialSuccess() { * aggregatedList for a single zone scope either returns all resources in the zone or no * resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public ListNodes set(String parameterName, Object value) { + return (ListNodes) super.set(parameterName, value); } } /** - * Returns the specified node type. + * Updates the specified node group. * - * Create a request for the method "nodeTypes.get". + * Create a request for the method "nodeGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param nodeType Name of the node type to return. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) throws java.io.IOException { - Get result = new Get(project, zone, nodeType); + public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { + Patch result = new Patch(project, zone, nodeGroup, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -106274,26 +106958,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param nodeType Name of the node type to return. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeType.class); + protected Patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -106306,82 +106991,72 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeType = com.google.api.client.util.Preconditions.checkNotNull(nodeType, "Required parameter nodeType must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106395,7 +107070,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -106416,7 +107091,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public Patch setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -106426,53 +107101,95 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the node type to return. */ + /** Name of the NodeGroup resource to update. */ @com.google.api.client.util.Key - private java.lang.String nodeType; + private java.lang.String nodeGroup; - /** Name of the node type to return. + /** Name of the NodeGroup resource to update. */ - public java.lang.String getNodeType() { - return nodeType; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name of the node type to return. */ - public Get setNodeType(java.lang.String nodeType) { + /** Name of the NodeGroup resource to update. */ + public Patch setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeType = nodeType; + this.nodeGroup = nodeGroup; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves a list of node types available to the specified project. + * Perform maintenance on a subset of nodes in the node group. * - * Create a request for the method "nodeTypes.list". + * Create a request for the method "nodeGroups.performMaintenance". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, nodeGroup, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -106480,22 +107197,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeList.class); + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -106508,76 +107231,72 @@ protected List(java.lang.String project, java.lang.String zone) { "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106591,7 +107310,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public PerformMaintenance setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -106612,7 +107331,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + public PerformMaintenance setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -106622,573 +107341,464 @@ public List setZone(java.lang.String zone) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the node group scoping this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String nodeGroup; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the node group scoping this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Name of the node group scoping this request. */ + public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the OrganizationSecurityPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.OrganizationSecurityPolicies.List request = compute.organizationSecurityPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public OrganizationSecurityPolicies organizationSecurityPolicies() { - return new OrganizationSecurityPolicies(); - } - - /** - * The "organizationSecurityPolicies" collection of methods. - */ - public class OrganizationSecurityPolicies { - /** - * Inserts an association for the specified security policy. Use of this API to modify firewall - * policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "organizationSecurityPolicies.addAssociation". + * Create a request for the method "nodeGroups.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @return the request */ - public AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(securityPolicy, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); initialize(result); return result; } - public class AddAssociation extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Inserts an association for the specified security policy. Use of this API to modify firewall - * policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "organizationSecurityPolicies.addAssociation". + * Create a request for the method "nodeGroups.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @since 1.13 */ - protected AddAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; return this; } - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; + private java.lang.String zone; - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. + /** The name of the zone for this request. */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; + public java.lang.String getZone() { + return zone; } - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Inserts a rule into a security policy. + * Updates the node template of the node group. * - * Create a request for the method "organizationSecurityPolicies.addRule". + * Create a request for the method "nodeGroups.setNodeTemplate". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link SetNodeTemplate#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} * @return the request */ - public AddRule addRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(securityPolicy, content); + public SetNodeTemplate setNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) throws java.io.IOException { + SetNodeTemplate result = new SetNodeTemplate(project, zone, nodeGroup, content); initialize(result); return result; } - public class AddRule extends ComputeRequest { + public class SetNodeTemplate extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Inserts a rule into a security policy. + * Updates the node template of the node group. * - * Create a request for the method "organizationSecurityPolicies.addRule". + * Create a request for the method "nodeGroups.setNodeTemplate". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

- * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link SetNodeTemplate#execute()} method to invoke the remote operation. + *

{@link SetNodeTemplate#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} * @since 1.13 */ - protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetNodeTemplate) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public SetNodeTemplate setAccessToken(java.lang.String accessToken) { + return (SetNodeTemplate) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public SetNodeTemplate setAlt(java.lang.String alt) { + return (SetNodeTemplate) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public SetNodeTemplate setCallback(java.lang.String callback) { + return (SetNodeTemplate) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public SetNodeTemplate setFields(java.lang.String fields) { + return (SetNodeTemplate) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public SetNodeTemplate setKey(java.lang.String key) { + return (SetNodeTemplate) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { + return (SetNodeTemplate) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetNodeTemplate) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public SetNodeTemplate setUploadType(java.lang.String uploadType) { + return (SetNodeTemplate) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public SetNodeTemplate setUserIp(java.lang.String userIp) { + return (SetNodeTemplate) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public SetNodeTemplate setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public SetNodeTemplate setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the NodeGroup resource to update. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource to update. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource to update. */ + public SetNodeTemplate setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; return this; } @@ -107227,144 +107837,209 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public AddRule setRequestId(java.lang.String requestId) { + public SetNodeTemplate setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public SetNodeTemplate set(String parameterName, Object value) { + return (SetNodeTemplate) super.set(parameterName, value); } } /** - * Copies rules to the specified security policy. Use of this API to modify firewall policies is - * deprecated. Use firewallPolicies.copyRules instead. + * Simulates maintenance event on specified nodes from the node group. * - * Create a request for the method "organizationSecurityPolicies.copyRules". + * Create a request for the method "nodeGroups.simulateMaintenanceEvent". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation. + * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation. * - * @param securityPolicy Name of the security policy to update. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance simulation. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} * @return the request */ - public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { - CopyRules result = new CopyRules(securityPolicy); + public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) throws java.io.IOException { + SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, nodeGroup, content); initialize(result); return result; } - public class CopyRules extends ComputeRequest { + public class SimulateMaintenanceEvent extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Copies rules to the specified security policy. Use of this API to modify firewall policies is - * deprecated. Use firewallPolicies.copyRules instead. + * Simulates maintenance event on specified nodes from the node group. * - * Create a request for the method "organizationSecurityPolicies.copyRules". + * Create a request for the method "nodeGroups.simulateMaintenanceEvent". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

- * {@link - * CopyRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation.

{@link SimulateMaintenanceEvent#initialize(com.google.api.client.googleapis.serv + * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* - * @param securityPolicy Name of the security policy to update. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance simulation. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} * @since 1.13 */ - protected CopyRules(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public CopyRules set$Xgafv(java.lang.String $Xgafv) { - return (CopyRules) super.set$Xgafv($Xgafv); + public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { + return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); } @Override - public CopyRules setAccessToken(java.lang.String accessToken) { - return (CopyRules) super.setAccessToken(accessToken); + public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { + return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); } @Override - public CopyRules setAlt(java.lang.String alt) { - return (CopyRules) super.setAlt(alt); + public SimulateMaintenanceEvent setAlt(java.lang.String alt) { + return (SimulateMaintenanceEvent) super.setAlt(alt); } @Override - public CopyRules setCallback(java.lang.String callback) { - return (CopyRules) super.setCallback(callback); + public SimulateMaintenanceEvent setCallback(java.lang.String callback) { + return (SimulateMaintenanceEvent) super.setCallback(callback); } @Override - public CopyRules setFields(java.lang.String fields) { - return (CopyRules) super.setFields(fields); + public SimulateMaintenanceEvent setFields(java.lang.String fields) { + return (SimulateMaintenanceEvent) super.setFields(fields); } @Override - public CopyRules setKey(java.lang.String key) { - return (CopyRules) super.setKey(key); + public SimulateMaintenanceEvent setKey(java.lang.String key) { + return (SimulateMaintenanceEvent) super.setKey(key); } @Override - public CopyRules setOauthToken(java.lang.String oauthToken) { - return (CopyRules) super.setOauthToken(oauthToken); + public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { + return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); } @Override - public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CopyRules) super.setPrettyPrint(prettyPrint); + public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); } @Override - public CopyRules setQuotaUser(java.lang.String quotaUser) { - return (CopyRules) super.setQuotaUser(quotaUser); + public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { + return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); } @Override - public CopyRules setUploadType(java.lang.String uploadType) { - return (CopyRules) super.setUploadType(uploadType); + public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { + return (SimulateMaintenanceEvent) super.setUploadType(uploadType); } @Override - public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CopyRules) super.setUploadProtocol(uploadProtocol); + public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { + return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); } @Override - public CopyRules setUserIp(java.lang.String userIp) { - return (CopyRules) super.setUserIp(userIp); + public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { + return (SimulateMaintenanceEvent) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public SimulateMaintenanceEvent setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public SimulateMaintenanceEvent setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ + public SimulateMaintenanceEvent setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; return this; } @@ -107403,253 +108078,286 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public CopyRules setRequestId(java.lang.String requestId) { + public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** The security policy from which to copy rules. */ - @com.google.api.client.util.Key - private java.lang.String sourceSecurityPolicy; - - /** The security policy from which to copy rules. - */ - public java.lang.String getSourceSecurityPolicy() { - return sourceSecurityPolicy; - } - - /** The security policy from which to copy rules. */ - public CopyRules setSourceSecurityPolicy(java.lang.String sourceSecurityPolicy) { - this.sourceSecurityPolicy = sourceSecurityPolicy; - return this; - } - @Override - public CopyRules set(String parameterName, Object value) { - return (CopyRules) super.set(parameterName, value); + public SimulateMaintenanceEvent set(String parameterName, Object value) { + return (SimulateMaintenanceEvent) super.set(parameterName, value); } } /** - * Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use - * firewallPolicies.delete instead. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "organizationSecurityPolicies.delete". + * Create a request for the method "nodeGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to delete. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Delete delete(java.lang.String securityPolicy) throws java.io.IOException { - Delete result = new Delete(securityPolicy); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use - * firewallPolicies.delete instead. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "organizationSecurityPolicies.delete". + * Create a request for the method "nodeGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* - * @param securityPolicy Name of the security policy to delete. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Delete(java.lang.String securityPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } - /** Name of the security policy to delete. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to delete. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String zone; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** The name of the zone for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getZone() { + return zone; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NodeTemplates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeTemplates nodeTemplates() { + return new NodeTemplates(); + } + + /** + * The "nodeTemplates" collection of methods. + */ + public class NodeTemplates { + /** - * List all of the ordered rules present in a single specified policy. Use of this API to read - * firewall policies is deprecated. Use firewallPolicies.get instead. + * Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you + * set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "organizationSecurityPolicies.get". + * Create a request for the method "nodeTemplates.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to get. + * @param project Project ID for this request. * @return the request */ - public Get get(java.lang.String securityPolicy) throws java.io.IOException { - Get result = new Get(securityPolicy); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * List all of the ordered rules present in a single specified policy. Use of this API to read - * firewall policies is deprecated. Use firewallPolicies.get instead. + * Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you + * set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "organizationSecurityPolicies.get". + * Create a request for the method "nodeTemplates.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* - * @param securityPolicy Name of the security policy to get. + * @param project Project ID for this request. * @since 1.13 */ - protected Get(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateAggregatedList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } } @@ -107663,134 +108371,5292 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws return super.buildHttpRequestUsingHead(); } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public AggregatedList setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified NodeTemplate resource. + * + * Create a request for the method "nodeTemplates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { + Delete result = new Delete(project, region, nodeTemplate); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified NodeTemplate resource. + * + * Create a request for the method "nodeTemplates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the NodeTemplate resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** Name of the NodeTemplate resource to delete. + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** Name of the NodeTemplate resource to delete. */ + public Delete setNodeTemplate(java.lang.String nodeTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeTemplate = nodeTemplate; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified node template. + * + * Create a request for the method "nodeTemplates.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { + Get result = new Get(project, region, nodeTemplate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified node template. + * + * Create a request for the method "nodeTemplates.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplate.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the node template to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** Name of the node template to return. + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** Name of the node template to return. */ + public Get setNodeTemplate(java.lang.String nodeTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeTemplate = nodeTemplate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "nodeTemplates.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "nodeTemplates.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a NodeTemplate resource in the specified project using the data included in the request. + * + * Create a request for the method "nodeTemplates.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Creates a NodeTemplate resource in the specified project using the data included in the + * request. + * + * Create a request for the method "nodeTemplates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node templates available to the specified project. + * + * Create a request for the method "nodeTemplates.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves a list of node templates available to the specified project. + * + * Create a request for the method "nodeTemplates.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeTemplates.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeTemplates.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "nodeTemplates.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "nodeTemplates.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NodeTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeTypes nodeTypes() { + return new NodeTypes(); + } + + /** + * The "nodeTypes" collection of methods. + */ + public class NodeTypes { + + /** + * Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set + * the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "nodeTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set + * the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "nodeTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeAggregatedList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public AggregatedList setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified node type. + * + * Create a request for the method "nodeTypes.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeType Name of the node type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) throws java.io.IOException { + Get result = new Get(project, zone, nodeType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_TYPE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified node type. + * + * Create a request for the method "nodeTypes.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeType Name of the node type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeType.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.nodeType = com.google.api.client.util.Preconditions.checkNotNull(nodeType, "Required parameter nodeType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), + "Parameter nodeType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the node type to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeType; + + /** Name of the node type to return. + */ + public java.lang.String getNodeType() { + return nodeType; + } + + /** Name of the node type to return. */ + public Get setNodeType(java.lang.String nodeType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), + "Parameter nodeType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeType = nodeType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node types available to the specified project. + * + * Create a request for the method "nodeTypes.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves a list of node types available to the specified project. + * + * Create a request for the method "nodeTypes.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationSecurityPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationSecurityPolicies.List request = compute.organizationSecurityPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationSecurityPolicies organizationSecurityPolicies() { + return new OrganizationSecurityPolicies(); + } + + /** + * The "organizationSecurityPolicies" collection of methods. + */ + public class OrganizationSecurityPolicies { + + /** + * Inserts an association for the specified security policy. Use of this API to modify firewall + * policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + * + * Create a request for the method "organizationSecurityPolicies.addAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @return the request + */ + public AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(securityPolicy, content); + initialize(result); + return result; + } + + public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Inserts an association for the specified security policy. Use of this API to modify firewall + * policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + * + * Create a request for the method "organizationSecurityPolicies.addAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @since 1.13 + */ + protected AddAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); + } + + @Override + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); + } + + @Override + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); + } + + @Override + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); + } + + @Override + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); + } + + @Override + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); + } + + @Override + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); + } + + @Override + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; + + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a security policy. + * + * Create a request for the method "organizationSecurityPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(securityPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Inserts a rule into a security policy. + * + * Create a request for the method "organizationSecurityPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

+ * {@link + * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Copies rules to the specified security policy. Use of this API to modify firewall policies is + * deprecated. Use firewallPolicies.copyRules instead. + * + * Create a request for the method "organizationSecurityPolicies.copyRules". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { + CopyRules result = new CopyRules(securityPolicy); + initialize(result); + return result; + } + + public class CopyRules extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Copies rules to the specified security policy. Use of this API to modify firewall policies is + * deprecated. Use firewallPolicies.copyRules instead. + * + * Create a request for the method "organizationSecurityPolicies.copyRules". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

+ * {@link + * CopyRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected CopyRules(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public CopyRules set$Xgafv(java.lang.String $Xgafv) { + return (CopyRules) super.set$Xgafv($Xgafv); + } + + @Override + public CopyRules setAccessToken(java.lang.String accessToken) { + return (CopyRules) super.setAccessToken(accessToken); + } + + @Override + public CopyRules setAlt(java.lang.String alt) { + return (CopyRules) super.setAlt(alt); + } + + @Override + public CopyRules setCallback(java.lang.String callback) { + return (CopyRules) super.setCallback(callback); + } + + @Override + public CopyRules setFields(java.lang.String fields) { + return (CopyRules) super.setFields(fields); + } + + @Override + public CopyRules setKey(java.lang.String key) { + return (CopyRules) super.setKey(key); + } + + @Override + public CopyRules setOauthToken(java.lang.String oauthToken) { + return (CopyRules) super.setOauthToken(oauthToken); + } + + @Override + public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CopyRules) super.setPrettyPrint(prettyPrint); + } + + @Override + public CopyRules setQuotaUser(java.lang.String quotaUser) { + return (CopyRules) super.setQuotaUser(quotaUser); + } + + @Override + public CopyRules setUploadType(java.lang.String uploadType) { + return (CopyRules) super.setUploadType(uploadType); + } + + @Override + public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CopyRules) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CopyRules setUserIp(java.lang.String userIp) { + return (CopyRules) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public CopyRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The security policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceSecurityPolicy; + + /** The security policy from which to copy rules. + */ + public java.lang.String getSourceSecurityPolicy() { + return sourceSecurityPolicy; + } + + /** The security policy from which to copy rules. */ + public CopyRules setSourceSecurityPolicy(java.lang.String sourceSecurityPolicy) { + this.sourceSecurityPolicy = sourceSecurityPolicy; + return this; + } + + @Override + public CopyRules set(String parameterName, Object value) { + return (CopyRules) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use + * firewallPolicies.delete instead. + * + * Create a request for the method "organizationSecurityPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to delete. + * @return the request + */ + public Delete delete(java.lang.String securityPolicy) throws java.io.IOException { + Delete result = new Delete(securityPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use + * firewallPolicies.delete instead. + * + * Create a request for the method "organizationSecurityPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param securityPolicy Name of the security policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String securityPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Name of the security policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to delete. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * List all of the ordered rules present in a single specified policy. Use of this API to read + * firewall policies is deprecated. Use firewallPolicies.get instead. + * + * Create a request for the method "organizationSecurityPolicies.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to get. + * @return the request + */ + public Get get(java.lang.String securityPolicy) throws java.io.IOException { + Get result = new Get(securityPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * List all of the ordered rules present in a single specified policy. Use of this API to read + * firewall policies is deprecated. Use firewallPolicies.get instead. + * + * Create a request for the method "organizationSecurityPolicies.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param securityPolicy Name of the security policy to get. + * @since 1.13 + */ + protected Get(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Name of the security policy to get. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to get. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets an association with the specified name. Use of this API to read firewall policies is + * deprecated. Use firewallPolicies.getAssociation instead if possible. + * + * Create a request for the method "organizationSecurityPolicies.getAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String securityPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(securityPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getAssociation"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Gets an association with the specified name. Use of this API to read firewall policies is + * deprecated. Use firewallPolicies.getAssociation instead if possible. + * + * Create a request for the method "organizationSecurityPolicies.getAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetAssociation(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyAssociation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @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 GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } + + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } + + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } + + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } + + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } + + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } + + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The name of the association to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the security policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the security policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); + } + } + /** + * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. + * Use firewallPolicies.getRule instead. + * + * Create a request for the method "organizationSecurityPolicies.getRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetRule getRule(java.lang.String securityPolicy) throws java.io.IOException { + GetRule result = new GetRule(securityPolicy); + initialize(result); + return result; + } + + public class GetRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. + * Use firewallPolicies.getRule instead. + * + * Create a request for the method "organizationSecurityPolicies.getRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

+ * {@link + * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @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 GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); + } + + /** Name of the security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the security policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified project using the data included in the request. Use of this + * API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. + * + * Create a request for the method "organizationSecurityPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Insert insert(com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Insert result = new Insert(content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies"; + + /** + * Creates a new policy in the specified project using the data included in the request. Use of + * this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. + * + * Create a request for the method "organizationSecurityPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Insert(com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder + or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public Insert setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * List all the policies that have been configured for the specified project. Use of this API to + * read firewall policies is deprecated. Use firewallPolicies.list instead. + * + * Create a request for the method "organizationSecurityPolicies.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies"; + + /** + * List all the policies that have been configured for the specified project. Use of this API to + * read firewall policies is deprecated. Use firewallPolicies.list instead. + * + * Create a request for the method "organizationSecurityPolicies.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public List setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists associations of a specified target, i.e., organization or folder. Use of this API to read + * firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. + * + * Create a request for the method "organizationSecurityPolicies.listAssociations". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + * + * @return the request + */ + public ListAssociations listAssociations() throws java.io.IOException { + ListAssociations result = new ListAssociations(); + initialize(result); + return result; + } + + public class ListAssociations extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; + + /** + * Lists associations of a specified target, i.e., organization or folder. Use of this API to read + * firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. + * + * Create a request for the method "organizationSecurityPolicies.listAssociations". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + *

{@link ListAssociations#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * ClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @since 1.13 + */ + protected ListAssociations() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); + } + + @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 ListAssociations set$Xgafv(java.lang.String $Xgafv) { + return (ListAssociations) super.set$Xgafv($Xgafv); + } + + @Override + public ListAssociations setAccessToken(java.lang.String accessToken) { + return (ListAssociations) super.setAccessToken(accessToken); + } + + @Override + public ListAssociations setAlt(java.lang.String alt) { + return (ListAssociations) super.setAlt(alt); + } + + @Override + public ListAssociations setCallback(java.lang.String callback) { + return (ListAssociations) super.setCallback(callback); + } + + @Override + public ListAssociations setFields(java.lang.String fields) { + return (ListAssociations) super.setFields(fields); + } + + @Override + public ListAssociations setKey(java.lang.String key) { + return (ListAssociations) super.setKey(key); + } + + @Override + public ListAssociations setOauthToken(java.lang.String oauthToken) { + return (ListAssociations) super.setOauthToken(oauthToken); + } + + @Override + public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAssociations) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAssociations setQuotaUser(java.lang.String quotaUser) { + return (ListAssociations) super.setQuotaUser(quotaUser); + } + + @Override + public ListAssociations setUploadType(java.lang.String uploadType) { + return (ListAssociations) super.setUploadType(uploadType); + } + + @Override + public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAssociations) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListAssociations setUserIp(java.lang.String userIp) { + return (ListAssociations) super.setUserIp(userIp); + } + + /** The target resource to list associations. It is an organization, or a folder. */ + @com.google.api.client.util.Key + private java.lang.String targetResource; + + /** The target resource to list associations. It is an organization, or a folder. + */ + public java.lang.String getTargetResource() { + return targetResource; + } + + /** The target resource to list associations. It is an organization, or a folder. */ + public ListAssociations setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; + return this; + } + + @Override + public ListAssociations set(String parameterName, Object value) { + return (ListAssociations) super.set(parameterName, value); + } + } + /** + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * + * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation. + * + * @return the request + */ + public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { + ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); + initialize(result); + return result; + } + + public class ListPreconfiguredExpressionSets extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; + + /** + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * + * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation.

{@link ListPreconfiguredExpressionSets#initialize(com.google.api.client.g + * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @since 1.13 + */ + protected ListPreconfiguredExpressionSets() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); + } + + @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 ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { + return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + } + + @Override + public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { + return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + } + + @Override + public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { + return (ListPreconfiguredExpressionSets) super.setAlt(alt); + } + + @Override + public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { + return (ListPreconfiguredExpressionSets) super.setCallback(callback); + } + + @Override + public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { + return (ListPreconfiguredExpressionSets) super.setFields(fields); + } + + @Override + public ListPreconfiguredExpressionSets setKey(java.lang.String key) { + return (ListPreconfiguredExpressionSets) super.setKey(key); + } + + @Override + public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { + return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + } + + @Override + public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { + return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + } + + @Override + public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { + return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + } + + @Override + public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { + return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public ListPreconfiguredExpressionSets setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; } - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + /** Parent ID for this request. */ + public ListPreconfiguredExpressionSets setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; } - /** Name of the security policy to get. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.Boolean returnPartialSuccess; - /** Name of the security policy to get. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) super.set(parameterName, value); } } /** - * Gets an association with the specified name. Use of this API to read firewall policies is - * deprecated. Use firewallPolicies.getAssociation instead if possible. + * Moves the specified security policy. Use of this API to modify firewall policies is deprecated. + * Use firewallPolicies.move instead. * - * Create a request for the method "organizationSecurityPolicies.getAssociation". + * Create a request for the method "organizationSecurityPolicies.move". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link Move#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @param securityPolicy Name of the security policy to update. * @return the request */ - public GetAssociation getAssociation(java.lang.String securityPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(securityPolicy); + public Move move(java.lang.String securityPolicy) throws java.io.IOException { + Move result = new Move(securityPolicy); initialize(result); return result; } - public class GetAssociation extends ComputeRequest { + public class Move extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getAssociation"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Gets an association with the specified name. Use of this API to read firewall policies is - * deprecated. Use firewallPolicies.getAssociation instead if possible. + * Moves the specified security policy. Use of this API to modify firewall policies is deprecated. + * Use firewallPolicies.move instead. * - * Create a request for the method "organizationSecurityPolicies.getAssociation". + * Create a request for the method "organizationSecurityPolicies.move". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Move#execute()} method to invoke the remote operation.

{@link + * Move#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected GetAssociation(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyAssociation.class); + protected Move(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), @@ -107800,87 +113666,77 @@ protected GetAssociation(java.lang.String securityPolicy) { } @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 GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); } - /** Name of the security policy to which the queried rule belongs. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key private java.lang.String securityPolicy; - /** Name of the security policy to which the queried rule belongs. + /** Name of the security policy to update. */ public java.lang.String getSecurityPolicy() { return securityPolicy; } - /** Name of the security policy to which the queried rule belongs. */ - public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the security policy to update. */ + public Move setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), "Parameter securityPolicy must conform to the pattern " + @@ -107890,69 +113746,110 @@ public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { return this; } - /** The name of the association to get from the security policy. */ + /** The new parent of the security policy. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parentId; - /** The name of the association to get from the security policy. + /** The new parent of the security policy. */ - public java.lang.String getName() { - return name; + public java.lang.String getParentId() { + return parentId; } - /** The name of the association to get from the security policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** The new parent of the security policy. */ + public Move setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Move setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); } } /** - * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. - * Use firewallPolicies.getRule instead. + * Patches the specified policy with the data included in the request. Use of this API to modify + * firewall policies is deprecated. Use firewallPolicies.patch instead. * - * Create a request for the method "organizationSecurityPolicies.getRule". + * Create a request for the method "organizationSecurityPolicies.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @return the request */ - public GetRule getRule(java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(securityPolicy); + public Patch patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Patch result = new Patch(securityPolicy, content); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getRule"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. - * Use firewallPolicies.getRule instead. + * Patches the specified policy with the data included in the request. Use of this API to modify + * firewall policies is deprecated. Use firewallPolicies.patch instead. * - * Create a request for the method "organizationSecurityPolicies.getRule". + * Create a request for the method "organizationSecurityPolicies.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

- * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @since 1.13 */ - protected GetRule(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.class); + protected Patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), @@ -107962,87 +113859,77 @@ protected GetRule(java.lang.String securityPolicy) { } @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 GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } - /** Name of the security policy to which the queried rule belongs. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key private java.lang.String securityPolicy; - /** Name of the security policy to which the queried rule belongs. + /** Name of the security policy to update. */ public java.lang.String getSecurityPolicy() { return securityPolicy; } - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), "Parameter securityPolicy must conform to the pattern " + @@ -108052,147 +113939,197 @@ public GetRule setSecurityPolicy(java.lang.String securityPolicy) { return this; } - /** The priority of the rule to get from the security policy. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String requestId; - /** The priority of the rule to get from the security policy. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRequestId() { + return requestId; } - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project using the data included in the request. Use of this - * API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. + * Patches a rule at the specified priority. Use of this API to modify firewall policies is + * deprecated. Use firewallPolicies.patchRule instead. * - * Create a request for the method "organizationSecurityPolicies.insert". + * Create a request for the method "organizationSecurityPolicies.patchRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. * - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @return the request */ - public Insert insert(com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(content); + public PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(securityPolicy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Creates a new policy in the specified project using the data included in the request. Use of - * this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. - * - * Create a request for the method "organizationSecurityPolicies.insert". + * Patches a rule at the specified priority. Use of this API to modify firewall policies is + * deprecated. Use firewallPolicies.patchRule instead. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * Create a request for the method "organizationSecurityPolicies.patchRule". * - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

+ * {@link + * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @since 1.13 */ - protected Insert(com.google.api.services.compute.model.SecurityPolicy content) { + protected PatchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.String securityPolicy; - /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder - or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + /** Name of the security policy to update. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. */ - public Insert setParentId(java.lang.String parentId) { - this.parentId = parentId; + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -108231,519 +114168,469 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public PatchRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * List all the policies that have been configured for the specified project. Use of this API to - * read firewall policies is deprecated. Use firewallPolicies.list instead. + * Removes an association for the specified security policy. Use of this API to modify firewall + * policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. * - * Create a request for the method "organizationSecurityPolicies.list". + * Create a request for the method "organizationSecurityPolicies.removeAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. * + * @param securityPolicy Name of the security policy to update. * @return the request */ - public List list() throws java.io.IOException { - List result = new List(); + public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(securityPolicy); initialize(result); return result; } - public class List extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * List all the policies that have been configured for the specified project. Use of this API to - * read firewall policies is deprecated. Use firewallPolicies.list instead. + * Removes an association for the specified security policy. Use of this API to modify firewall + * policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. * - * Create a request for the method "organizationSecurityPolicies.list". + * Create a request for the method "organizationSecurityPolicies.removeAssociation". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected List() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); - } - - @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(); + protected RemoveAssociation(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String securityPolicy; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the security policy to update. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Name of the security policy to update. */ + public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; return this; } - /** Parent ID for this request. */ + /** Name for the attachment that will be removed. */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.String name; - /** Parent ID for this request. + /** Name for the attachment that will be removed. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.String getName() { + return name; } - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Lists associations of a specified target, i.e., organization or folder. Use of this API to read - * firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. + * Deletes a rule at the specified priority. * - * Create a request for the method "organizationSecurityPolicies.listAssociations". + * Create a request for the method "organizationSecurityPolicies.removeRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. * + * @param securityPolicy Name of the security policy to update. * @return the request */ - public ListAssociations listAssociations() throws java.io.IOException { - ListAssociations result = new ListAssociations(); + public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(securityPolicy); initialize(result); return result; } - public class ListAssociations extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Lists associations of a specified target, i.e., organization or folder. Use of this API to read - * firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. + * Deletes a rule at the specified priority. * - * Create a request for the method "organizationSecurityPolicies.listAssociations". + * Create a request for the method "organizationSecurityPolicies.removeRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. - *

{@link ListAssociations#initialize(com.google.api.client.googleapis.services.AbstractGoogle - * ClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

+ * {@link + * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected ListAssociations() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); + protected RemoveRule(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public ListAssociations set$Xgafv(java.lang.String $Xgafv) { - return (ListAssociations) super.set$Xgafv($Xgafv); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public ListAssociations setAccessToken(java.lang.String accessToken) { - return (ListAssociations) super.setAccessToken(accessToken); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public ListAssociations setAlt(java.lang.String alt) { - return (ListAssociations) super.setAlt(alt); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public ListAssociations setCallback(java.lang.String callback) { - return (ListAssociations) super.setCallback(callback); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public ListAssociations setFields(java.lang.String fields) { - return (ListAssociations) super.setFields(fields); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public ListAssociations setKey(java.lang.String key) { - return (ListAssociations) super.setKey(key); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public ListAssociations setOauthToken(java.lang.String oauthToken) { - return (ListAssociations) super.setOauthToken(oauthToken); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAssociations) super.setPrettyPrint(prettyPrint); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public ListAssociations setQuotaUser(java.lang.String quotaUser) { - return (ListAssociations) super.setQuotaUser(quotaUser); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } - @Override - public ListAssociations setUploadType(java.lang.String uploadType) { - return (ListAssociations) super.setUploadType(uploadType); + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - @Override - public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAssociations) super.setUploadProtocol(uploadProtocol); + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; } - @Override - public ListAssociations setUserIp(java.lang.String userIp) { - return (ListAssociations) super.setUserIp(userIp); + /** The priority of the rule to remove from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; } - /** The target resource to list associations. It is an organization, or a folder. */ + /** The priority of the rule to remove from the security policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String targetResource; + private java.lang.String requestId; - /** The target resource to list associations. It is an organization, or a folder. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */ - public java.lang.String getTargetResource() { - return targetResource; + public java.lang.String getRequestId() { + return requestId; } - /** The target resource to list associations. It is an organization, or a folder. */ - public ListAssociations setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListAssociations set(String parameterName, Object value) { - return (ListAssociations) super.set(parameterName, value); + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PacketMirrorings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PacketMirrorings.List request = compute.packetMirrorings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PacketMirrorings packetMirrorings() { + return new PacketMirrorings(); + } + + /** + * The "packetMirrorings" collection of methods. + */ + public class PacketMirrorings { + /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you + * set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * Create a request for the method "packetMirrorings.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * + * @param project Project ID for this request. * @return the request */ - public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { - ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListPreconfiguredExpressionSets extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; + private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that + * you set the `returnPartialSuccess` parameter to `true`. * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * Create a request for the method "packetMirrorings.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation.

{@link ListPreconfiguredExpressionSets#initialize(com.google.api.client.g - * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

+ * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* + * @param project Project ID for this request. * @since 1.13 */ - protected ListPreconfiguredExpressionSets() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroringAggregatedList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } } @Override @@ -108757,63 +114644,84 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { - return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { - return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { - return (ListPreconfiguredExpressionSets) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { - return (ListPreconfiguredExpressionSets) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { - return (ListPreconfiguredExpressionSets) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListPreconfiguredExpressionSets setKey(java.lang.String key) { - return (ListPreconfiguredExpressionSets) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { - return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { - return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { - return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { - return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public AggregatedList setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; } /** @@ -108904,661 +114812,377 @@ public java.lang.String getFilter() { * instances that do not end with name "instance", you would use `name ne .*instance`. You * cannot combine constraints on multiple fields using regular expressions. */ - public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListPreconfiguredExpressionSets setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. */ - public ListPreconfiguredExpressionSets setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); - } - } - /** - * Moves the specified security policy. Use of this API to modify firewall policies is deprecated. - * Use firewallPolicies.move instead. - * - * Create a request for the method "organizationSecurityPolicies.move". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public Move move(java.lang.String securityPolicy) throws java.io.IOException { - Move result = new Move(securityPolicy); - initialize(result); - return result; - } - - public class Move extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Moves the specified security policy. Use of this API to modify firewall policies is deprecated. - * Use firewallPolicies.move instead. - * - * Create a request for the method "organizationSecurityPolicies.move". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

{@link - * Move#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected Move(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - } - - @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); - } - - @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); - } - - @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); - } - - @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); - } - - @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); - } - - @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); - } - - @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); - } - - @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); - } - - @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); - } - - @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); - } - - @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Name of the security policy to update. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.Boolean includeAllScopes; - /** Name of the security policy to update. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the security policy to update. */ - public Move setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; return this; } - /** The new parent of the security policy. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.Long maxResults; - /** The new parent of the security policy. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getParentId() { - return parentId; + public java.lang.Long getMaxResults() { + return maxResults; } - /** The new parent of the security policy. */ - public Move setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public Move setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. Use of this API to modify - * firewall policies is deprecated. Use firewallPolicies.patch instead. - * - * Create a request for the method "organizationSecurityPolicies.patch". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} - * @return the request - */ - public Patch patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(securityPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - /** - * Patches the specified policy with the data included in the request. Use of this API to modify - * firewall policies is deprecated. Use firewallPolicies.patch instead. - * - * Create a request for the method "organizationSecurityPolicies.patch". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} - * @since 1.13 + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - protected Patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - /** Name of the security policy to update. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.Boolean returnPartialSuccess; - /** Name of the security policy to update. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name of the security policy to update. */ - public Patch setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Long serviceProjectNumber; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches a rule at the specified priority. Use of this API to modify firewall policies is - * deprecated. Use firewallPolicies.patchRule instead. + * Deletes the specified PacketMirroring resource. * - * Create a request for the method "organizationSecurityPolicies.patchRule". + * Create a request for the method "packetMirrorings.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to delete. * @return the request */ - public PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(securityPolicy, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { + Delete result = new Delete(project, region, packetMirroring); initialize(result); return result; } - public class PatchRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern PACKET_MIRRORING_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches a rule at the specified priority. Use of this API to modify firewall policies is - * deprecated. Use firewallPolicies.patchRule instead. + * Deletes the specified PacketMirroring resource. * - * Create a request for the method "organizationSecurityPolicies.patchRule". + * Create a request for the method "packetMirrorings.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

- * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to delete. * @since 1.13 */ - protected PatchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; return this; } - /** The priority of the rule to patch. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String region; - /** The priority of the rule to patch. + /** Name of the region for this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRegion() { + return region; } - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the PacketMirroring resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String packetMirroring; + + /** Name of the PacketMirroring resource to delete. + */ + public java.lang.String getPacketMirroring() { + return packetMirroring; + } + + /** Name of the PacketMirroring resource to delete. */ + public Delete setPacketMirroring(java.lang.String packetMirroring) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.packetMirroring = packetMirroring; return this; } @@ -109597,350 +115221,384 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public PatchRule setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Removes an association for the specified security policy. Use of this API to modify firewall - * policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. + * Returns the specified PacketMirroring resource. * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * Create a request for the method "packetMirrorings.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to return. * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(securityPolicy); + public Get get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { + Get result = new Get(project, region, packetMirroring); initialize(result); return result; } - public class RemoveAssociation extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern PACKET_MIRRORING_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Removes an association for the specified security policy. Use of this API to modify firewall - * policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. + * Returns the specified PacketMirroring resource. * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * Create a request for the method "packetMirrorings.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to update. + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to return. * @since 1.13 */ - protected RemoveAssociation(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected Get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroring.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; return this; } - /** Name for the attachment that will be removed. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String region; - /** Name for the attachment that will be removed. + /** Name of the region for this request. */ - public java.lang.String getName() { - return name; + public java.lang.String getRegion() { + return region; } - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Name of the PacketMirroring resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String packetMirroring; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Name of the PacketMirroring resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getPacketMirroring() { + return packetMirroring; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public RemoveAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the PacketMirroring resource to return. */ + public Get setPacketMirroring(java.lang.String packetMirroring) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.packetMirroring = packetMirroring; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a rule at the specified priority. + * Creates a PacketMirroring resource in the specified project and region using the data included in + * the request. * - * Create a request for the method "organizationSecurityPolicies.removeRule". + * Create a request for the method "packetMirrorings.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} * @return the request */ - public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(securityPolicy); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class RemoveRule extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Deletes a rule at the specified priority. + * Creates a PacketMirroring resource in the specified project and region using the data included + * in the request. * - * Create a request for the method "organizationSecurityPolicies.removeRule". + * Create a request for the method "packetMirrorings.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

- * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to update. + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} * @since 1.13 */ - protected RemoveRule(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PacketMirroring content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.securityPolicy = securityPolicy; + this.project = project; return this; } - /** The priority of the rule to remove from the security policy. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String region; - /** The priority of the rule to remove from the security policy. + /** Name of the region for this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRegion() { + return region; } - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -109979,87 +115637,72 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public RemoveRule setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the PacketMirrorings collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PacketMirrorings.List request = compute.packetMirrorings().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PacketMirrorings packetMirrorings() { - return new PacketMirrorings(); - } - - /** - * The "packetMirrorings" collection of methods. - */ - public class PacketMirrorings { - /** - * Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you - * set the `returnPartialSuccess` parameter to `true`. + * Retrieves a list of PacketMirroring resources available to the specified project and region. * - * Create a request for the method "packetMirrorings.aggregatedList". + * Create a request for the method "packetMirrorings.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region Name of the region for this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that - * you set the `returnPartialSuccess` parameter to `true`. + * Retrieves a list of PacketMirroring resources available to the specified project and region. * - * Create a request for the method "packetMirrorings.aggregatedList". + * Create a request for the method "packetMirrorings.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param region Name of the region for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroringAggregatedList.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroringList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -110073,63 +115716,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110143,7 +115786,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -110153,6 +115796,27 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -110241,45 +115905,11 @@ public java.lang.String getFilter() { * instances that do not end with name "instance", you would use `name ne .*instance`. You * cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -110304,7 +115934,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -110339,7 +115969,7 @@ public java.lang.String getOrderBy() { * this to sort resources like operations so that the newest operation is returned first. * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -110362,7 +115992,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -110390,59 +116020,38 @@ public java.lang.Boolean getReturnPartialSuccess() { * aggregatedList for a single zone scope either returns all resources in the zone or no * resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified PacketMirroring resource. + * Patches the specified PacketMirroring resource with the data included in the request. This method + * supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "packetMirrorings.delete". + * Create a request for the method "packetMirrorings.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. + * @param packetMirroring Name of the PacketMirroring resource to patch. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { - Delete result = new Delete(project, region, packetMirroring); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { + Patch result = new Patch(project, region, packetMirroring, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Patch extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; @@ -110456,22 +116065,24 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. + * @param packetMirroring Name of the PacketMirroring resource to patch. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -110493,63 +116104,63 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110563,7 +116174,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -110584,7 +116195,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -110594,18 +116205,18 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the PacketMirroring resource to delete. */ + /** Name of the PacketMirroring resource to patch. */ @com.google.api.client.util.Key private java.lang.String packetMirroring; - /** Name of the PacketMirroring resource to delete. + /** Name of the PacketMirroring resource to patch. */ public java.lang.String getPacketMirroring() { return packetMirroring; } - /** Name of the PacketMirroring resource to delete. */ - public Delete setPacketMirroring(java.lang.String packetMirroring) { + /** Name of the PacketMirroring resource to patch. */ + public Patch setPacketMirroring(java.lang.String packetMirroring) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), "Parameter packetMirroring must conform to the pattern " + @@ -110650,38 +116261,39 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified PacketMirroring resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "packetMirrorings.get". + * Create a request for the method "packetMirrorings.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to return. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { - Get result = new Get(project, region, packetMirroring); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -110689,26 +116301,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to return. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroring.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -110721,82 +116335,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110810,7 +116414,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -110820,18 +116424,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -110841,152 +116445,181 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the PacketMirroring resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String packetMirroring; + private java.lang.String resource; - /** Name of the PacketMirroring resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getPacketMirroring() { - return packetMirroring; + public java.lang.String getResource() { + return resource; } - /** Name of the PacketMirroring resource to return. */ - public Get setPacketMirroring(java.lang.String packetMirroring) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.packetMirroring = packetMirroring; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the PreviewFeatures collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PreviewFeatures.List request = compute.previewFeatures().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PreviewFeatures previewFeatures() { + return new PreviewFeatures(); + } + + /** + * The "previewFeatures" collection of methods. + */ + public class PreviewFeatures { + /** - * Creates a PacketMirroring resource in the specified project and region using the data included in - * the request. + * Returns the details of the given PreviewFeature. * - * Create a request for the method "packetMirrorings.insert". + * Create a request for the method "previewFeatures.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @param previewFeature Name of the PreviewFeature for this request. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Get get(java.lang.String project, java.lang.String previewFeature) throws java.io.IOException { + Get result = new Get(project, previewFeature); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern PREVIEW_FEATURE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Creates a PacketMirroring resource in the specified project and region using the data included - * in the request. + * Returns the details of the given PreviewFeature. * - * Create a request for the method "packetMirrorings.insert". + * Create a request for the method "previewFeatures.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @param previewFeature Name of the PreviewFeature for this request. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PacketMirroring content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String previewFeature) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PreviewFeature.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111000,7 +116633,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -111010,104 +116643,60 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the PreviewFeature for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String previewFeature; - /** Name of the region for this request. + /** Name of the PreviewFeature for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPreviewFeature() { + return previewFeature; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the PreviewFeature for this request. */ + public Get setPreviewFeature(java.lang.String previewFeature) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.previewFeature = previewFeature; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves a list of PacketMirroring resources available to the specified project and region. + * Returns the details of the given PreviewFeature. * - * Create a request for the method "packetMirrorings.list". + * Create a request for the method "previewFeatures.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; + private static final String REST_PATH = "projects/{project}/global/previewFeatures"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of PacketMirroring resources available to the specified project and region. + * Returns the details of the given PreviewFeature. * - * Create a request for the method "packetMirrorings.list". + * Create a request for the method "previewFeatures.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -111115,23 +116704,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroringList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PreviewFeatureList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -111225,27 +116807,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -111460,57 +117021,50 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified PacketMirroring resource with the data included in the request. This method - * supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. * - * Create a request for the method "packetMirrorings.patch". + * Create a request for the method "previewFeatures.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to patch. - * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @param previewFeature Name of the PreviewFeature for this request. + * @param content the {@link com.google.api.services.compute.model.PreviewFeature} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { - Patch result = new Patch(project, region, packetMirroring, content); + public Update update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.model.PreviewFeature content) throws java.io.IOException { + Update result = new Update(project, previewFeature, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern PACKET_MIRRORING_PATTERN = + private final java.util.regex.Pattern PREVIEW_FEATURE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified PacketMirroring resource with the data included in the request. This - * method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. * - * Create a request for the method "packetMirrorings.patch". + * Create a request for the method "previewFeatures.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to patch. - * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @param previewFeature Name of the PreviewFeature for this request. + * @param content the {@link com.google.api.services.compute.model.PreviewFeature} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) { + protected Update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.model.PreviewFeature content) { super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -111518,78 +117072,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + this.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111603,7 +117151,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -111613,45 +117161,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the PacketMirroring resource to patch. */ + /** Name of the PreviewFeature for this request. */ @com.google.api.client.util.Key - private java.lang.String packetMirroring; + private java.lang.String previewFeature; - /** Name of the PacketMirroring resource to patch. + /** Name of the PreviewFeature for this request. */ - public java.lang.String getPacketMirroring() { - return packetMirroring; + public java.lang.String getPreviewFeature() { + return previewFeature; } - /** Name of the PacketMirroring resource to patch. */ - public Patch setPacketMirroring(java.lang.String packetMirroring) { + /** Name of the PreviewFeature for this request. */ + public Update setPreviewFeature(java.lang.String previewFeature) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.packetMirroring = packetMirroring; + this.previewFeature = previewFeature; return this; } @@ -111690,214 +117217,14 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported ( * 00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "packetMirrorings.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "packetMirrorings.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java index a7676bc874d..7b26e8c00ef 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -107,7 +107,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * The value may be {@code null}. @@ -336,7 +336,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson * balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host * selection times. For more information about Maglev, see * https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional - * backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and + * backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and * load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the * load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If * sessionAffinity is not configured—that is, if session affinity remains at the default value of @@ -394,7 +394,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson * The URL of the network to which this backend service belongs. This field must be set for * Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External * Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only - * be specified when the load balancing scheme is set to INTERNAL. + * be specified when the load balancing scheme is set to INTERNAL, or when the load balancing + * scheme is set to EXTERNAL and haPolicy fastIpMove is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -424,9 +425,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson * managed regional API endpoints or managed services published using Private Service Connect * Applicable backend service types can be: - A global backend service with the * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to - * INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the - * backend service is referenced by a URL map that is bound to target gRPC proxy that has + * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set + * to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when + * the backend service is referenced by a URL map that is bound to target gRPC proxy that has * validateForProxyless field set to true. * The value may be {@code null}. */ @@ -455,10 +456,10 @@ public final class BackendService extends com.google.api.client.json.GenericJson /** * The protocol this BackendService uses to communicate with backends. Possible values are HTTP, - * HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director - * configuration. Refer to the documentation for the load balancers or for Traffic Director for - * more information. Must be set to GRPC when the backend service is referenced by a URL map that - * is bound to target gRPC proxy. + * HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic + * Director configuration. Refer to the documentation for the load balancers or for Traffic + * Director for more information. Must be set to GRPC when the backend service is referenced by a + * URL map that is bound to target gRPC proxy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -707,7 +708,7 @@ public BackendService setConnectionTrackingPolicy(BackendServiceConnectionTracki * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * @return value or {@code null} for none @@ -723,7 +724,7 @@ public ConsistentHashLoadBalancerSettings getConsistentHash() { * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * @param consistentHash consistentHash or {@code null} for none @@ -1257,7 +1258,7 @@ public BackendService setLocalityLbPolicies(java.util.List 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 Compute Engine 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 BackendServiceHAPolicyLeader extends com.google.api.client.json.GenericJson { + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's + * backendGroup must already be specified as a backend of this backend service. Removing a backend + * that is designated as the leader's backendGroup is not permitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendGroup; + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. This + * network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup + * until the leader is updated with another network endpoint, or the leader is removed from the + * haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint; + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's + * backendGroup must already be specified as a backend of this backend service. Removing a backend + * that is designated as the leader's backendGroup is not permitted. + * @return value or {@code null} for none + */ + public java.lang.String getBackendGroup() { + return backendGroup; + } + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's + * backendGroup must already be specified as a backend of this backend service. Removing a backend + * that is designated as the leader's backendGroup is not permitted. + * @param backendGroup backendGroup or {@code null} for none + */ + public BackendServiceHAPolicyLeader setBackendGroup(java.lang.String backendGroup) { + this.backendGroup = backendGroup; + return this; + } + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. This + * network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup + * until the leader is updated with another network endpoint, or the leader is removed from the + * haPolicy. + * @return value or {@code null} for none + */ + public BackendServiceHAPolicyLeaderNetworkEndpoint getNetworkEndpoint() { + return networkEndpoint; + } + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. This + * network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup + * until the leader is updated with another network endpoint, or the leader is removed from the + * haPolicy. + * @param networkEndpoint networkEndpoint or {@code null} for none + */ + public BackendServiceHAPolicyLeader setNetworkEndpoint(BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint) { + this.networkEndpoint = networkEndpoint; + return this; + } + + @Override + public BackendServiceHAPolicyLeader set(String fieldName, Object value) { + return (BackendServiceHAPolicyLeader) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicyLeader clone() { + return (BackendServiceHAPolicyLeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java new file mode 100644 index 00000000000..f29b1258c7c --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java @@ -0,0 +1,75 @@ +/* + * 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.compute.model; + +/** + * Model definition for BackendServiceHAPolicyLeaderNetworkEndpoint. + * + *

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 Compute Engine 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 BackendServiceHAPolicyLeaderNetworkEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 + * characters long, and comply with RFC1035. Authorization requires the following IAM permission + * on the specified resource instance: compute.instances.use + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 + * characters long, and comply with RFC1035. Authorization requires the following IAM permission + * on the specified resource instance: compute.instances.use + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 + * characters long, and comply with RFC1035. Authorization requires the following IAM permission + * on the specified resource instance: compute.instances.use + * @param instance instance or {@code null} for none + */ + public BackendServiceHAPolicyLeaderNetworkEndpoint setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + @Override + public BackendServiceHAPolicyLeaderNetworkEndpoint set(String fieldName, Object value) { + return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicyLeaderNetworkEndpoint clone() { + return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java new file mode 100644 index 00000000000..d18a64fa3b0 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java @@ -0,0 +1,133 @@ +/* + * 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.compute.model; + +/** + * Model definition for BulkSetLabelsRequest. + * + *

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 Compute Engine 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 BulkSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * The labels to set for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public BulkSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public BulkSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * The labels to set for this resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The labels to set for this resource. + * @param labels labels or {@code null} for none + */ + public BulkSetLabelsRequest setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + @Override + public BulkSetLabelsRequest set(String fieldName, Object value) { + return (BulkSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public BulkSetLabelsRequest clone() { + return (BulkSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.java new file mode 100644 index 00000000000..d58b646b2f3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.java @@ -0,0 +1,69 @@ +/* + * 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.compute.model; + +/** + * Model definition for BulkZoneSetLabelsRequest. + * + *

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 Compute Engine 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 BulkZoneSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requests; + + static { + // hack to force ProGuard to consider BulkSetLabelsRequest used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(BulkSetLabelsRequest.class); + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getRequests() { + return requests; + } + + /** + * @param requests requests or {@code null} for none + */ + public BulkZoneSetLabelsRequest setRequests(java.util.List requests) { + this.requests = requests; + return this; + } + + @Override + public BulkZoneSetLabelsRequest set(String fieldName, Object value) { + return (BulkZoneSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public BulkZoneSetLabelsRequest clone() { + return (BulkZoneSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Date.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Date.java new file mode 100644 index 00000000000..8f3affb268d --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Date.java @@ -0,0 +1,123 @@ +/* + * 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.compute.model; + +/** + * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: * A full date, with non-zero year, month, and + * day values. * A month and day, with a zero year (for example, an anniversary). * A year on its + * own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit + * card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * + * google.protobuf.Timestamp + * + *

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 Compute Engine 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 Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java index 684907e6ac4..0bdb95e3cb3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -60,6 +60,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @com.google.api.client.util.Key private java.lang.String destNetworkScope; + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - + * NON_INTERNET + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destNetworkType; + /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" @@ -114,6 +122,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @com.google.api.client.util.Key private java.lang.String srcNetworkScope; + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - + * NON_INTERNET - VPC_NETWORKS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String srcNetworkType; + /** * Networks of the traffic source. It can be either a full or partial url. * The value may be {@code null}. @@ -219,6 +235,25 @@ public FirewallPolicyRuleMatcher setDestNetworkScope(java.lang.String destNetwor return this; } + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - + * NON_INTERNET + * @return value or {@code null} for none + */ + public java.lang.String getDestNetworkType() { + return destNetworkType; + } + + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - + * NON_INTERNET + * @param destNetworkType destNetworkType or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestNetworkType(java.lang.String destNetworkType) { + this.destNetworkType = destNetworkType; + return this; + } + /** * Region codes whose IP addresses will be used to match for destination of traffic. Should be * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" @@ -348,6 +383,25 @@ public FirewallPolicyRuleMatcher setSrcNetworkScope(java.lang.String srcNetworkS return this; } + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - + * NON_INTERNET - VPC_NETWORKS + * @return value or {@code null} for none + */ + public java.lang.String getSrcNetworkType() { + return srcNetworkType; + } + + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - + * NON_INTERNET - VPC_NETWORKS + * @param srcNetworkType srcNetworkType or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcNetworkType(java.lang.String srcNetworkType) { + this.srcNetworkType = srcNetworkType; + return this; + } + /** * Networks of the traffic source. It can be either a full or partial url. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java index c94a3d75966..19861f60692 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -94,6 +94,13 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private java.lang.String description; + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEmergentMaintenance; + /** * [Output Only] A unique identifier for this future reservation. The server defines this * identifier. @@ -372,6 +379,23 @@ public FutureReservation setDescription(java.lang.String description) { return this; } + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEmergentMaintenance() { + return enableEmergentMaintenance; + } + + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * @param enableEmergentMaintenance enableEmergentMaintenance or {@code null} for none + */ + public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergentMaintenance) { + this.enableEmergentMaintenance = enableEmergentMaintenance; + return this; + } + /** * [Output Only] A unique identifier for this future reservation. The server defines this * identifier. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index 854a7843f4b..e2f35b7547d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -278,6 +278,13 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener @com.google.api.client.util.Key private java.lang.Integer targetSize; + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerTargetSizePolicy targetSizePolicy; + /** * The target number of stopped instances for this managed instance group. This number changes * when you: - Stop instance using the stopInstances method or start instances using the @@ -944,6 +951,23 @@ public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) { return this; } + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * @return value or {@code null} for none + */ + public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy() { + return targetSizePolicy; + } + + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * @param targetSizePolicy targetSizePolicy or {@code null} for none + */ + public InstanceGroupManager setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy targetSizePolicy) { + this.targetSizePolicy = targetSizePolicy; + return this; + } + /** * The target number of stopped instances for this managed instance group. This number changes * when you: - Stop instance using the stopInstances method or start instances using the diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java index 8640048f9a3..16e78e7af4d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java @@ -43,6 +43,13 @@ public final class InstanceGroupManagerStatus extends com.google.api.client.json @com.google.api.client.util.Key private java.lang.String autoscaler; + /** + * [Output Only] The status of bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation; + /** * [Output Only] A bit indicating whether the managed instance group is in a stable state. A * stable state means that: none of the instances in the managed instance group is currently @@ -103,6 +110,23 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { return this; } + /** + * [Output Only] The status of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { + return bulkInstanceOperation; + } + + /** + * [Output Only] The status of bulk instance operation. + * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none + */ + public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { + this.bulkInstanceOperation = bulkInstanceOperation; + return this; + } + /** * [Output Only] A bit indicating whether the managed instance group is in a stable state. A * stable state means that: none of the instances in the managed instance group is currently diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java new file mode 100644 index 00000000000..989340fa3df --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -0,0 +1,91 @@ +/* + * 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.compute.model; + +/** + * Bulk instance operation is the creation of VMs in a MIG when the targetSizePolicy.mode is set to + * BULK. + * + *

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 Compute Engine 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 InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Informs whether bulk instance operation is in progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean inProgress; + + /** + * [Output Only] Information from the last progress check of bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck; + + /** + * [Output Only] Informs whether bulk instance operation is in progress. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInProgress() { + return inProgress; + } + + /** + * [Output Only] Informs whether bulk instance operation is in progress. + * @param inProgress inProgress or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.Boolean inProgress) { + this.inProgress = inProgress; + return this; + } + + /** + * [Output Only] Information from the last progress check of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { + return lastProgressCheck; + } + + /** + * [Output Only] Information from the last progress check of bulk instance operation. + * @param lastProgressCheck lastProgressCheck or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation setLastProgressCheck(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck) { + this.lastProgressCheck = lastProgressCheck; + return this; + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperation set(String fieldName, Object value) { + return (InstanceGroupManagerStatusBulkInstanceOperation) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperation clone() { + return (InstanceGroupManagerStatusBulkInstanceOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java new file mode 100644 index 00000000000..ecbde4accc4 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -0,0 +1,368 @@ +/* + * 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.compute.model; + +/** + * Model definition for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * + *

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 Compute Engine 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 InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Errors encountered during bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in + * RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * [Output Only] Errors encountered during bulk instance operation. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * [Output Only] Errors encountered during bulk instance operation. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { + this.error = error; + return this; + } + + /** + * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in + * RFC3339 text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in + * RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck set(String fieldName, Object value) { + return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() { + return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.clone(); + } + + /** + * [Output Only] Errors encountered during bulk instance operation. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Model definition for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java new file mode 100644 index 00000000000..df8d10c8af7 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java @@ -0,0 +1,69 @@ +/* + * 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.compute.model; + +/** + * Model definition for InstanceGroupManagerTargetSizePolicy. + * + *

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 Compute Engine 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 InstanceGroupManagerTargetSizePolicy extends com.google.api.client.json.GenericJson { + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * @param mode mode or {@code null} for none + */ + public InstanceGroupManagerTargetSizePolicy setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public InstanceGroupManagerTargetSizePolicy set(String fieldName, Object value) { + return (InstanceGroupManagerTargetSizePolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerTargetSizePolicy clone() { + return (InstanceGroupManagerTargetSizePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java index 6439f036cc2..20e4afa4591 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -131,6 +131,14 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List interconnectAttachments; + /** + * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and + * items are unique. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectGroups; + /** * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical @@ -552,6 +560,25 @@ public Interconnect setInterconnectAttachments(java.util.List return this; } + /** + * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and + * items are unique. + * @return value or {@code null} for none + */ + public java.util.List getInterconnectGroups() { + return interconnectGroups; + } + + /** + * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and + * items are unique. + * @param interconnectGroups interconnectGroups or {@code null} for none + */ + public Interconnect setInterconnectGroups(java.util.List interconnectGroups) { + this.interconnectGroups = interconnectGroups; + return this; + } + /** * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 67cda46c77e..f6360459307 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -38,6 +38,13 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; + /** + * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachmentGroup; + /** * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner @@ -51,6 +58,44 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.String bandwidth; + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix length + * of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the + * same. - Max prefix length is 31. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCloudRouterIpAddress; + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address + * must be the same. - Max prefix length is 126. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCloudRouterIpv6Address; + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCustomerRouterIpAddress; + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCustomerRouterIpv6Address; + /** * This field is not available. * The value may be {@code null}. @@ -241,7 +286,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -419,6 +465,23 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { return this; } + /** + * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * @return value or {@code null} for none + */ + public java.lang.String getAttachmentGroup() { + return attachmentGroup; + } + + /** + * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * @param attachmentGroup attachmentGroup or {@code null} for none + */ + public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGroup) { + this.attachmentGroup = attachmentGroup; + return this; + } + /** * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner @@ -448,6 +511,94 @@ public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { return this; } + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix length + * of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the + * same. - Max prefix length is 31. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCloudRouterIpAddress() { + return candidateCloudRouterIpAddress; + } + + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix length + * of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the + * same. - Max prefix length is 31. + * @param candidateCloudRouterIpAddress candidateCloudRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCandidateCloudRouterIpAddress(java.lang.String candidateCloudRouterIpAddress) { + this.candidateCloudRouterIpAddress = candidateCloudRouterIpAddress; + return this; + } + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address + * must be the same. - Max prefix length is 126. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCloudRouterIpv6Address() { + return candidateCloudRouterIpv6Address; + } + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address + * must be the same. - Max prefix length is 126. + * @param candidateCloudRouterIpv6Address candidateCloudRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCandidateCloudRouterIpv6Address(java.lang.String candidateCloudRouterIpv6Address) { + this.candidateCloudRouterIpv6Address = candidateCloudRouterIpv6Address; + return this; + } + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCustomerRouterIpAddress() { + return candidateCustomerRouterIpAddress; + } + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @param candidateCustomerRouterIpAddress candidateCustomerRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCandidateCustomerRouterIpAddress(java.lang.String candidateCustomerRouterIpAddress) { + this.candidateCustomerRouterIpAddress = candidateCustomerRouterIpAddress; + return this; + } + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCustomerRouterIpv6Address() { + return candidateCustomerRouterIpv6Address; + } + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @param candidateCustomerRouterIpv6Address candidateCustomerRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCandidateCustomerRouterIpv6Address(java.lang.String candidateCustomerRouterIpv6Address) { + this.candidateCustomerRouterIpv6Address = candidateCustomerRouterIpv6Address; + return this; + } + /** * This field is not available. * @return value or {@code null} for none @@ -927,7 +1078,8 @@ public InterconnectAttachment setLabels(java.util.Map /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * @return value or {@code null} for none */ public java.lang.Integer getMtu() { @@ -936,7 +1088,8 @@ public java.lang.Integer getMtu() { /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * @param mtu mtu or {@code null} for none */ public InterconnectAttachment setMtu(java.lang.Integer mtu) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java new file mode 100644 index 00000000000..f248d66b973 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java @@ -0,0 +1,358 @@ +/* + * 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.compute.model; + +/** + * An interconnect attachment group resource allows customers to create, analyze, and expand highly + * available deployments. + * + *

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 Compute Engine 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 InterconnectAttachmentGroup extends com.google.api.client.json.GenericJson { + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map attachments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured configured; + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupIntent intent; + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** + * [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupLogicalStructure logicalStructure; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * @return value or {@code null} for none + */ + public java.util.Map getAttachments() { + return attachments; + } + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroup setAttachments(java.util.Map attachments) { + this.attachments = attachments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectAttachmentGroup setConfigured(InterconnectAttachmentGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectAttachmentGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectAttachmentGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroup setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @param id id or {@code null} for none + */ + public InterconnectAttachmentGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectAttachmentGroup setIntent(InterconnectAttachmentGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * @param interconnectGroup interconnectGroup or {@code null} for none + */ + public InterconnectAttachmentGroup setInterconnectGroup(java.lang.String interconnectGroup) { + this.interconnectGroup = interconnectGroup; + return this; + } + + /** + * [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructure getLogicalStructure() { + return logicalStructure; + } + + /** + * @param logicalStructure logicalStructure or {@code null} for none + */ + public InterconnectAttachmentGroup setLogicalStructure(InterconnectAttachmentGroupLogicalStructure logicalStructure) { + this.logicalStructure = logicalStructure; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public InterconnectAttachmentGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectAttachmentGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public InterconnectAttachmentGroup set(String fieldName, Object value) { + return (InterconnectAttachmentGroup) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroup clone() { + return (InterconnectAttachmentGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java new file mode 100644 index 00000000000..25dd80300b6 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java @@ -0,0 +1,63 @@ +/* + * 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.compute.model; + +/** + * An Attachment in this AttachmentGroup. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupAttachment extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAttachment() { + return attachment; + } + + /** + * @param attachment attachment or {@code null} for none + */ + public InterconnectAttachmentGroupAttachment setAttachment(java.lang.String attachment) { + this.attachment = attachment; + return this; + } + + @Override + public InterconnectAttachmentGroupAttachment set(String fieldName, Object value) { + return (InterconnectAttachmentGroupAttachment) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupAttachment clone() { + return (InterconnectAttachmentGroupAttachment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java new file mode 100644 index 00000000000..060c10533ee --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The redundancy this group is configured to support. The way a user queries what SLA + * their Attachment gets is by looking at this field of the Attachment's AttachmentGroup. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupConfigured extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla; + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA getAvailabilitySla() { + return availabilitySla; + } + + /** + * @param availabilitySla availabilitySla or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured setAvailabilitySla(InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla) { + this.availabilitySla = availabilitySla; + return this; + } + + @Override + public InterconnectAttachmentGroupConfigured set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfigured) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfigured clone() { + return (InterconnectAttachmentGroupConfigured) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java new file mode 100644 index 00000000000..bf9f54a3cb0 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java @@ -0,0 +1,85 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Which SLA this group is configured to support, and why this group does or does not + * meet that SLA's requirements. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupConfiguredAvailabilitySLA extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveSla; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List intendedSlaBlockers; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveSla() { + return effectiveSla; + } + + /** + * @param effectiveSla effectiveSla or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA setEffectiveSla(java.lang.String effectiveSla) { + this.effectiveSla = effectiveSla; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntendedSlaBlockers() { + return intendedSlaBlockers; + } + + /** + * @param intendedSlaBlockers intendedSlaBlockers or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA setIntendedSlaBlockers(java.util.List intendedSlaBlockers) { + this.intendedSlaBlockers = intendedSlaBlockers; + return this; + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLA set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLA clone() { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java new file mode 100644 index 00000000000..d87347f87c7 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java @@ -0,0 +1,229 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Reasons why configuration.availabilitySLA.sla differs from intent.availabilitySLA. + * This list is empty if and only if those are the same. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blockerType; + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationLink; + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * [Output Only] Regions used to explain this blocker in more detail. These are region names + * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) + * but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regions; + + /** + * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or + * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * @return value or {@code null} for none + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setAttachments(java.util.List attachments) { + this.attachments = attachments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBlockerType() { + return blockerType; + } + + /** + * @param blockerType blockerType or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setBlockerType(java.lang.String blockerType) { + this.blockerType = blockerType; + return this; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationLink() { + return documentationLink; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @param documentationLink documentationLink or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setDocumentationLink(java.lang.String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @param explanation explanation or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * @param metros metros or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * [Output Only] Regions used to explain this blocker in more detail. These are region names + * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) + * but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getRegions() { + return regions; + } + + /** + * [Output Only] Regions used to explain this blocker in more detail. These are region names + * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) + * but does not apply to others. + * @param regions regions or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setRegions(java.util.List regions) { + this.regions = regions; + return this; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or + * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or + * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * @param zones zones or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers clone() { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java new file mode 100644 index 00000000000..6ae6fcedd40 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * The user's intent for this AttachmentGroup. This is the only required field besides the name that + * must be specified on group creation. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupIntent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilitySla; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilitySla() { + return availabilitySla; + } + + /** + * @param availabilitySla availabilitySla or {@code null} for none + */ + public InterconnectAttachmentGroupIntent setAvailabilitySla(java.lang.String availabilitySla) { + this.availabilitySla = availabilitySla; + return this; + } + + @Override + public InterconnectAttachmentGroupIntent set(String fieldName, Object value) { + return (InterconnectAttachmentGroupIntent) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupIntent clone() { + return (InterconnectAttachmentGroupIntent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java new file mode 100644 index 00000000000..2301e034dc1 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * [Output Only] An analysis of the logical layout of Attachments in this group. Every Attachment in + * the group is shown once in this structure. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructure extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regions; + + /** + * @return value or {@code null} for none + */ + public java.util.List getRegions() { + return regions; + } + + /** + * @param regions regions or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructure setRegions(java.util.List regions) { + this.regions = regions; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructure set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructure) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructure clone() { + return (InterconnectAttachmentGroupLogicalStructure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java new file mode 100644 index 00000000000..f267df5464a --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -0,0 +1,87 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The regions Attachments in this group are in. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegion extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * [Output Only] The name of a region, like "us-central1". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * @param metros metros or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * [Output Only] The name of a region, like "us-central1". + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] The name of a region, like "us-central1". + * @param region region or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegion setRegion(java.lang.String region) { + this.region = region; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegion set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegion) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegion clone() { + return (InterconnectAttachmentGroupLogicalStructureRegion) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java new file mode 100644 index 00000000000..bba3ca5148d --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The metros of Attachments in this group in this region. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegionMetro extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of an Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metro; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * @param facilities facilities or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of an Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getMetro() { + return metro; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of an Interconnect. + * @param metro metro or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetro setMetro(java.lang.String metro) { + this.metro = metro; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetro set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetro clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java new file mode 100644 index 00000000000..41cf84fc4f2 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -0,0 +1,87 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The facilities used for this group's Attachments' Interconnects. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The name of a facility, like "iad-1234". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] The name of a facility, like "iad-1234". + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * [Output Only] The name of a facility, like "iad-1234". + * @param facility facility or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * @param zones zones or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java new file mode 100644 index 00000000000..aa732b0c6b9 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -0,0 +1,94 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The zones that Attachments in this group are present in, in the given facilities. + * This is inherited from their Interconnects. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in + * the given facility and metro. Every Attachment in the AG has such an entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachments; + + /** + * [Output Only] The name of a zone, either "zone1" or "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in + * the given facility and metro. Every Attachment in the AG has such an entry. + * @return value or {@code null} for none + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in + * the given facility and metro. Every Attachment in the AG has such an entry. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAttachments(java.util.List attachments) { + this.attachments = attachments; + return this; + } + + /** + * [Output Only] The name of a zone, either "zone1" or "zone2". + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The name of a zone, either "zone1" or "zone2". + * @param zone zone or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java new file mode 100644 index 00000000000..38eb36dc142 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Response for the InterconnectAttachmentGroupsGetOperationalStatusResponse. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupsOperationalStatus result; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectAttachmentGroupsGetOperationalStatusResponse setResult(InterconnectAttachmentGroupsOperationalStatus result) { + this.result = result; + return this; + } + + @Override + public InterconnectAttachmentGroupsGetOperationalStatusResponse set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsGetOperationalStatusResponse clone() { + return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java new file mode 100644 index 00000000000..dedd1c2723e --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -0,0 +1,422 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectAttachmentGroupsListResponse. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of InterconnectAttachmentGroup resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider InterconnectAttachmentGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(InterconnectAttachmentGroup.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectAttachmentGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectAttachmentGroup resources. + * @param items items or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectAttachmentGroupsListResponse set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsListResponse) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsListResponse clone() { + return (InterconnectAttachmentGroupsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for InterconnectAttachmentGroupsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java new file mode 100644 index 00000000000..f1ab8505df3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -0,0 +1,153 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectAttachmentGroupsOperationalStatus. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsOperationalStatus extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachmentStatuses; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured configured; + + /** + * Summarizes the status of the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupStatus; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupIntent intent; + + /** + * The operational state of the group, including only active Attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured operational; + + /** + * @return value or {@code null} for none + */ + public java.util.List getAttachmentStatuses() { + return attachmentStatuses; + } + + /** + * @param attachmentStatuses attachmentStatuses or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setAttachmentStatuses(java.util.List attachmentStatuses) { + this.attachmentStatuses = attachmentStatuses; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectAttachmentGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Summarizes the status of the group. + * @return value or {@code null} for none + */ + public java.lang.String getGroupStatus() { + return groupStatus; + } + + /** + * Summarizes the status of the group. + * @param groupStatus groupStatus or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { + this.groupStatus = groupStatus; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttachmentGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * The operational state of the group, including only active Attachments. + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getOperational() { + return operational; + } + + /** + * The operational state of the group, including only active Attachments. + * @param operational operational or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectAttachmentGroupsOperationalStatus set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsOperationalStatus) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsOperationalStatus clone() { + return (InterconnectAttachmentGroupsOperationalStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java new file mode 100644 index 00000000000..f4fd1b65a86 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -0,0 +1,153 @@ +/* + * 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.compute.model; + +/** + * The status of one Attachment in the group. List order is arbitrary. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { + + /** + * Whether this Attachment is enabled. This becomes false when the customer drains their + * Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * The URL of the Attachment being described. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if + * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the + * analysis that generates operational.availabilitySLA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String isActive; + + /** + * Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses + * available in the Pantheon UI here: + * http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Whether this Attachment is enabled. This becomes false when the customer drains their + * Attachment. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Whether this Attachment is enabled. This becomes false when the customer drains their + * Attachment. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * The URL of the Attachment being described. + * @return value or {@code null} for none + */ + public java.lang.String getAttachment() { + return attachment; + } + + /** + * The URL of the Attachment being described. + * @param attachment attachment or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { + this.attachment = attachment; + return this; + } + + /** + * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if + * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the + * analysis that generates operational.availabilitySLA. + * @return value or {@code null} for none + */ + public java.lang.String getIsActive() { + return isActive; + } + + /** + * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if + * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the + * analysis that generates operational.availabilitySLA. + * @param isActive isActive or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive(java.lang.String isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses + * available in the Pantheon UI here: + * http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses + * available in the Pantheon UI here: + * http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto + * @param status status or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus clone() { + return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java new file mode 100644 index 00000000000..a331d92835a --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java @@ -0,0 +1,331 @@ +/* + * 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.compute.model; + +/** + * An interconnect group resource allows customers to create, analyze, and expand their redundant + * connections. + * + *

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 Compute Engine 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 InterconnectGroup extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured configured; + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by API 154. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupIntent intent; + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map interconnects; + + /** + * [Output Only] Type of the resource. Always compute#InterconnectGroup + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupPhysicalStructure physicalStructure; + + /** + * [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by API 154. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by API 154. + * @param etag etag or {@code null} for none + */ + public InterconnectGroup setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @param id id or {@code null} for none + */ + public InterconnectGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectGroup setIntent(InterconnectGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * @return value or {@code null} for none + */ + public java.util.Map getInterconnects() { + return interconnects; + } + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroup setInterconnects(java.util.Map interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * [Output Only] Type of the resource. Always compute#InterconnectGroup + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * [Output Only] Type of the resource. Always compute#InterconnectGroup + * @param kind kind or {@code null} for none + */ + public InterconnectGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public InterconnectGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupPhysicalStructure getPhysicalStructure() { + return physicalStructure; + } + + /** + * @param physicalStructure physicalStructure or {@code null} for none + */ + public InterconnectGroup setPhysicalStructure(InterconnectGroupPhysicalStructure physicalStructure) { + this.physicalStructure = physicalStructure; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public InterconnectGroup set(String fieldName, Object value) { + return (InterconnectGroup) super.set(fieldName, value); + } + + @Override + public InterconnectGroup clone() { + return (InterconnectGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java new file mode 100644 index 00000000000..48179a6cb50 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java @@ -0,0 +1,65 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The status of the group as configured. This has the same structure as the + * operational field reported by the OperationalStatus method, but does not take into account the + * operational status of each resource. + * + *

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 Compute Engine 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 InterconnectGroupConfigured extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfiguredTopologyCapability topologyCapability; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability getTopologyCapability() { + return topologyCapability; + } + + /** + * @param topologyCapability topologyCapability or {@code null} for none + */ + public InterconnectGroupConfigured setTopologyCapability(InterconnectGroupConfiguredTopologyCapability topologyCapability) { + this.topologyCapability = topologyCapability; + return this; + } + + @Override + public InterconnectGroupConfigured set(String fieldName, Object value) { + return (InterconnectGroupConfigured) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfigured clone() { + return (InterconnectGroupConfigured) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java new file mode 100644 index 00000000000..cd36e59561e --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java @@ -0,0 +1,85 @@ +/* + * 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.compute.model; + +/** + * [Output Only] How reliable this topology is configured to be, and why this group does or does not + * meet the requirements for the intended capability. + * + *

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 Compute Engine 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 InterconnectGroupConfiguredTopologyCapability extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List intendedCapabilityBlockers; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String supportedSla; + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntendedCapabilityBlockers() { + return intendedCapabilityBlockers; + } + + /** + * @param intendedCapabilityBlockers intendedCapabilityBlockers or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability setIntendedCapabilityBlockers(java.util.List intendedCapabilityBlockers) { + this.intendedCapabilityBlockers = intendedCapabilityBlockers; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getSupportedSla() { + return supportedSla; + } + + /** + * @param supportedSla supportedSla or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability setSupportedSla(java.lang.String supportedSla) { + this.supportedSla = supportedSla; + return this; + } + + @Override + public InterconnectGroupConfiguredTopologyCapability set(String fieldName, Object value) { + return (InterconnectGroupConfiguredTopologyCapability) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfiguredTopologyCapability clone() { + return (InterconnectGroupConfiguredTopologyCapability) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java new file mode 100644 index 00000000000..0f6eb082020 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java @@ -0,0 +1,226 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Reasons why configuration.topologyCapability.sla differs from + * intent.topologyCapability. This list is empty if and only if those are the same. + * + *

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 Compute Engine 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 InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blockerType; + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationLink; + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * [Output Only] Interconnects used to explain this blocker in more detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic + * metros in this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or + * "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBlockerType() { + return blockerType; + } + + /** + * @param blockerType blockerType or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setBlockerType(java.lang.String blockerType) { + this.blockerType = blockerType; + return this; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationLink() { + return documentationLink; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @param documentationLink documentationLink or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setDocumentationLink(java.lang.String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @param explanation explanation or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * @param facilities facilities or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * [Output Only] Interconnects used to explain this blocker in more detail. + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * [Output Only] Interconnects used to explain this blocker in more detail. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic + * metros in this field. + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic + * metros in this field. + * @param metros metros or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or + * "zone2". + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or + * "zone2". + * @param zones zones or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers set(String fieldName, Object value) { + return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers clone() { + return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java new file mode 100644 index 00000000000..d7b08fdbe17 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * The user's intent for this group. This is the only required field besides the name that must be + * specified on group creation. + * + *

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 Compute Engine 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 InterconnectGroupIntent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String topologyCapability; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTopologyCapability() { + return topologyCapability; + } + + /** + * @param topologyCapability topologyCapability or {@code null} for none + */ + public InterconnectGroupIntent setTopologyCapability(java.lang.String topologyCapability) { + this.topologyCapability = topologyCapability; + return this; + } + + @Override + public InterconnectGroupIntent set(String fieldName, Object value) { + return (InterconnectGroupIntent) super.set(fieldName, value); + } + + @Override + public InterconnectGroupIntent clone() { + return (InterconnectGroupIntent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java new file mode 100644 index 00000000000..8d5e817ed69 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * An Interconnect in this InterconnectGroup. + * + *

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 Compute Engine 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 InterconnectGroupInterconnect extends com.google.api.client.json.GenericJson { + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectGroupInterconnect setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + @Override + public InterconnectGroupInterconnect set(String fieldName, Object value) { + return (InterconnectGroupInterconnect) super.set(fieldName, value); + } + + @Override + public InterconnectGroupInterconnect clone() { + return (InterconnectGroupInterconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java new file mode 100644 index 00000000000..95fa3028163 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * [Output Only] An analysis of the physical layout of Interconnects in this group. Every + * Interconnect in the group is shown once in this structure. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructure extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * @param metros metros or {@code null} for none + */ + public InterconnectGroupPhysicalStructure setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + @Override + public InterconnectGroupPhysicalStructure set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructure) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructure clone() { + return (InterconnectGroupPhysicalStructure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java new file mode 100644 index 00000000000..1c4b44ca7c0 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The metros Interconnects in this group are in. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructureMetros extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of Interconnects underneath this. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metro; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * @param facilities facilities or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of Interconnects underneath this. + * @return value or {@code null} for none + */ + public java.lang.String getMetro() { + return metro; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of Interconnects underneath this. + * @param metro metro or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetros setMetro(java.lang.String metro) { + this.metro = metro; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetros set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetros) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetros clone() { + return (InterconnectGroupPhysicalStructureMetros) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java new file mode 100644 index 00000000000..1a257d0706e --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The facilities Interconnects in this metro are present in. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructureMetrosFacilities extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third + * component of the location of Interconnects in this facility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third + * component of the location of Interconnects in this facility. + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third + * component of the location of Interconnects in this facility. + * @param facility facility or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilities setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * @param zones zones or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilities setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilities set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetrosFacilities) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilities clone() { + return (InterconnectGroupPhysicalStructureMetrosFacilities) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java new file mode 100644 index 00000000000..df961f862ac --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -0,0 +1,96 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The zones that Interconnects in this facility are present in. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and + * zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of + * the location of Interconnects in this facility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and + * zone. + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and + * zone. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of + * the location of Interconnects in this facility. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of + * the location of Interconnects in this facility. + * @param zone zone or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones clone() { + return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java new file mode 100644 index 00000000000..d5121dc915d --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java @@ -0,0 +1,114 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectGroupsCreateMembers. + * + *

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 Compute Engine 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 InterconnectGroupsCreateMembers extends com.google.api.client.json.GenericJson { + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String intentMismatchBehavior; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * Parameters for the Interconnects to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsCreateMembersInterconnectInput templateInterconnect; + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * @return value or {@code null} for none + */ + public java.lang.String getIntentMismatchBehavior() { + return intentMismatchBehavior; + } + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * @param intentMismatchBehavior intentMismatchBehavior or {@code null} for none + */ + public InterconnectGroupsCreateMembers setIntentMismatchBehavior(java.lang.String intentMismatchBehavior) { + this.intentMismatchBehavior = intentMismatchBehavior; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupsCreateMembers setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * Parameters for the Interconnects to create. + * @return value or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput getTemplateInterconnect() { + return templateInterconnect; + } + + /** + * Parameters for the Interconnects to create. + * @param templateInterconnect templateInterconnect or {@code null} for none + */ + public InterconnectGroupsCreateMembers setTemplateInterconnect(InterconnectGroupsCreateMembersInterconnectInput templateInterconnect) { + this.templateInterconnect = templateInterconnect; + return this; + } + + @Override + public InterconnectGroupsCreateMembers set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembers) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembers clone() { + return (InterconnectGroupsCreateMembers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java new file mode 100644 index 00000000000..6935a786c0a --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java @@ -0,0 +1,378 @@ +/* + * 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.compute.model; + +/** + * LINT.IfChange + * + *

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 Compute Engine 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 InterconnectGroupsCreateMembersInterconnectInput extends com.google.api.client.json.GenericJson { + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerName; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed + * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical + * interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of + * DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectType; + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G + * Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note + * that this field indicates the speed of each of the links in the bundle, not the speed of the + * entire bundle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkType; + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nocContactEmail; + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteLocation; + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC If specified then the connection is created on MACsec capable + * hardware ports. If not specified, the default value is false, which allocates non-MACsec + * capable ports first if available. This parameter can be provided only with Interconnect INSERT. + * It isn't valid for Interconnect PATCH. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestedFeatures; + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer requestedLinkCount; + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerName() { + return customerName; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @param customerName customerName or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setCustomerName(java.lang.String customerName) { + this.customerName = customerName; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * @param facility facility or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed + * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical + * interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of + * DEDICATED. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectType() { + return interconnectType; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed + * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical + * interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of + * DEDICATED. + * @param interconnectType interconnectType or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setInterconnectType(java.lang.String interconnectType) { + this.interconnectType = interconnectType; + return this; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G + * Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note + * that this field indicates the speed of each of the links in the bundle, not the speed of the + * entire bundle. + * @return value or {@code null} for none + */ + public java.lang.String getLinkType() { + return linkType; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G + * Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note + * that this field indicates the speed of each of the links in the bundle, not the speed of the + * entire bundle. + * @param linkType linkType or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setLinkType(java.lang.String linkType) { + this.linkType = linkType; + return this; + } + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @return value or {@code null} for none + */ + public java.lang.String getNocContactEmail() { + return nocContactEmail; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @param nocContactEmail nocContactEmail or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setNocContactEmail(java.lang.String nocContactEmail) { + this.nocContactEmail = nocContactEmail; + return this; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @return value or {@code null} for none + */ + public java.lang.String getRemoteLocation() { + return remoteLocation; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @param remoteLocation remoteLocation or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRemoteLocation(java.lang.String remoteLocation) { + this.remoteLocation = remoteLocation; + return this; + } + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC If specified then the connection is created on MACsec capable + * hardware ports. If not specified, the default value is false, which allocates non-MACsec + * capable ports first if available. This parameter can be provided only with Interconnect INSERT. + * It isn't valid for Interconnect PATCH. + * @return value or {@code null} for none + */ + public java.util.List getRequestedFeatures() { + return requestedFeatures; + } + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC If specified then the connection is created on MACsec capable + * hardware ports. If not specified, the default value is false, which allocates non-MACsec + * capable ports first if available. This parameter can be provided only with Interconnect INSERT. + * It isn't valid for Interconnect PATCH. + * @param requestedFeatures requestedFeatures or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRequestedFeatures(java.util.List requestedFeatures) { + this.requestedFeatures = requestedFeatures; + return this; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @return value or {@code null} for none + */ + public java.lang.Integer getRequestedLinkCount() { + return requestedLinkCount; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @param requestedLinkCount requestedLinkCount or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRequestedLinkCount(java.lang.Integer requestedLinkCount) { + this.requestedLinkCount = requestedLinkCount; + return this; + } + + @Override + public InterconnectGroupsCreateMembersInterconnectInput set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembersInterconnectInput) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembersInterconnectInput clone() { + return (InterconnectGroupsCreateMembersInterconnectInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java new file mode 100644 index 00000000000..d3beb89c3a8 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java @@ -0,0 +1,63 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectGroupsCreateMembersRequest. + * + *

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 Compute Engine 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 InterconnectGroupsCreateMembersRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsCreateMembers request; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupsCreateMembers getRequest() { + return request; + } + + /** + * @param request request or {@code null} for none + */ + public InterconnectGroupsCreateMembersRequest setRequest(InterconnectGroupsCreateMembers request) { + this.request = request; + return this; + } + + @Override + public InterconnectGroupsCreateMembersRequest set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembersRequest) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembersRequest clone() { + return (InterconnectGroupsCreateMembersRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java new file mode 100644 index 00000000000..97edd563ae3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Response for the InterconnectGroupsGetOperationalStatusResponse. + * + *

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 Compute Engine 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 InterconnectGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsOperationalStatus result; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupsOperationalStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectGroupsGetOperationalStatusResponse setResult(InterconnectGroupsOperationalStatus result) { + this.result = result; + return this; + } + + @Override + public InterconnectGroupsGetOperationalStatusResponse set(String fieldName, Object value) { + return (InterconnectGroupsGetOperationalStatusResponse) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsGetOperationalStatusResponse clone() { + return (InterconnectGroupsGetOperationalStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java new file mode 100644 index 00000000000..20da54d0218 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -0,0 +1,422 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectGroupsListResponse. + * + *

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 Compute Engine 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 InterconnectGroupsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of InterconnectGroup resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider InterconnectGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(InterconnectGroup.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectGroupsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InterconnectGroupsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectGroup resources. + * @param items items or {@code null} for none + */ + public InterconnectGroupsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public InterconnectGroupsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InterconnectGroupsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectGroupsListResponse set(String fieldName, Object value) { + return (InterconnectGroupsListResponse) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsListResponse clone() { + return (InterconnectGroupsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for InterconnectGroupsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java new file mode 100644 index 00000000000..80d27d471e5 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -0,0 +1,159 @@ +/* + * 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.compute.model; + +/** + * Request to get the status of the interconnect group with extra detail. + * + *

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 Compute Engine 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 InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { + + /** + * The configuration analysis, as returned by Get. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured configured; + + /** + * Summarizes the status of the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupStatus; + + /** + * The intent of the resource, as returned by Get. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupIntent intent; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectStatuses; + + /** + * The operational state of the group, including only active Interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured operational; + + /** + * The configuration analysis, as returned by Get. + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getConfigured() { + return configured; + } + + /** + * The configuration analysis, as returned by Get. + * @param configured configured or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Summarizes the status of the group. + * @return value or {@code null} for none + */ + public java.lang.String getGroupStatus() { + return groupStatus; + } + + /** + * Summarizes the status of the group. + * @param groupStatus groupStatus or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { + this.groupStatus = groupStatus; + return this; + } + + /** + * The intent of the resource, as returned by Get. + * @return value or {@code null} for none + */ + public InterconnectGroupIntent getIntent() { + return intent; + } + + /** + * The intent of the resource, as returned by Get. + * @param intent intent or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterconnectStatuses() { + return interconnectStatuses; + } + + /** + * @param interconnectStatuses interconnectStatuses or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.List interconnectStatuses) { + this.interconnectStatuses = interconnectStatuses; + return this; + } + + /** + * The operational state of the group, including only active Interconnects. + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getOperational() { + return operational; + } + + /** + * The operational state of the group, including only active Interconnects. + * @param operational operational or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectGroupsOperationalStatus set(String fieldName, Object value) { + return (InterconnectGroupsOperationalStatus) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsOperationalStatus clone() { + return (InterconnectGroupsOperationalStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java new file mode 100644 index 00000000000..49fd3a7746a --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -0,0 +1,138 @@ +/* + * 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.compute.model; + +/** + * The status of one Interconnect in the group. The order is arbitrary. + * + *

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 Compute Engine 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 InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { + + /** + * Whether the Interconnect is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnostics diagnostics; + + /** + * The URL of the Interconnect being described. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * Whether this interconnect is participating in the redundant configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String isActive; + + /** + * Whether the Interconnect is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Whether the Interconnect is enabled. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * @return value or {@code null} for none + */ + public InterconnectDiagnostics getDiagnostics() { + return diagnostics; + } + + /** + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * @param diagnostics diagnostics or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(InterconnectDiagnostics diagnostics) { + this.diagnostics = diagnostics; + return this; + } + + /** + * The URL of the Interconnect being described. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * The URL of the Interconnect being described. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + /** + * Whether this interconnect is participating in the redundant configuration. + * @return value or {@code null} for none + */ + public java.lang.String getIsActive() { + return isActive; + } + + /** + * Whether this interconnect is participating in the redundant configuration. + * @param isActive isActive or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { + this.isActive = isActive; + return this; + } + + @Override + public InterconnectGroupsOperationalStatusInterconnectStatus set(String fieldName, Object value) { + return (InterconnectGroupsOperationalStatusInterconnectStatus) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsOperationalStatusInterconnectStatus clone() { + return (InterconnectGroupsOperationalStatusInterconnectStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/License.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/License.java index 95d4b50f647..0e04fd6c0e7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/License.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/License.java @@ -31,6 +31,21 @@ @SuppressWarnings("javadoc") public final class License extends com.google.api.client.json.GenericJson { + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedReplacementLicenses; + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean appendableToDisk; + /** * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. * The value may be {@code null}. @@ -60,6 +75,14 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List incompatibleLicenses; + /** * [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. @@ -74,6 +97,21 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger licenseCode; + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration minimumRetention; + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean multiTenantOnly; + /** * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. * The value may be {@code null}. @@ -81,6 +119,31 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean osLicense; + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean removableFromDisk; + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requiredCoattachedLicenses; + /** * [Input Only] Deprecated. * The value may be {@code null}. @@ -95,6 +158,20 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean soleTenantOnly; + /** * If false, licenses will not be copied from the source resource when creating an image from a * disk, disk from snapshot, or snapshot from disk. @@ -103,6 +180,49 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean transferable; + /** + * [Output Only] Last update timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @return value or {@code null} for none + */ + public java.util.List getAllowedReplacementLicenses() { + return allowedReplacementLicenses; + } + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @param allowedReplacementLicenses allowedReplacementLicenses or {@code null} for none + */ + public License setAllowedReplacementLicenses(java.util.List allowedReplacementLicenses) { + this.allowedReplacementLicenses = allowedReplacementLicenses; + return this; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAppendableToDisk() { + return appendableToDisk; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @param appendableToDisk appendableToDisk or {@code null} for none + */ + public License setAppendableToDisk(java.lang.Boolean appendableToDisk) { + this.appendableToDisk = appendableToDisk; + return this; + } + /** * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. * @return value or {@code null} for none @@ -173,6 +293,25 @@ public License setId(java.math.BigInteger id) { return this; } + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @return value or {@code null} for none + */ + public java.util.List getIncompatibleLicenses() { + return incompatibleLicenses; + } + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @param incompatibleLicenses incompatibleLicenses or {@code null} for none + */ + public License setIncompatibleLicenses(java.util.List incompatibleLicenses) { + this.incompatibleLicenses = incompatibleLicenses; + return this; + } + /** * [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none @@ -207,6 +346,42 @@ public License setLicenseCode(java.math.BigInteger licenseCode) { return this; } + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @return value or {@code null} for none + */ + public Duration getMinimumRetention() { + return minimumRetention; + } + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @param minimumRetention minimumRetention or {@code null} for none + */ + public License setMinimumRetention(Duration minimumRetention) { + this.minimumRetention = minimumRetention; + return this; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMultiTenantOnly() { + return multiTenantOnly; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @param multiTenantOnly multiTenantOnly or {@code null} for none + */ + public License setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { + this.multiTenantOnly = multiTenantOnly; + return this; + } + /** * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. * @return value or {@code null} for none @@ -224,6 +399,65 @@ public License setName(java.lang.String name) { return this; } + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOsLicense() { + return osLicense; + } + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @param osLicense osLicense or {@code null} for none + */ + public License setOsLicense(java.lang.Boolean osLicense) { + this.osLicense = osLicense; + return this; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRemovableFromDisk() { + return removableFromDisk; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @param removableFromDisk removableFromDisk or {@code null} for none + */ + public License setRemovableFromDisk(java.lang.Boolean removableFromDisk) { + this.removableFromDisk = removableFromDisk; + return this; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @return value or {@code null} for none + */ + public java.util.List getRequiredCoattachedLicenses() { + return requiredCoattachedLicenses; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @param requiredCoattachedLicenses requiredCoattachedLicenses or {@code null} for none + */ + public License setRequiredCoattachedLicenses(java.util.List requiredCoattachedLicenses) { + this.requiredCoattachedLicenses = requiredCoattachedLicenses; + return this; + } + /** * [Input Only] Deprecated. * @return value or {@code null} for none @@ -258,6 +492,40 @@ public License setSelfLink(java.lang.String selfLink) { return this; } + /** + * [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public License setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSoleTenantOnly() { + return soleTenantOnly; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @param soleTenantOnly soleTenantOnly or {@code null} for none + */ + public License setSoleTenantOnly(java.lang.Boolean soleTenantOnly) { + this.soleTenantOnly = soleTenantOnly; + return this; + } + /** * If false, licenses will not be copied from the source resource when creating an image from a * disk, disk from snapshot, or snapshot from disk. @@ -277,6 +545,23 @@ public License setTransferable(java.lang.Boolean transferable) { return this; } + /** + * [Output Only] Last update timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * [Output Only] Last update timestamp in RFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public License setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + @Override public License set(String fieldName, Object value) { return (License) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index ad1fe85c37d..d48d88af8a6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -68,6 +68,14 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String fingerprint; + /** + * Indicate whether igmp query is enabled on the network interface or not. If enabled, also + * indicates the version of IGMP supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String igmpQuery; + /** * The prefix length of the primary internal IPv6 range. * The value may be {@code null}. @@ -304,6 +312,25 @@ public NetworkInterface encodeFingerprint(byte[] fingerprint) { return this; } + /** + * Indicate whether igmp query is enabled on the network interface or not. If enabled, also + * indicates the version of IGMP supported. + * @return value or {@code null} for none + */ + public java.lang.String getIgmpQuery() { + return igmpQuery; + } + + /** + * Indicate whether igmp query is enabled on the network interface or not. If enabled, also + * indicates the version of IGMP supported. + * @param igmpQuery igmpQuery or {@code null} for none + */ + public NetworkInterface setIgmpQuery(java.lang.String igmpQuery) { + this.igmpQuery = igmpQuery; + return this; + } + /** * The prefix length of the primary internal IPv6 range. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index bd0a99f7d74..314b4e2f682 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -41,6 +41,13 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.Boolean autoCreateRoutes; + /** + * [Output Only] The effective state of the peering connection as a whole. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeeringConnectionStatus connectionStatus; + /** * Indicates whether full mesh connectivity is created and managed automatically between peered * networks. Currently this field should always be true since Google Compute Engine will @@ -132,6 +139,14 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String stateDetails; + /** + * The update strategy determines the semantics for updates and deletes to the peering connection + * configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStrategy; + /** * This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates * whether full mesh connectivity is created and managed automatically between peered networks. @@ -155,6 +170,23 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { return this; } + /** + * [Output Only] The effective state of the peering connection as a whole. + * @return value or {@code null} for none + */ + public NetworkPeeringConnectionStatus getConnectionStatus() { + return connectionStatus; + } + + /** + * [Output Only] The effective state of the peering connection as a whole. + * @param connectionStatus connectionStatus or {@code null} for none + */ + public NetworkPeering setConnectionStatus(NetworkPeeringConnectionStatus connectionStatus) { + this.connectionStatus = connectionStatus; + return this; + } + /** * Indicates whether full mesh connectivity is created and managed automatically between peered * networks. Currently this field should always be true since Google Compute Engine will @@ -370,6 +402,25 @@ public NetworkPeering setStateDetails(java.lang.String stateDetails) { return this; } + /** + * The update strategy determines the semantics for updates and deletes to the peering connection + * configuration. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStrategy() { + return updateStrategy; + } + + /** + * The update strategy determines the semantics for updates and deletes to the peering connection + * configuration. + * @param updateStrategy updateStrategy or {@code null} for none + */ + public NetworkPeering setUpdateStrategy(java.lang.String updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + @Override public NetworkPeering set(String fieldName, Object value) { return (NetworkPeering) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java new file mode 100644 index 00000000000..3c466657dea --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java @@ -0,0 +1,122 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Describes the state of a peering connection, not just the local peering. This field + * provides information about the effective settings for the connection as a whole, including + * pending delete/update requests for CONSENSUS peerings. + * + *

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 Compute Engine 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 NetworkPeeringConnectionStatus extends com.google.api.client.json.GenericJson { + + /** + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeeringConnectionStatusConsensusState consensusState; + + /** + * The active connectivity settings for the peering connection based on the settings of the + * network peerings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeeringConnectionStatusTrafficConfiguration trafficConfiguration; + + /** + * The update strategy determines the update/delete semantics for this peering connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStrategy; + + /** + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. + * @return value or {@code null} for none + */ + public NetworkPeeringConnectionStatusConsensusState getConsensusState() { + return consensusState; + } + + /** + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. + * @param consensusState consensusState or {@code null} for none + */ + public NetworkPeeringConnectionStatus setConsensusState(NetworkPeeringConnectionStatusConsensusState consensusState) { + this.consensusState = consensusState; + return this; + } + + /** + * The active connectivity settings for the peering connection based on the settings of the + * network peerings. + * @return value or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration getTrafficConfiguration() { + return trafficConfiguration; + } + + /** + * The active connectivity settings for the peering connection based on the settings of the + * network peerings. + * @param trafficConfiguration trafficConfiguration or {@code null} for none + */ + public NetworkPeeringConnectionStatus setTrafficConfiguration(NetworkPeeringConnectionStatusTrafficConfiguration trafficConfiguration) { + this.trafficConfiguration = trafficConfiguration; + return this; + } + + /** + * The update strategy determines the update/delete semantics for this peering connection. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStrategy() { + return updateStrategy; + } + + /** + * The update strategy determines the update/delete semantics for this peering connection. + * @param updateStrategy updateStrategy or {@code null} for none + */ + public NetworkPeeringConnectionStatus setUpdateStrategy(java.lang.String updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + + @Override + public NetworkPeeringConnectionStatus set(String fieldName, Object value) { + return (NetworkPeeringConnectionStatus) super.set(fieldName, value); + } + + @Override + public NetworkPeeringConnectionStatus clone() { + return (NetworkPeeringConnectionStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java new file mode 100644 index 00000000000..0f7f7086d44 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java @@ -0,0 +1,92 @@ +/* + * 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.compute.model; + +/** + * The status of update/delete for a consensus peering connection. Only set when + * connection_status.update_strategy is CONSENSUS or a network peering is proposing to update the + * strategy to CONSENSUS. + * + *

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 Compute Engine 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 NetworkPeeringConnectionStatusConsensusState extends com.google.api.client.json.GenericJson { + + /** + * The status of the delete request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deleteStatus; + + /** + * The status of the update request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStatus; + + /** + * The status of the delete request. + * @return value or {@code null} for none + */ + public java.lang.String getDeleteStatus() { + return deleteStatus; + } + + /** + * The status of the delete request. + * @param deleteStatus deleteStatus or {@code null} for none + */ + public NetworkPeeringConnectionStatusConsensusState setDeleteStatus(java.lang.String deleteStatus) { + this.deleteStatus = deleteStatus; + return this; + } + + /** + * The status of the update request. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStatus() { + return updateStatus; + } + + /** + * The status of the update request. + * @param updateStatus updateStatus or {@code null} for none + */ + public NetworkPeeringConnectionStatusConsensusState setUpdateStatus(java.lang.String updateStatus) { + this.updateStatus = updateStatus; + return this; + } + + @Override + public NetworkPeeringConnectionStatusConsensusState set(String fieldName, Object value) { + return (NetworkPeeringConnectionStatusConsensusState) super.set(fieldName, value); + } + + @Override + public NetworkPeeringConnectionStatusConsensusState clone() { + return (NetworkPeeringConnectionStatusConsensusState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java new file mode 100644 index 00000000000..0971f683c6b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java @@ -0,0 +1,162 @@ +/* + * 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.compute.model; + +/** + * Model definition for NetworkPeeringConnectionStatusTrafficConfiguration. + * + *

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 Compute Engine 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 NetworkPeeringConnectionStatusTrafficConfiguration extends com.google.api.client.json.GenericJson { + + /** + * Whether custom routes are being exported to the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exportCustomRoutesToPeer; + + /** + * Whether subnet routes with public IP ranges are being exported to the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer; + + /** + * Whether custom routes are being imported from the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean importCustomRoutesFromPeer; + + /** + * Whether subnet routes with public IP ranges are being imported from the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer; + + /** + * Which IP version(s) of traffic and routes are being imported or exported between peer networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Whether custom routes are being exported to the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExportCustomRoutesToPeer() { + return exportCustomRoutesToPeer; + } + + /** + * Whether custom routes are being exported to the peer network. + * @param exportCustomRoutesToPeer exportCustomRoutesToPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setExportCustomRoutesToPeer(java.lang.Boolean exportCustomRoutesToPeer) { + this.exportCustomRoutesToPeer = exportCustomRoutesToPeer; + return this; + } + + /** + * Whether subnet routes with public IP ranges are being exported to the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExportSubnetRoutesWithPublicIpToPeer() { + return exportSubnetRoutesWithPublicIpToPeer; + } + + /** + * Whether subnet routes with public IP ranges are being exported to the peer network. + * @param exportSubnetRoutesWithPublicIpToPeer exportSubnetRoutesWithPublicIpToPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setExportSubnetRoutesWithPublicIpToPeer(java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer) { + this.exportSubnetRoutesWithPublicIpToPeer = exportSubnetRoutesWithPublicIpToPeer; + return this; + } + + /** + * Whether custom routes are being imported from the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImportCustomRoutesFromPeer() { + return importCustomRoutesFromPeer; + } + + /** + * Whether custom routes are being imported from the peer network. + * @param importCustomRoutesFromPeer importCustomRoutesFromPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setImportCustomRoutesFromPeer(java.lang.Boolean importCustomRoutesFromPeer) { + this.importCustomRoutesFromPeer = importCustomRoutesFromPeer; + return this; + } + + /** + * Whether subnet routes with public IP ranges are being imported from the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImportSubnetRoutesWithPublicIpFromPeer() { + return importSubnetRoutesWithPublicIpFromPeer; + } + + /** + * Whether subnet routes with public IP ranges are being imported from the peer network. + * @param importSubnetRoutesWithPublicIpFromPeer importSubnetRoutesWithPublicIpFromPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setImportSubnetRoutesWithPublicIpFromPeer(java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer) { + this.importSubnetRoutesWithPublicIpFromPeer = importSubnetRoutesWithPublicIpFromPeer; + return this; + } + + /** + * Which IP version(s) of traffic and routes are being imported or exported between peer networks. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * Which IP version(s) of traffic and routes are being imported or exported between peer networks. + * @param stackType stackType or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + @Override + public NetworkPeeringConnectionStatusTrafficConfiguration set(String fieldName, Object value) { + return (NetworkPeeringConnectionStatusTrafficConfiguration) super.set(fieldName, value); + } + + @Override + public NetworkPeeringConnectionStatusTrafficConfiguration clone() { + return (NetworkPeeringConnectionStatusTrafficConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.java new file mode 100644 index 00000000000..9cf8bbe1a09 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * Model definition for NetworksRequestRemovePeeringRequest. + * + *

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 Compute Engine 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 NetworksRequestRemovePeeringRequest extends com.google.api.client.json.GenericJson { + + /** + * Name of the peering, which should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Name of the peering, which should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the peering, which should conform to RFC1035. + * @param name name or {@code null} for none + */ + public NetworksRequestRemovePeeringRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public NetworksRequestRemovePeeringRequest set(String fieldName, Object value) { + return (NetworksRequestRemovePeeringRequest) super.set(fieldName, value); + } + + @Override + public NetworksRequestRemovePeeringRequest clone() { + return (NetworksRequestRemovePeeringRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java new file mode 100644 index 00000000000..6b298d6a5ce --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -0,0 +1,258 @@ +/* + * 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.compute.model; + +/** + * Represents a single Google Compute Engine preview feature. + * + *

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 Compute Engine 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 PreviewFeature extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the feature is enabled or disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String activationStatus; + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] Description of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Rollout operation of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureRolloutOperation rolloutOperation; + + /** + * [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output only] Status of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureStatus status; + + /** + * Specifies whether the feature is enabled or disabled. + * @return value or {@code null} for none + */ + public java.lang.String getActivationStatus() { + return activationStatus; + } + + /** + * Specifies whether the feature is enabled or disabled. + * @param activationStatus activationStatus or {@code null} for none + */ + public PreviewFeature setActivationStatus(java.lang.String activationStatus) { + this.activationStatus = activationStatus; + return this; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] Description of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] Description of the feature. + * @param description description or {@code null} for none + */ + public PreviewFeature setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public PreviewFeature setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * @param kind kind or {@code null} for none + */ + public PreviewFeature setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the feature. + * @param name name or {@code null} for none + */ + public PreviewFeature setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Rollout operation of the feature. + * @return value or {@code null} for none + */ + public PreviewFeatureRolloutOperation getRolloutOperation() { + return rolloutOperation; + } + + /** + * Rollout operation of the feature. + * @param rolloutOperation rolloutOperation or {@code null} for none + */ + public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rolloutOperation) { + this.rolloutOperation = rolloutOperation; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public PreviewFeature setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output only] Status of the feature. + * @return value or {@code null} for none + */ + public PreviewFeatureStatus getStatus() { + return status; + } + + /** + * [Output only] Status of the feature. + * @param status status or {@code null} for none + */ + public PreviewFeature setStatus(PreviewFeatureStatus status) { + this.status = status; + return this; + } + + @Override + public PreviewFeature set(String fieldName, Object value) { + return (PreviewFeature) super.set(fieldName, value); + } + + @Override + public PreviewFeature clone() { + return (PreviewFeature) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java new file mode 100644 index 00000000000..ccf8e42fe68 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -0,0 +1,401 @@ +/* + * 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.compute.model; + +/** + * Model definition for PreviewFeatureList. + * + *

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 Compute Engine 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 PreviewFeatureList extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of PreviewFeature resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider PreviewFeature used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(PreviewFeature.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public PreviewFeatureList setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public PreviewFeatureList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PreviewFeature resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of PreviewFeature resources. + * @param items items or {@code null} for none + */ + public PreviewFeatureList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public PreviewFeatureList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public PreviewFeatureList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public PreviewFeatureList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PreviewFeatureList set(String fieldName, Object value) { + return (PreviewFeatureList) super.set(fieldName, value); + } + + @Override + public PreviewFeatureList clone() { + return (PreviewFeatureList) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for PreviewFeatureListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.java new file mode 100644 index 00000000000..9da3a59225f --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Represents the rollout operation + * + *

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 Compute Engine 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 PreviewFeatureRolloutOperation extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureRolloutOperationRolloutInput rolloutInput; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureRolloutOperationRolloutStatus rolloutStatus; + + /** + * @return value or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput getRolloutInput() { + return rolloutInput; + } + + /** + * @param rolloutInput rolloutInput or {@code null} for none + */ + public PreviewFeatureRolloutOperation setRolloutInput(PreviewFeatureRolloutOperationRolloutInput rolloutInput) { + this.rolloutInput = rolloutInput; + return this; + } + + /** + * @return value or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatus getRolloutStatus() { + return rolloutStatus; + } + + /** + * @param rolloutStatus rolloutStatus or {@code null} for none + */ + public PreviewFeatureRolloutOperation setRolloutStatus(PreviewFeatureRolloutOperationRolloutStatus rolloutStatus) { + this.rolloutStatus = rolloutStatus; + return this; + } + + @Override + public PreviewFeatureRolloutOperation set(String fieldName, Object value) { + return (PreviewFeatureRolloutOperation) super.set(fieldName, value); + } + + @Override + public PreviewFeatureRolloutOperation clone() { + return (PreviewFeatureRolloutOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java new file mode 100644 index 00000000000..971b7d26459 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java @@ -0,0 +1,120 @@ +/* + * 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.compute.model; + +/** + * Model definition for PreviewFeatureRolloutOperationRolloutInput. + * + *

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 Compute Engine 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 PreviewFeatureRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Predefined rollout plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String predefinedRolloutPlan; + + /** + * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can + * be used after the user canceled a rollout and want to retry it with no changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retryUuid; + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * @param name name or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Predefined rollout plan. + * @return value or {@code null} for none + */ + public java.lang.String getPredefinedRolloutPlan() { + return predefinedRolloutPlan; + } + + /** + * Predefined rollout plan. + * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { + this.predefinedRolloutPlan = predefinedRolloutPlan; + return this; + } + + /** + * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can + * be used after the user canceled a rollout and want to retry it with no changes. + * @return value or {@code null} for none + */ + public java.lang.String getRetryUuid() { + return retryUuid; + } + + /** + * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can + * be used after the user canceled a rollout and want to retry it with no changes. + * @param retryUuid retryUuid or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { + this.retryUuid = retryUuid; + return this; + } + + @Override + public PreviewFeatureRolloutOperationRolloutInput set(String fieldName, Object value) { + return (PreviewFeatureRolloutOperationRolloutInput) super.set(fieldName, value); + } + + @Override + public PreviewFeatureRolloutOperationRolloutInput clone() { + return (PreviewFeatureRolloutOperationRolloutInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutStatus.java new file mode 100644 index 00000000000..ad228cb5018 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutStatus.java @@ -0,0 +1,96 @@ +/* + * 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.compute.model; + +/** + * Model definition for PreviewFeatureRolloutOperationRolloutStatus. + * + *

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 Compute Engine 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 PreviewFeatureRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The ongoing rollout resources. There can be multiple ongoing rollouts for a + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ongoingRollouts; + + /** + * Output only. The last completed rollout resource. This field will not be populated until the + * first rollout is completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata previousRollout; + + /** + * Output only. The ongoing rollout resources. There can be multiple ongoing rollouts for a + * resource. + * @return value or {@code null} for none + */ + public java.util.List getOngoingRollouts() { + return ongoingRollouts; + } + + /** + * Output only. The ongoing rollout resources. There can be multiple ongoing rollouts for a + * resource. + * @param ongoingRollouts ongoingRollouts or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatus setOngoingRollouts(java.util.List ongoingRollouts) { + this.ongoingRollouts = ongoingRollouts; + return this; + } + + /** + * Output only. The last completed rollout resource. This field will not be populated until the + * first rollout is completed. + * @return value or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata getPreviousRollout() { + return previousRollout; + } + + /** + * Output only. The last completed rollout resource. This field will not be populated until the + * first rollout is completed. + * @param previousRollout previousRollout or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatus setPreviousRollout(PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata previousRollout) { + this.previousRollout = previousRollout; + return this; + } + + @Override + public PreviewFeatureRolloutOperationRolloutStatus set(String fieldName, Object value) { + return (PreviewFeatureRolloutOperationRolloutStatus) super.set(fieldName, value); + } + + @Override + public PreviewFeatureRolloutOperationRolloutStatus clone() { + return (PreviewFeatureRolloutOperationRolloutStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata.java new file mode 100644 index 00000000000..1166ba54ca6 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata.java @@ -0,0 +1,120 @@ +/* + * 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.compute.model; + +/** + * Model definition for PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata. + * + *

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 Compute Engine 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 PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { + + /** + * The name of the rollout Ex. organizations//locations/global/rollouts/ Ex. + * folders//locations/global/rollouts/ Ex. projects//locations/global/rollouts/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** + * The status of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureStatus status; + + /** + * The name of the rollout Ex. organizations//locations/global/rollouts/ Ex. + * folders//locations/global/rollouts/ Ex. projects//locations/global/rollouts/. + * @return value or {@code null} for none + */ + public java.lang.String getRollout() { + return rollout; + } + + /** + * The name of the rollout Ex. organizations//locations/global/rollouts/ Ex. + * folders//locations/global/rollouts/ Ex. projects//locations/global/rollouts/. + * @param rollout rollout or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata setRollout(java.lang.String rollout) { + this.rollout = rollout; + return this; + } + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * @return value or {@code null} for none + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * @param rolloutPlan rolloutPlan or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata setRolloutPlan(java.lang.String rolloutPlan) { + this.rolloutPlan = rolloutPlan; + return this; + } + + /** + * The status of the rollout. + * @return value or {@code null} for none + */ + public PreviewFeatureStatus getStatus() { + return status; + } + + /** + * The status of the rollout. + * @param status status or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata setStatus(PreviewFeatureStatus status) { + this.status = status; + return this; + } + + @Override + public PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata set(String fieldName, Object value) { + return (PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata) super.set(fieldName, value); + } + + @Override + public PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata clone() { + return (PreviewFeatureRolloutOperationRolloutStatusRolloutMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java new file mode 100644 index 00000000000..c8c718809a1 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -0,0 +1,87 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The status of the feature. + * + *

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 Compute Engine 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 PreviewFeatureStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The description of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureStatusReleaseStatus releaseStatus; + + /** + * [Output Only] The description of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] The description of the feature. + * @param description description or {@code null} for none + */ + public PreviewFeatureStatus setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * @return value or {@code null} for none + */ + public PreviewFeatureStatusReleaseStatus getReleaseStatus() { + return releaseStatus; + } + + /** + * @param releaseStatus releaseStatus or {@code null} for none + */ + public PreviewFeatureStatus setReleaseStatus(PreviewFeatureStatusReleaseStatus releaseStatus) { + this.releaseStatus = releaseStatus; + return this; + } + + @Override + public PreviewFeatureStatus set(String fieldName, Object value) { + return (PreviewFeatureStatus) super.set(fieldName, value); + } + + @Override + public PreviewFeatureStatus clone() { + return (PreviewFeatureStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java new file mode 100644 index 00000000000..c3f0fdb05ae --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * Model definition for PreviewFeatureStatusReleaseStatus. + * + *

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 Compute Engine 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 PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The stage of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stage; + + /** + * Output only. The last date when a feature transitioned between ReleaseStatuses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date updateDate; + + /** + * [Output Only] The stage of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getStage() { + return stage; + } + + /** + * [Output Only] The stage of the feature. + * @param stage stage or {@code null} for none + */ + public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { + this.stage = stage; + return this; + } + + /** + * Output only. The last date when a feature transitioned between ReleaseStatuses. + * @return value or {@code null} for none + */ + public Date getUpdateDate() { + return updateDate; + } + + /** + * Output only. The last date when a feature transitioned between ReleaseStatuses. + * @param updateDate updateDate or {@code null} for none + */ + public PreviewFeatureStatusReleaseStatus setUpdateDate(Date updateDate) { + this.updateDate = updateDate; + return this; + } + + @Override + public PreviewFeatureStatusReleaseStatus set(String fieldName, Object value) { + return (PreviewFeatureStatusReleaseStatus) super.set(fieldName, value); + } + + @Override + public PreviewFeatureStatusReleaseStatus clone() { + return (PreviewFeatureStatusReleaseStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java index c763bc1e018..1b83c1c39d6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java @@ -155,8 +155,8 @@ public final class PublicDelegatedPrefix extends com.google.api.client.json.Gene * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -485,8 +485,8 @@ public PublicDelegatedPrefix setSelfLink(java.lang.String selfLink) { * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -497,8 +497,8 @@ public java.lang.String getStatus() { * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * @param status status or {@code null} for none */ public PublicDelegatedPrefix setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java index 564a035f3d0..11735e5e104 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -82,6 +82,13 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String description; + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEmergentMaintenance; + /** * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * The value may be {@code null}. @@ -327,6 +334,23 @@ public Reservation setDescription(java.lang.String description) { return this; } + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEmergentMaintenance() { + return enableEmergentMaintenance; + } + + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * @param enableEmergentMaintenance enableEmergentMaintenance or {@code null} for none + */ + public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergentMaintenance) { + this.enableEmergentMaintenance = enableEmergentMaintenance; + return this; + } + /** * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java index 2f65d7a18ab..69c73318f71 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java @@ -117,6 +117,13 @@ public final class Router extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List nats; + /** + * URI of the ncc_gateway to which this router associated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nccGateway; + /** * URI of the network to which this router belongs. * The value may be {@code null}. @@ -346,6 +353,23 @@ public Router setNats(java.util.List nats) { return this; } + /** + * URI of the ncc_gateway to which this router associated. + * @return value or {@code null} for none + */ + public java.lang.String getNccGateway() { + return nccGateway; + } + + /** + * URI of the ncc_gateway to which this router associated. + * @param nccGateway nccGateway or {@code null} for none + */ + public Router setNccGateway(java.lang.String nccGateway) { + this.nccGateway = nccGateway; + return this; + } + /** * URI of the network to which this router belongs. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatus.java index 6c58258e722..e8e3d69c6ed 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatus.java @@ -73,6 +73,13 @@ public final class RouterStatus extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List natStatus; + /** + * URI of the ncc_gateway to which this router associated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nccGateway; + /** * URI of the network to which this router belongs. * The value may be {@code null}. @@ -156,6 +163,23 @@ public RouterStatus setNatStatus(java.util.List natStatus return this; } + /** + * URI of the ncc_gateway to which this router associated. + * @return value or {@code null} for none + */ + public java.lang.String getNccGateway() { + return nccGateway; + } + + /** + * URI of the ncc_gateway to which this router associated. + * @param nccGateway nccGateway or {@code null} for none + */ + public RouterStatus setNccGateway(java.lang.String nccGateway) { + this.nccGateway = nccGateway; + return this; + } + /** * URI of the network to which this router belongs. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java index 2cb3cb6c1d3..a555297c576 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java @@ -50,8 +50,8 @@ public final class SecurityPolicyAdvancedOptionsConfig extends com.google.api.cl private java.lang.String logLevel; /** - * The maximum request size chosen by the customer with Waf enabled. Currently only "8KB" and - * "128KB" are supported. Values are case insensitive. + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,8 +115,8 @@ public SecurityPolicyAdvancedOptionsConfig setLogLevel(java.lang.String logLevel } /** - * The maximum request size chosen by the customer with Waf enabled. Currently only "8KB" and - * "128KB" are supported. Values are case insensitive. + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. * @return value or {@code null} for none */ public java.lang.String getRequestBodyInspectionSize() { @@ -124,8 +124,8 @@ public java.lang.String getRequestBodyInspectionSize() { } /** - * The maximum request size chosen by the customer with Waf enabled. Currently only "8KB" and - * "128KB" are supported. Values are case insensitive. + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. * @param requestBodyInspectionSize requestBodyInspectionSize or {@code null} for none */ public SecurityPolicyAdvancedOptionsConfig setRequestBodyInspectionSize(java.lang.String requestBodyInspectionSize) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java index e95ecb226cd..27a7d679b59 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java @@ -35,14 +35,14 @@ public final class StructuredEntries extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map entries; + private java.util.Map entries; /** * Map of a partner metadata that belong to the same subdomain. It accepts any value including * google.protobuf.Struct. * @return value or {@code null} for none */ - public java.util.Map getEntries() { + public java.util.Map getEntries() { return entries; } @@ -51,7 +51,7 @@ public java.util.Map getEntries() { * google.protobuf.Struct. * @param entries entries or {@code null} for none */ - public StructuredEntries setEntries(java.util.Map entries) { + public StructuredEntries setEntries(java.util.Map entries) { this.entries = entries; return this; } diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 984f4f05532..2426bba1b62 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -293,6 +293,22 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String state; + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedExternalIpv6Ranges; + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedInternalIpv6Ranges; + /** * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static @@ -940,6 +956,44 @@ public Subnetwork setState(java.lang.String state) { return this; } + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedExternalIpv6Ranges() { + return systemReservedExternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @param systemReservedExternalIpv6Ranges systemReservedExternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedExternalIpv6Ranges(java.util.List systemReservedExternalIpv6Ranges) { + this.systemReservedExternalIpv6Ranges = systemReservedExternalIpv6Ranges; + return this; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedInternalIpv6Ranges() { + return systemReservedInternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @param systemReservedInternalIpv6Ranges systemReservedInternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedInternalIpv6Ranges(java.util.List systemReservedInternalIpv6Ranges) { + this.systemReservedInternalIpv6Ranges = systemReservedInternalIpv6Ranges; + return this; + } + @Override public Subnetwork set(String fieldName, Object value) { return (Subnetwork) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java new file mode 100644 index 00000000000..05b6c804619 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java @@ -0,0 +1,269 @@ +/* + * 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.compute.model; + +/** + * Model definition for SubnetworksScopedWarning. + * + *

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 Compute Engine 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 SubnetworksScopedWarning extends com.google.api.client.json.GenericJson { + + /** + * Name of the scope containing this set of Subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scopeName; + + /** + * An informational warning about unreachable scope + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Name of the scope containing this set of Subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getScopeName() { + return scopeName; + } + + /** + * Name of the scope containing this set of Subnetworks. + * @param scopeName scopeName or {@code null} for none + */ + public SubnetworksScopedWarning setScopeName(java.lang.String scopeName) { + this.scopeName = scopeName; + return this; + } + + /** + * An informational warning about unreachable scope + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning about unreachable scope + * @param warning warning or {@code null} for none + */ + public SubnetworksScopedWarning setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SubnetworksScopedWarning set(String fieldName, Object value) { + return (SubnetworksScopedWarning) super.set(fieldName, value); + } + + @Override + public SubnetworksScopedWarning clone() { + return (SubnetworksScopedWarning) super.clone(); + } + + /** + * An informational warning about unreachable scope + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for SubnetworksScopedWarningWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 0424008e3f0..ec42c404d67 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -68,6 +68,19 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client @com.google.api.client.util.Key private java.lang.String nextPageToken; + /** + * [Output Only] Informational warning messages for failures encountered from scopes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopedWarnings; + + static { + // hack to force ProGuard to consider SubnetworksScopedWarning used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(SubnetworksScopedWarning.class); + } + /** * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. @@ -75,6 +88,13 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + /** * [Output Only] Informational warning message. * The value may be {@code null}. @@ -160,6 +180,23 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag return this; } + /** + * [Output Only] Informational warning messages for failures encountered from scopes. + * @return value or {@code null} for none + */ + public java.util.List getScopedWarnings() { + return scopedWarnings; + } + + /** + * [Output Only] Informational warning messages for failures encountered from scopes. + * @param scopedWarnings scopedWarnings or {@code null} for none + */ + public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List scopedWarnings) { + this.scopedWarnings = scopedWarnings; + return this; + } + /** * [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none @@ -177,6 +214,23 @@ public UsableSubnetworksAggregatedList setSelfLink(java.lang.String selfLink) { return this; } + /** + * [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + /** * [Output Only] Informational warning message. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/pom.xml b/clients/google-api-services-compute/beta/2.0.0/pom.xml index 25c06950191..f67d5cc020d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/pom.xml +++ b/clients/google-api-services-compute/beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - beta-rev20250415-2.0.0 - Compute Engine API beta-rev20250415-2.0.0 + beta-rev20250511-2.0.0 + Compute Engine API beta-rev20250511-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/beta/README.md b/clients/google-api-services-compute/beta/README.md index 18844ed61e1..de4dcc5f5c6 100644 --- a/clients/google-api-services-compute/beta/README.md +++ b/clients/google-api-services-compute/beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - beta-rev20250415-2.0.0 + beta-rev20250511-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20250415-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20250511-2.0.0' } ``` diff --git a/clients/google-api-services-compute/v1/2.0.0/README.md b/clients/google-api-services-compute/v1/2.0.0/README.md index a3ed5079525..c994fa3ad5e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/README.md +++ b/clients/google-api-services-compute/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20250415-2.0.0 + v1-rev20250511-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20250415-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20250511-2.0.0' } ``` diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java index 7fbf1cc61b6..5291be7097a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java @@ -66530,143 +66530,141 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectAttachments collection. + * An accessor for creating requests from the InterconnectAttachmentGroups collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
+   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
    * 
* * @return the resource collection */ - public InterconnectAttachments interconnectAttachments() { - return new InterconnectAttachments(); + public InterconnectAttachmentGroups interconnectAttachmentGroups() { + return new InterconnectAttachmentGroups(); } /** - * The "interconnectAttachments" collection of methods. + * The "interconnectAttachmentGroups" collection of methods. */ - public class InterconnectAttachments { + public class InterconnectAttachmentGroups { /** - * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends - * that you set the `returnPartialSuccess` parameter to `true`. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "interconnectAttachments.aggregatedList". + * Create a request for the method "interconnectAttachmentGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Delete delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectAttachmentGroup); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends - * that you set the `returnPartialSuccess` parameter to `true`. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "interconnectAttachments.aggregatedList". + * Create a request for the method "interconnectAttachmentGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); + protected Delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -66680,7 +66678,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -66690,403 +66688,4381 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ + /** Name of the InterconnectAttachmentGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String interconnectAttachmentGroup; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. If you want to use AIP-160, your expression must specify the field name, an operator, - and the value that you want to use for filtering. The value must be a string, a number, or a - boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you - are filtering Compute Engine instances, you can exclude instances named `example-instance` by - specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has - been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You - can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - to include instances only if they are not scheduled for automatic restarts. You can use filtering - on nested fields to filter based on resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) - (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, - you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel - Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you - want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a - single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The - literal value is interpreted as a regular expression using Google RE2 library syntax. The literal - value must match the entire field. For example, to filter for instances that do not end with name - "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields - using regular expressions. + /** Name of the InterconnectAttachmentGroup resource to delete. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. If you want to use AIP-160, your expression - * must specify the field name, an operator, and the value that you want to use for filtering. - * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, - * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, - * you can exclude instances named `example-instance` by specifying `name != example- - * instance`. The `:*` comparison can be used to test whether a key has been defined. For - * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also - * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` - * to include instances only if they are not scheduled for automatic restarts. You can use - * filtering on nested fields to filter based on resource labels. To filter on multiple - * expressions, provide each separate expression within parentheses. For example: ``` - * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each - * expression is an `AND` expression. However, you can include `AND` and `OR` expressions - * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular - * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- - * parenthesized expression with or without quotes or against multiple parenthesized - * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted - * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne - * "literal")` The literal value is interpreted as a regular expression using Google RE2 - * library syntax. The literal value must match the entire field. For example, to filter for - * instances that do not end with name "instance", you would use `name ne .*instance`. You - * cannot combine constraints on multiple fields using regular expressions. - */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + /** Name of the InterconnectAttachmentGroup resource to delete. */ + public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String requestId; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getRequestId() { + return requestId; } /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + } + /** + * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Get result = new Get(project, interconnectAttachmentGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroup.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the InterconnectAttachmentGroup resource to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the InterconnectAttachmentGroup resource to return. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the InterconnectAttachmentGroup resource to return. */ + public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. + * + * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @return the request + */ + public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + GetOperationalStatus result = new GetOperationalStatus(project, interconnectAttachmentGroup); + initialize(result); + return result; + } + + public class GetOperationalStatus extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. + * + * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation.

{@link GetOperationalStatus#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @since 1.13 + */ + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsGetOperationalStatusResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); + } + + @Override + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); + } + + @Override + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); + } + + @Override + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); + } + + @Override + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); + } + + @Override + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); + } + + @Override + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); + } + + @Override + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetOperationalStatus setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the interconnectAttachmentGroup resource to query. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the interconnectAttachmentGroup resource to query. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the interconnectAttachmentGroup resource to query. */ + public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + return this; + } + + @Override + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); + } + } + /** + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. + * + * Create a request for the method "interconnectAttachmentGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. + * + * Create a request for the method "interconnectAttachmentGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the InterconnectAttachmentGroups for a project in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Lists the InterconnectAttachmentGroups for a project in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. + * This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * + * Create a request for the method "interconnectAttachmentGroups.patch". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectAttachmentGroup, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified InterconnectAttachmentGroup resource with the data included in the + * request. This method supports PATCH semantics and uses JSON merge patch format and processing + * rules. + * + * Create a request for the method "interconnectAttachmentGroups.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Patch setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the InterconnectAttachmentGroup resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the InterconnectAttachmentGroup resource to patch. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the InterconnectAttachmentGroup resource to patch. */ + public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectAttachments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectAttachments interconnectAttachments() { + return new InterconnectAttachments(); + } + + /** + * The "interconnectAttachments" collection of methods. + */ + public class InterconnectAttachments { + + /** + * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends + * that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "interconnectAttachments.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends + * that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "interconnectAttachments.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public AggregatedList setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, interconnectAttachment); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to delete. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to delete. */ + public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Get result = new Get(project, region, interconnectAttachment); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to return. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to return. */ + public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. + * + * Create a request for the method "interconnectAttachments.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. + * + * Create a request for the method "interconnectAttachments.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of interconnect attachments contained within the specified region. + * + * Create a request for the method "interconnectAttachments.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves the list of interconnect attachments contained within the specified region. + * + * Create a request for the method "interconnectAttachments.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @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); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. If you want to use AIP-160, your expression must specify the field name, an operator, + and the value that you want to use for filtering. The value must be a string, a number, or a + boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you + are filtering Compute Engine instances, you can exclude instances named `example-instance` by + specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has + been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You + can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + to include instances only if they are not scheduled for automatic restarts. You can use filtering + on nested fields to filter based on resource labels. To filter on multiple expressions, provide + each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, + you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel + Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you + want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a + single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The + literal value is interpreted as a regular expression using Google RE2 library syntax. The literal + value must match the entire field. For example, to filter for instances that do not end with name + "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields + using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. If you want to use AIP-160, your expression + * must specify the field name, an operator, and the value that you want to use for filtering. + * The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, + * `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, + * you can exclude instances named `example-instance` by specifying `name != example- + * instance`. The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also + * filter nested fields. For example, you could specify `scheduling.automaticRestart = false` + * to include instances only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter on multiple + * expressions, provide each separate expression within parentheses. For example: ``` + * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each + * expression is an `AND` expression. However, you can include `AND` and `OR` expressions + * explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular + * expression, use the `eq` (equal) or `ne` (not equal) operator against a single un- + * parenthesized expression with or without quotes or against multiple parenthesized + * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted + * literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne + * "literal")` The literal value is interpreted as a regular expression using Google RE2 + * library syntax. The literal value must match the entire field. For example, to filter for + * instances that do not end with name "instance", you would use `name ne .*instance`. You + * cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. You can also sort results in descending order based on the creation + timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the + `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is returned first. Currently, only sorting + by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. You can also sort results in descending order based on + * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based + * on the `creationTimestamp` field in reverse chronological order (newest result first). Use + * this to sort resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. For example, when partial success behavior is enabled, aggregatedList for a single + zone scope either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. For example, when partial success behavior is enabled, + * aggregatedList for a single zone scope either returns all resources in the zone or no + * resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified interconnect attachment with the data included in the request. This method + * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + * Create a request for the method "interconnectAttachments.patch". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, interconnectAttachment, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified interconnect attachment with the data included in the request. This + * method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + * Create a request for the method "interconnectAttachments.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Patch setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to patch. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to patch. */ + public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "interconnectAttachments.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "interconnectAttachments.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

+ * {@link + * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectGroups interconnectGroups() { + return new InterconnectGroups(); + } + + /** + * The "interconnectGroups" collection of methods. + */ + public class InterconnectGroups { + + /** + * Create Interconnects with redundancy by creating them in a specified interconnect group. + * + * Create a request for the method "interconnectGroups.createMembers". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @return the request + */ + public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) throws java.io.IOException { + CreateMembers result = new CreateMembers(project, interconnectGroup, content); + initialize(result); + return result; + } + + public class CreateMembers extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Create Interconnects with redundancy by creating them in a specified interconnect group. + * + * Create a request for the method "interconnectGroups.createMembers". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation.

+ * {@link CreateMembers#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *

+ * + * @param project Project ID for this request. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @since 1.13 + */ + protected CreateMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); + } + + @Override + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); + } + + @Override + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); + } + + @Override + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); + } + + @Override + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); + } + + @Override + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); + } + + @Override + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); + } + + @Override + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); + } + + @Override + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); + } + + @Override + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public CreateMembers setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the group resource to create members for. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the group resource to create members for. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the group resource to create members for. */ + public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + return this; + } + + @Override + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); + } + } + /** + * Deletes the specified InterconnectGroup in the given scope + * + * Create a request for the method "interconnectGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified InterconnectGroup in the given scope + * + * Create a request for the method "interconnectGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the InterconnectGroup resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the InterconnectGroup resource to delete. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the InterconnectGroup resource to delete. */ + public Delete setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String requestId; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. You can also sort results in descending order based on the creation - timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the - `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is returned first. Currently, only sorting - by `name` or `creationTimestamp desc` is supported. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified InterconnectGroup resource in the given scope. + * + * Create a request for the method "interconnectGroups.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Get result = new Get(project, interconnectGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified InterconnectGroup resource in the given scope. + * + * Create a request for the method "interconnectGroups.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroup.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. You can also sort results in descending order based on - * the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based - * on the `creationTimestamp` field in reverse chronological order (newest result first). Use - * this to sort resources like operations so that the newest operation is returned first. - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String project; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. For example, when partial success behavior is enabled, aggregatedList for a single - zone scope either returns all resources in the zone or no resources, with an error code. + /** Project ID for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getProject() { + return project; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. For example, when partial success behavior is enabled, - * aggregatedList for a single zone scope either returns all resources in the zone or no - * resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name of the InterconnectGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String interconnectGroup; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name of the InterconnectGroup resource to return. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + /** Name of the InterconnectGroup resource to return. */ + public Get setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified interconnect attachment. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectAttachments.delete". + * Create a request for the method "interconnectGroups.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @param resource Name or id of the resource for this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, interconnectAttachment); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified interconnect attachment. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectAttachments.delete". + * Create a request for the method "interconnectGroups.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -67100,7 +71076,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -67110,158 +71086,104 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the interconnect attachment to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String resource; - /** Name of the interconnect attachment to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect attachment to delete. */ - public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer optionsRequestedPolicyVersion; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified interconnect attachment. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "interconnectAttachments.get". + * Create a request for the method "interconnectGroups.getOperationalStatus". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Get result = new Get(project, region, interconnectAttachment); + public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + GetOperationalStatus result = new GetOperationalStatus(project, interconnectGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified interconnect attachment. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "interconnectAttachments.get". + * Create a request for the method "interconnectGroups.getOperationalStatus". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation.

{@link GetOperationalStatus#initialize(com.google.api.client.googleapis.services + * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.class); + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsGetOperationalStatusResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -67277,63 +71199,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -67347,7 +71269,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public GetOperationalStatus setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -67357,88 +71279,63 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the interconnect attachment to return. */ + /** Name of the interconnectGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectGroup; - /** Name of the interconnect attachment to return. + /** Name of the interconnectGroup resource to query. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect attachment to return. */ - public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name of the interconnectGroup resource to query. */ + public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + this.interconnectGroup = interconnectGroup; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); } } /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "interconnectAttachments.insert". + * Create a request for the method "interconnectGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters + * that are included in the request. * - * Create a request for the method "interconnectAttachments.insert". + * Create a request for the method "interconnectGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -67446,11 +71343,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -67458,12 +71354,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -67547,27 +71437,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -67576,7 +71445,7 @@ public Insert setRegion(java.lang.String region) { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -67587,7 +71456,8 @@ public Insert setRegion(java.lang.String region) { make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -67601,66 +71471,46 @@ public java.lang.String getRequestId() { * check if original operation with the same request ID was received, and if so, will ignore * the second request. This prevents clients from accidentally creating duplicate commitments. * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * Create a request for the method "interconnectGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * Create a request for the method "interconnectGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -67668,23 +71518,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -67759,43 +71602,22 @@ public List setUserIp(java.lang.String userIp) { /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public List setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String project; - /** Name of the region for this request. + /** Project ID for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getProject() { + return project; } - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** Project ID for this request. */ + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = region; + this.project = project; return this; } @@ -68013,44 +71835,40 @@ public List set(String parameterName, Object value) { } } /** - * Updates the specified interconnect attachment with the data included in the request. This method - * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "interconnectAttachments.patch". + * Create a request for the method "interconnectGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, interconnectAttachment, content); + public Patch patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectGroup, content); initialize(result); return result; } public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified interconnect attachment with the data included in the request. This - * method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and uses JSON merge patch format and processing rules. * - * Create a request for the method "interconnectAttachments.patch". + * Create a request for the method "interconnectGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link @@ -68058,12 +71876,11 @@ public class Patch extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + protected Patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) { super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -68071,16 +71888,10 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -68136,13 +71947,238 @@ public Patch setUploadType(java.lang.String uploadType) { } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Patch setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the InterconnectGroup resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the InterconnectGroup resource to patch. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the InterconnectGroup resource to patch. */ + public Patch setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -68156,7 +72192,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -68166,225 +72202,151 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the interconnect attachment to patch. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String resource; - /** Name of the interconnect attachment to patch. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect attachment to patch. */ - public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachments.setLabels". + * Create a request for the method "interconnectGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachments.setLabels". + * Create a request for the method "interconnectGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

* * @param project Project ID for this request. - * @param region The region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -68398,101 +72360,40 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, the server can - * check if original operation with the same request ID was received, and if so, will ignore - * the second request. This prevents clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is not supported ( - * 00000000-0000-0000-0000-000000000000). - */ - public SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } @@ -73120,6 +77021,231 @@ public TestIamPermissions set(String parameterName, Object value) { return (TestIamPermissions) super.set(parameterName, value); } } + /** + * Updates a License resource in the specified project. *Caution* This resource is intended for use + * only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenses.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) throws java.io.IOException { + Update result = new Update(project, license, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern LICENSE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a License resource in the specified project. *Caution* This resource is intended for + * use only by third-party partners who are creating Cloud Marketplace images. + * + * Create a request for the method "licenses.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Update setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The license name for this request. */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** The license name for this request. + */ + public java.lang.String getLicense() { + return license; + } + + /** The license name for this request. */ + public Update setLicense(java.lang.String license) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.license = license; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server can + * check if original operation with the same request ID was received, and if so, will ignore + * the second request. This prevents clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is not supported ( + * 00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } } diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java index 168187d4023..ce88ddf2ece 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -103,6 +103,15 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String kind; + /** + * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. If + * loadBalancingScheme is not specified, the backend bucket can be used by classic global external + * load balancers, or global application external load balancers, or both. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadBalancingScheme; + /** * Name of the resource. Provided by the client when the resource is created. The name must be * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters @@ -304,6 +313,27 @@ public BackendBucket setKind(java.lang.String kind) { return this; } + /** + * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. If + * loadBalancingScheme is not specified, the backend bucket can be used by classic global external + * load balancers, or global application external load balancers, or both. + * @return value or {@code null} for none + */ + public java.lang.String getLoadBalancingScheme() { + return loadBalancingScheme; + } + + /** + * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. If + * loadBalancingScheme is not specified, the backend bucket can be used by classic global external + * load balancers, or global application external load balancers, or both. + * @param loadBalancingScheme loadBalancingScheme or {@code null} for none + */ + public BackendBucket setLoadBalancingScheme(java.lang.String loadBalancingScheme) { + this.loadBalancingScheme = loadBalancingScheme; + return this; + } + /** * Name of the resource. Provided by the client when the resource is created. The name must be * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java index 6110b300fba..8bd13cb3efe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -107,7 +107,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * The value may be {@code null}. @@ -327,7 +327,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson * balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host * selection times. For more information about Maglev, see * https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional - * backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and + * backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and * load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the * load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If * sessionAffinity is not configured—that is, if session affinity remains at the default value of @@ -385,7 +385,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson * The URL of the network to which this backend service belongs. This field must be set for * Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External * Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only - * be specified when the load balancing scheme is set to INTERNAL. + * be specified when the load balancing scheme is set to INTERNAL, or when the load balancing + * scheme is set to EXTERNAL and haPolicy fastIpMove is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -407,9 +408,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson * managed regional API endpoints or managed services published using Private Service Connect * Applicable backend service types can be: - A global backend service with the * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to - * INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the - * backend service is referenced by a URL map that is bound to target gRPC proxy that has + * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set + * to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when + * the backend service is referenced by a URL map that is bound to target gRPC proxy that has * validateForProxyless field set to true. * The value may be {@code null}. */ @@ -438,10 +439,10 @@ public final class BackendService extends com.google.api.client.json.GenericJson /** * The protocol this BackendService uses to communicate with backends. Possible values are HTTP, - * HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director - * configuration. Refer to the documentation for the load balancers or for Traffic Director for - * more information. Must be set to GRPC when the backend service is referenced by a URL map that - * is bound to target gRPC proxy. + * HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic + * Director configuration. Refer to the documentation for the load balancers or for Traffic + * Director for more information. Must be set to GRPC when the backend service is referenced by a + * URL map that is bound to target gRPC proxy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -682,7 +683,7 @@ public BackendService setConnectionTrackingPolicy(BackendServiceConnectionTracki * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * @return value or {@code null} for none @@ -698,7 +699,7 @@ public ConsistentHashLoadBalancerSettings getConsistentHash() { * are added/removed from the destination service. This field specifies parameters that control * consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or * RING_HASH. This field is applicable to either: - A regional backend service with the - * service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to + * service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to * INTERNAL_SELF_MANAGED. * @param consistentHash consistentHash or {@code null} for none @@ -1211,7 +1212,7 @@ public BackendService setLocalityLbPolicies(java.util.List 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 Compute Engine 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 BackendServiceHAPolicyLeader extends com.google.api.client.json.GenericJson { + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's + * backendGroup must already be specified as a backend of this backend service. Removing a backend + * that is designated as the leader's backendGroup is not permitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendGroup; + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. This + * network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup + * until the leader is updated with another network endpoint, or the leader is removed from the + * haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint; + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's + * backendGroup must already be specified as a backend of this backend service. Removing a backend + * that is designated as the leader's backendGroup is not permitted. + * @return value or {@code null} for none + */ + public java.lang.String getBackendGroup() { + return backendGroup; + } + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's + * backendGroup must already be specified as a backend of this backend service. Removing a backend + * that is designated as the leader's backendGroup is not permitted. + * @param backendGroup backendGroup or {@code null} for none + */ + public BackendServiceHAPolicyLeader setBackendGroup(java.lang.String backendGroup) { + this.backendGroup = backendGroup; + return this; + } + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. This + * network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup + * until the leader is updated with another network endpoint, or the leader is removed from the + * haPolicy. + * @return value or {@code null} for none + */ + public BackendServiceHAPolicyLeaderNetworkEndpoint getNetworkEndpoint() { + return networkEndpoint; + } + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. This + * network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup + * until the leader is updated with another network endpoint, or the leader is removed from the + * haPolicy. + * @param networkEndpoint networkEndpoint or {@code null} for none + */ + public BackendServiceHAPolicyLeader setNetworkEndpoint(BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint) { + this.networkEndpoint = networkEndpoint; + return this; + } + + @Override + public BackendServiceHAPolicyLeader set(String fieldName, Object value) { + return (BackendServiceHAPolicyLeader) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicyLeader clone() { + return (BackendServiceHAPolicyLeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java new file mode 100644 index 00000000000..f29b1258c7c --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java @@ -0,0 +1,75 @@ +/* + * 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.compute.model; + +/** + * Model definition for BackendServiceHAPolicyLeaderNetworkEndpoint. + * + *

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 Compute Engine 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 BackendServiceHAPolicyLeaderNetworkEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 + * characters long, and comply with RFC1035. Authorization requires the following IAM permission + * on the specified resource instance: compute.instances.use + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 + * characters long, and comply with RFC1035. Authorization requires the following IAM permission + * on the specified resource instance: compute.instances.use + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 + * characters long, and comply with RFC1035. Authorization requires the following IAM permission + * on the specified resource instance: compute.instances.use + * @param instance instance or {@code null} for none + */ + public BackendServiceHAPolicyLeaderNetworkEndpoint setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + @Override + public BackendServiceHAPolicyLeaderNetworkEndpoint set(String fieldName, Object value) { + return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicyLeaderNetworkEndpoint clone() { + return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java index 98b97d6e18f..9c511221bcb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -142,6 +142,14 @@ public final class Firewall extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String network; + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallParams params; + /** * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. @@ -458,6 +466,25 @@ public Firewall setNetwork(java.lang.String network) { return this; } + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public FirewallParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Firewall setParams(FirewallParams params) { + this.params = params; + return this; + } + /** * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallParams.java new file mode 100644 index 00000000000..3efadabdf18 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallParams.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Additional firewall parameters. + * + *

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 Compute Engine 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 FirewallParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public FirewallParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public FirewallParams set(String fieldName, Object value) { + return (FirewallParams) super.set(fieldName, value); + } + + @Override + public FirewallParams clone() { + return (FirewallParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index 16f758961c8..5f2842c80d9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -138,6 +138,33 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String description; + /** + * Specifies the canary migration state for the backend buckets attached to this forwarding rule. + * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration + * from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be + * changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. + * Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets + * attached to this forwarding rule by percentage using + * externalManagedBackendBucketMigrationTestingPercentage. Rolling back a migration requires the + * states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL + * requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + * TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be + * used to migrate all traffic back to EXTERNAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalManagedBackendBucketMigrationState; + + /** + * Determines the fraction of requests to backend buckets that should be processed by the global + * external Application Load Balancer. The value of this field must be in the range [0, 100]. This + * value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when + * using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float externalManagedBackendBucketMigrationTestingPercentage; + /** * Fingerprint of this resource. A hash of the contents stored in this object. This field is used * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the @@ -646,6 +673,66 @@ public ForwardingRule setDescription(java.lang.String description) { return this; } + /** + * Specifies the canary migration state for the backend buckets attached to this forwarding rule. + * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration + * from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be + * changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. + * Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets + * attached to this forwarding rule by percentage using + * externalManagedBackendBucketMigrationTestingPercentage. Rolling back a migration requires the + * states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL + * requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + * TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be + * used to migrate all traffic back to EXTERNAL. + * @return value or {@code null} for none + */ + public java.lang.String getExternalManagedBackendBucketMigrationState() { + return externalManagedBackendBucketMigrationState; + } + + /** + * Specifies the canary migration state for the backend buckets attached to this forwarding rule. + * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration + * from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be + * changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. + * Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets + * attached to this forwarding rule by percentage using + * externalManagedBackendBucketMigrationTestingPercentage. Rolling back a migration requires the + * states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL + * requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + * TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be + * used to migrate all traffic back to EXTERNAL. + * @param externalManagedBackendBucketMigrationState externalManagedBackendBucketMigrationState or {@code null} for none + */ + public ForwardingRule setExternalManagedBackendBucketMigrationState(java.lang.String externalManagedBackendBucketMigrationState) { + this.externalManagedBackendBucketMigrationState = externalManagedBackendBucketMigrationState; + return this; + } + + /** + * Determines the fraction of requests to backend buckets that should be processed by the global + * external Application Load Balancer. The value of this field must be in the range [0, 100]. This + * value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when + * using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE. + * @return value or {@code null} for none + */ + public java.lang.Float getExternalManagedBackendBucketMigrationTestingPercentage() { + return externalManagedBackendBucketMigrationTestingPercentage; + } + + /** + * Determines the fraction of requests to backend buckets that should be processed by the global + * external Application Load Balancer. The value of this field must be in the range [0, 100]. This + * value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when + * using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE. + * @param externalManagedBackendBucketMigrationTestingPercentage externalManagedBackendBucketMigrationTestingPercentage or {@code null} for none + */ + public ForwardingRule setExternalManagedBackendBucketMigrationTestingPercentage(java.lang.Float externalManagedBackendBucketMigrationTestingPercentage) { + this.externalManagedBackendBucketMigrationTestingPercentage = externalManagedBackendBucketMigrationTestingPercentage; + return this; + } + /** * Fingerprint of this resource. A hash of the contents stored in this object. This field is used * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java index e8c1e9c0e0b..c547fafd7ed 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -117,6 +117,14 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List interconnectAttachments; + /** + * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and + * items are unique. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectGroups; + /** * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical @@ -496,6 +504,25 @@ public Interconnect setInterconnectAttachments(java.util.List return this; } + /** + * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and + * items are unique. + * @return value or {@code null} for none + */ + public java.util.List getInterconnectGroups() { + return interconnectGroups; + } + + /** + * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and + * items are unique. + * @param interconnectGroups interconnectGroups or {@code null} for none + */ + public Interconnect setInterconnectGroups(java.util.List interconnectGroups) { + this.interconnectGroups = interconnectGroups; + return this; + } + /** * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 67cda46c77e..8cc257b42dc 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -38,6 +38,13 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; + /** + * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachmentGroup; + /** * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner @@ -241,7 +248,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -419,6 +427,23 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { return this; } + /** + * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * @return value or {@code null} for none + */ + public java.lang.String getAttachmentGroup() { + return attachmentGroup; + } + + /** + * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * @param attachmentGroup attachmentGroup or {@code null} for none + */ + public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGroup) { + this.attachmentGroup = attachmentGroup; + return this; + } + /** * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner @@ -927,7 +952,8 @@ public InterconnectAttachment setLabels(java.util.Map /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * @return value or {@code null} for none */ public java.lang.Integer getMtu() { @@ -936,7 +962,8 @@ public java.lang.Integer getMtu() { /** * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Only 1440 and 1500 are allowed. If not specified, the value will default to 1440. + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. * @param mtu mtu or {@code null} for none */ public InterconnectAttachment setMtu(java.lang.Integer mtu) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java new file mode 100644 index 00000000000..f248d66b973 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java @@ -0,0 +1,358 @@ +/* + * 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.compute.model; + +/** + * An interconnect attachment group resource allows customers to create, analyze, and expand highly + * available deployments. + * + *

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 Compute Engine 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 InterconnectAttachmentGroup extends com.google.api.client.json.GenericJson { + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map attachments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured configured; + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupIntent intent; + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** + * [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupLogicalStructure logicalStructure; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * @return value or {@code null} for none + */ + public java.util.Map getAttachments() { + return attachments; + } + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroup setAttachments(java.util.Map attachments) { + this.attachments = attachments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectAttachmentGroup setConfigured(InterconnectAttachmentGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectAttachmentGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectAttachmentGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroup setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @param id id or {@code null} for none + */ + public InterconnectAttachmentGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectAttachmentGroup setIntent(InterconnectAttachmentGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * @param interconnectGroup interconnectGroup or {@code null} for none + */ + public InterconnectAttachmentGroup setInterconnectGroup(java.lang.String interconnectGroup) { + this.interconnectGroup = interconnectGroup; + return this; + } + + /** + * [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructure getLogicalStructure() { + return logicalStructure; + } + + /** + * @param logicalStructure logicalStructure or {@code null} for none + */ + public InterconnectAttachmentGroup setLogicalStructure(InterconnectAttachmentGroupLogicalStructure logicalStructure) { + this.logicalStructure = logicalStructure; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public InterconnectAttachmentGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectAttachmentGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public InterconnectAttachmentGroup set(String fieldName, Object value) { + return (InterconnectAttachmentGroup) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroup clone() { + return (InterconnectAttachmentGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java new file mode 100644 index 00000000000..25dd80300b6 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java @@ -0,0 +1,63 @@ +/* + * 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.compute.model; + +/** + * An Attachment in this AttachmentGroup. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupAttachment extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAttachment() { + return attachment; + } + + /** + * @param attachment attachment or {@code null} for none + */ + public InterconnectAttachmentGroupAttachment setAttachment(java.lang.String attachment) { + this.attachment = attachment; + return this; + } + + @Override + public InterconnectAttachmentGroupAttachment set(String fieldName, Object value) { + return (InterconnectAttachmentGroupAttachment) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupAttachment clone() { + return (InterconnectAttachmentGroupAttachment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java new file mode 100644 index 00000000000..060c10533ee --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The redundancy this group is configured to support. The way a user queries what SLA + * their Attachment gets is by looking at this field of the Attachment's AttachmentGroup. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupConfigured extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla; + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA getAvailabilitySla() { + return availabilitySla; + } + + /** + * @param availabilitySla availabilitySla or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured setAvailabilitySla(InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla) { + this.availabilitySla = availabilitySla; + return this; + } + + @Override + public InterconnectAttachmentGroupConfigured set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfigured) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfigured clone() { + return (InterconnectAttachmentGroupConfigured) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java new file mode 100644 index 00000000000..bf9f54a3cb0 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java @@ -0,0 +1,85 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Which SLA this group is configured to support, and why this group does or does not + * meet that SLA's requirements. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupConfiguredAvailabilitySLA extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveSla; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List intendedSlaBlockers; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveSla() { + return effectiveSla; + } + + /** + * @param effectiveSla effectiveSla or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA setEffectiveSla(java.lang.String effectiveSla) { + this.effectiveSla = effectiveSla; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntendedSlaBlockers() { + return intendedSlaBlockers; + } + + /** + * @param intendedSlaBlockers intendedSlaBlockers or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA setIntendedSlaBlockers(java.util.List intendedSlaBlockers) { + this.intendedSlaBlockers = intendedSlaBlockers; + return this; + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLA set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLA clone() { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java new file mode 100644 index 00000000000..d87347f87c7 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java @@ -0,0 +1,229 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Reasons why configuration.availabilitySLA.sla differs from intent.availabilitySLA. + * This list is empty if and only if those are the same. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blockerType; + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationLink; + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * [Output Only] Regions used to explain this blocker in more detail. These are region names + * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) + * but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regions; + + /** + * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or + * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * @return value or {@code null} for none + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setAttachments(java.util.List attachments) { + this.attachments = attachments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBlockerType() { + return blockerType; + } + + /** + * @param blockerType blockerType or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setBlockerType(java.lang.String blockerType) { + this.blockerType = blockerType; + return this; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationLink() { + return documentationLink; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @param documentationLink documentationLink or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setDocumentationLink(java.lang.String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @param explanation explanation or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * @param metros metros or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * [Output Only] Regions used to explain this blocker in more detail. These are region names + * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) + * but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getRegions() { + return regions; + } + + /** + * [Output Only] Regions used to explain this blocker in more detail. These are region names + * formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) + * but does not apply to others. + * @param regions regions or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setRegions(java.util.List regions) { + this.regions = regions; + return this; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or + * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or + * "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + * @param zones zones or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers clone() { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java new file mode 100644 index 00000000000..6ae6fcedd40 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * The user's intent for this AttachmentGroup. This is the only required field besides the name that + * must be specified on group creation. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupIntent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilitySla; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilitySla() { + return availabilitySla; + } + + /** + * @param availabilitySla availabilitySla or {@code null} for none + */ + public InterconnectAttachmentGroupIntent setAvailabilitySla(java.lang.String availabilitySla) { + this.availabilitySla = availabilitySla; + return this; + } + + @Override + public InterconnectAttachmentGroupIntent set(String fieldName, Object value) { + return (InterconnectAttachmentGroupIntent) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupIntent clone() { + return (InterconnectAttachmentGroupIntent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java new file mode 100644 index 00000000000..2301e034dc1 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * [Output Only] An analysis of the logical layout of Attachments in this group. Every Attachment in + * the group is shown once in this structure. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructure extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regions; + + /** + * @return value or {@code null} for none + */ + public java.util.List getRegions() { + return regions; + } + + /** + * @param regions regions or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructure setRegions(java.util.List regions) { + this.regions = regions; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructure set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructure) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructure clone() { + return (InterconnectAttachmentGroupLogicalStructure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java new file mode 100644 index 00000000000..f267df5464a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -0,0 +1,87 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The regions Attachments in this group are in. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegion extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * [Output Only] The name of a region, like "us-central1". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * @param metros metros or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * [Output Only] The name of a region, like "us-central1". + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] The name of a region, like "us-central1". + * @param region region or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegion setRegion(java.lang.String region) { + this.region = region; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegion set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegion) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegion clone() { + return (InterconnectAttachmentGroupLogicalStructureRegion) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java new file mode 100644 index 00000000000..bba3ca5148d --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The metros of Attachments in this group in this region. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegionMetro extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of an Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metro; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * @param facilities facilities or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of an Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getMetro() { + return metro; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of an Interconnect. + * @param metro metro or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetro setMetro(java.lang.String metro) { + this.metro = metro; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetro set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetro clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java new file mode 100644 index 00000000000..41cf84fc4f2 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -0,0 +1,87 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The facilities used for this group's Attachments' Interconnects. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The name of a facility, like "iad-1234". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] The name of a facility, like "iad-1234". + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * [Output Only] The name of a facility, like "iad-1234". + * @param facility facility or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * @param zones zones or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java new file mode 100644 index 00000000000..aa732b0c6b9 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -0,0 +1,94 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The zones that Attachments in this group are present in, in the given facilities. + * This is inherited from their Interconnects. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in + * the given facility and metro. Every Attachment in the AG has such an entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachments; + + /** + * [Output Only] The name of a zone, either "zone1" or "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in + * the given facility and metro. Every Attachment in the AG has such an entry. + * @return value or {@code null} for none + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + * [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in + * the given facility and metro. Every Attachment in the AG has such an entry. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAttachments(java.util.List attachments) { + this.attachments = attachments; + return this; + } + + /** + * [Output Only] The name of a zone, either "zone1" or "zone2". + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The name of a zone, either "zone1" or "zone2". + * @param zone zone or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java new file mode 100644 index 00000000000..38eb36dc142 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Response for the InterconnectAttachmentGroupsGetOperationalStatusResponse. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupsOperationalStatus result; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectAttachmentGroupsGetOperationalStatusResponse setResult(InterconnectAttachmentGroupsOperationalStatus result) { + this.result = result; + return this; + } + + @Override + public InterconnectAttachmentGroupsGetOperationalStatusResponse set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsGetOperationalStatusResponse clone() { + return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java new file mode 100644 index 00000000000..dedd1c2723e --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -0,0 +1,422 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectAttachmentGroupsListResponse. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of InterconnectAttachmentGroup resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider InterconnectAttachmentGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(InterconnectAttachmentGroup.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectAttachmentGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectAttachmentGroup resources. + * @param items items or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectAttachmentGroupsListResponse set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsListResponse) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsListResponse clone() { + return (InterconnectAttachmentGroupsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for InterconnectAttachmentGroupsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java new file mode 100644 index 00000000000..f1ab8505df3 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -0,0 +1,153 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectAttachmentGroupsOperationalStatus. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsOperationalStatus extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachmentStatuses; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured configured; + + /** + * Summarizes the status of the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupStatus; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupIntent intent; + + /** + * The operational state of the group, including only active Attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured operational; + + /** + * @return value or {@code null} for none + */ + public java.util.List getAttachmentStatuses() { + return attachmentStatuses; + } + + /** + * @param attachmentStatuses attachmentStatuses or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setAttachmentStatuses(java.util.List attachmentStatuses) { + this.attachmentStatuses = attachmentStatuses; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectAttachmentGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Summarizes the status of the group. + * @return value or {@code null} for none + */ + public java.lang.String getGroupStatus() { + return groupStatus; + } + + /** + * Summarizes the status of the group. + * @param groupStatus groupStatus or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { + this.groupStatus = groupStatus; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttachmentGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * The operational state of the group, including only active Attachments. + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getOperational() { + return operational; + } + + /** + * The operational state of the group, including only active Attachments. + * @param operational operational or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectAttachmentGroupsOperationalStatus set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsOperationalStatus) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsOperationalStatus clone() { + return (InterconnectAttachmentGroupsOperationalStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java new file mode 100644 index 00000000000..f4fd1b65a86 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -0,0 +1,153 @@ +/* + * 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.compute.model; + +/** + * The status of one Attachment in the group. List order is arbitrary. + * + *

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 Compute Engine 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 InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { + + /** + * Whether this Attachment is enabled. This becomes false when the customer drains their + * Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * The URL of the Attachment being described. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if + * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the + * analysis that generates operational.availabilitySLA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String isActive; + + /** + * Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses + * available in the Pantheon UI here: + * http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Whether this Attachment is enabled. This becomes false when the customer drains their + * Attachment. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Whether this Attachment is enabled. This becomes false when the customer drains their + * Attachment. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * The URL of the Attachment being described. + * @return value or {@code null} for none + */ + public java.lang.String getAttachment() { + return attachment; + } + + /** + * The URL of the Attachment being described. + * @param attachment attachment or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { + this.attachment = attachment; + return this; + } + + /** + * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if + * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the + * analysis that generates operational.availabilitySLA. + * @return value or {@code null} for none + */ + public java.lang.String getIsActive() { + return isActive; + } + + /** + * Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if + * and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the + * analysis that generates operational.availabilitySLA. + * @param isActive isActive or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive(java.lang.String isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses + * available in the Pantheon UI here: + * http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses + * available in the Pantheon UI here: + * http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto + * @param status status or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus clone() { + return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java new file mode 100644 index 00000000000..a331d92835a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java @@ -0,0 +1,331 @@ +/* + * 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.compute.model; + +/** + * An interconnect group resource allows customers to create, analyze, and expand their redundant + * connections. + * + *

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 Compute Engine 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 InterconnectGroup extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured configured; + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by API 154. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupIntent intent; + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map interconnects; + + /** + * [Output Only] Type of the resource. Always compute#InterconnectGroup + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupPhysicalStructure physicalStructure; + + /** + * [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by API 154. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by API 154. + * @param etag etag or {@code null} for none + */ + public InterconnectGroup setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource type. The server generates this + * identifier. + * @param id id or {@code null} for none + */ + public InterconnectGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectGroup setIntent(InterconnectGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * @return value or {@code null} for none + */ + public java.util.Map getInterconnects() { + return interconnects; + } + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroup setInterconnects(java.util.Map interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * [Output Only] Type of the resource. Always compute#InterconnectGroup + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * [Output Only] Type of the resource. Always compute#InterconnectGroup + * @param kind kind or {@code null} for none + */ + public InterconnectGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public InterconnectGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupPhysicalStructure getPhysicalStructure() { + return physicalStructure; + } + + /** + * @param physicalStructure physicalStructure or {@code null} for none + */ + public InterconnectGroup setPhysicalStructure(InterconnectGroupPhysicalStructure physicalStructure) { + this.physicalStructure = physicalStructure; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public InterconnectGroup set(String fieldName, Object value) { + return (InterconnectGroup) super.set(fieldName, value); + } + + @Override + public InterconnectGroup clone() { + return (InterconnectGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java new file mode 100644 index 00000000000..48179a6cb50 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java @@ -0,0 +1,65 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The status of the group as configured. This has the same structure as the + * operational field reported by the OperationalStatus method, but does not take into account the + * operational status of each resource. + * + *

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 Compute Engine 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 InterconnectGroupConfigured extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfiguredTopologyCapability topologyCapability; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability getTopologyCapability() { + return topologyCapability; + } + + /** + * @param topologyCapability topologyCapability or {@code null} for none + */ + public InterconnectGroupConfigured setTopologyCapability(InterconnectGroupConfiguredTopologyCapability topologyCapability) { + this.topologyCapability = topologyCapability; + return this; + } + + @Override + public InterconnectGroupConfigured set(String fieldName, Object value) { + return (InterconnectGroupConfigured) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfigured clone() { + return (InterconnectGroupConfigured) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java new file mode 100644 index 00000000000..cd36e59561e --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java @@ -0,0 +1,85 @@ +/* + * 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.compute.model; + +/** + * [Output Only] How reliable this topology is configured to be, and why this group does or does not + * meet the requirements for the intended capability. + * + *

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 Compute Engine 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 InterconnectGroupConfiguredTopologyCapability extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List intendedCapabilityBlockers; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String supportedSla; + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntendedCapabilityBlockers() { + return intendedCapabilityBlockers; + } + + /** + * @param intendedCapabilityBlockers intendedCapabilityBlockers or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability setIntendedCapabilityBlockers(java.util.List intendedCapabilityBlockers) { + this.intendedCapabilityBlockers = intendedCapabilityBlockers; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getSupportedSla() { + return supportedSla; + } + + /** + * @param supportedSla supportedSla or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability setSupportedSla(java.lang.String supportedSla) { + this.supportedSla = supportedSla; + return this; + } + + @Override + public InterconnectGroupConfiguredTopologyCapability set(String fieldName, Object value) { + return (InterconnectGroupConfiguredTopologyCapability) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfiguredTopologyCapability clone() { + return (InterconnectGroupConfiguredTopologyCapability) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java new file mode 100644 index 00000000000..0f6eb082020 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java @@ -0,0 +1,226 @@ +/* + * 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.compute.model; + +/** + * [Output Only] Reasons why configuration.topologyCapability.sla differs from + * intent.topologyCapability. This list is empty if and only if those are the same. + * + *

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 Compute Engine 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 InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blockerType; + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationLink; + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * [Output Only] Interconnects used to explain this blocker in more detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic + * metros in this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or + * "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBlockerType() { + return blockerType; + } + + /** + * @param blockerType blockerType or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setBlockerType(java.lang.String blockerType) { + this.blockerType = blockerType; + return this; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationLink() { + return documentationLink; + } + + /** + * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is + * set for every type of requirement. + * @param documentationLink documentationLink or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setDocumentationLink(java.lang.String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * [Output Only] A human-readable explanation of this requirement and why it's not met. This is + * set for every type of requirement. + * @param explanation explanation or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * @param facilities facilities or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * [Output Only] Interconnects used to explain this blocker in more detail. + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * [Output Only] Interconnects used to explain this blocker in more detail. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic + * metros in this field. + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * [Output Only] Metros used to explain this blocker in more detail. These are three-letter + * lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic + * metros in this field. + * @param metros metros or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or + * "zone2". + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or + * "zone2". + * @param zones zones or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers set(String fieldName, Object value) { + return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers clone() { + return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java new file mode 100644 index 00000000000..d7b08fdbe17 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * The user's intent for this group. This is the only required field besides the name that must be + * specified on group creation. + * + *

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 Compute Engine 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 InterconnectGroupIntent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String topologyCapability; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTopologyCapability() { + return topologyCapability; + } + + /** + * @param topologyCapability topologyCapability or {@code null} for none + */ + public InterconnectGroupIntent setTopologyCapability(java.lang.String topologyCapability) { + this.topologyCapability = topologyCapability; + return this; + } + + @Override + public InterconnectGroupIntent set(String fieldName, Object value) { + return (InterconnectGroupIntent) super.set(fieldName, value); + } + + @Override + public InterconnectGroupIntent clone() { + return (InterconnectGroupIntent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java new file mode 100644 index 00000000000..8d5e817ed69 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java @@ -0,0 +1,66 @@ +/* + * 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.compute.model; + +/** + * An Interconnect in this InterconnectGroup. + * + *

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 Compute Engine 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 InterconnectGroupInterconnect extends com.google.api.client.json.GenericJson { + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectGroupInterconnect setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + @Override + public InterconnectGroupInterconnect set(String fieldName, Object value) { + return (InterconnectGroupInterconnect) super.set(fieldName, value); + } + + @Override + public InterconnectGroupInterconnect clone() { + return (InterconnectGroupInterconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java new file mode 100644 index 00000000000..95fa3028163 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java @@ -0,0 +1,64 @@ +/* + * 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.compute.model; + +/** + * [Output Only] An analysis of the physical layout of Interconnects in this group. Every + * Interconnect in the group is shown once in this structure. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructure extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * @param metros metros or {@code null} for none + */ + public InterconnectGroupPhysicalStructure setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + @Override + public InterconnectGroupPhysicalStructure set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructure) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructure clone() { + return (InterconnectGroupPhysicalStructure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java new file mode 100644 index 00000000000..1c4b44ca7c0 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The metros Interconnects in this group are in. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructureMetros extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of Interconnects underneath this. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metro; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * @param facilities facilities or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of Interconnects underneath this. + * @return value or {@code null} for none + */ + public java.lang.String getMetro() { + return metro; + } + + /** + * [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the + * first component of the location of Interconnects underneath this. + * @param metro metro or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetros setMetro(java.lang.String metro) { + this.metro = metro; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetros set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetros) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetros clone() { + return (InterconnectGroupPhysicalStructureMetros) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java new file mode 100644 index 00000000000..1a257d0706e --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java @@ -0,0 +1,90 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The facilities Interconnects in this metro are present in. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructureMetrosFacilities extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third + * component of the location of Interconnects in this facility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third + * component of the location of Interconnects in this facility. + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * [Output Only] The ID of this facility, as a numeric string like "5467". This is the third + * component of the location of Interconnects in this facility. + * @param facility facility or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilities setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * @param zones zones or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilities setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilities set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetrosFacilities) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilities clone() { + return (InterconnectGroupPhysicalStructureMetrosFacilities) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java new file mode 100644 index 00000000000..df961f862ac --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -0,0 +1,96 @@ +/* + * 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.compute.model; + +/** + * [Output Only] The zones that Interconnects in this facility are present in. + * + *

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 Compute Engine 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 InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and + * zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of + * the location of Interconnects in this facility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and + * zone. + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and + * zone. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of + * the location of Interconnects in this facility. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of + * the location of Interconnects in this facility. + * @param zone zone or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones clone() { + return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java new file mode 100644 index 00000000000..d5121dc915d --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java @@ -0,0 +1,114 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectGroupsCreateMembers. + * + *

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 Compute Engine 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 InterconnectGroupsCreateMembers extends com.google.api.client.json.GenericJson { + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String intentMismatchBehavior; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * Parameters for the Interconnects to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsCreateMembersInterconnectInput templateInterconnect; + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * @return value or {@code null} for none + */ + public java.lang.String getIntentMismatchBehavior() { + return intentMismatchBehavior; + } + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * @param intentMismatchBehavior intentMismatchBehavior or {@code null} for none + */ + public InterconnectGroupsCreateMembers setIntentMismatchBehavior(java.lang.String intentMismatchBehavior) { + this.intentMismatchBehavior = intentMismatchBehavior; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupsCreateMembers setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * Parameters for the Interconnects to create. + * @return value or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput getTemplateInterconnect() { + return templateInterconnect; + } + + /** + * Parameters for the Interconnects to create. + * @param templateInterconnect templateInterconnect or {@code null} for none + */ + public InterconnectGroupsCreateMembers setTemplateInterconnect(InterconnectGroupsCreateMembersInterconnectInput templateInterconnect) { + this.templateInterconnect = templateInterconnect; + return this; + } + + @Override + public InterconnectGroupsCreateMembers set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembers) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembers clone() { + return (InterconnectGroupsCreateMembers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java new file mode 100644 index 00000000000..6935a786c0a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java @@ -0,0 +1,378 @@ +/* + * 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.compute.model; + +/** + * LINT.IfChange + * + *

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 Compute Engine 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 InterconnectGroupsCreateMembersInterconnectInput extends com.google.api.client.json.GenericJson { + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerName; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed + * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical + * interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of + * DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectType; + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G + * Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note + * that this field indicates the speed of each of the links in the bundle, not the speed of the + * entire bundle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkType; + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nocContactEmail; + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteLocation; + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC If specified then the connection is created on MACsec capable + * hardware ports. If not specified, the default value is false, which allocates non-MACsec + * capable ports first if available. This parameter can be provided only with Interconnect INSERT. + * It isn't valid for Interconnect PATCH. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestedFeatures; + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer requestedLinkCount; + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerName() { + return customerName; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @param customerName customerName or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setCustomerName(java.lang.String customerName) { + this.customerName = customerName; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * @param facility facility or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed + * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical + * interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of + * DEDICATED. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectType() { + return interconnectType; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed + * interconnection shared between customers though a partner. - DEDICATED: A dedicated physical + * interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of + * DEDICATED. + * @param interconnectType interconnectType or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setInterconnectType(java.lang.String interconnectType) { + this.interconnectType = interconnectType; + return this; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G + * Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note + * that this field indicates the speed of each of the links in the bundle, not the speed of the + * entire bundle. + * @return value or {@code null} for none + */ + public java.lang.String getLinkType() { + return linkType; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G + * Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note + * that this field indicates the speed of each of the links in the bundle, not the speed of the + * entire bundle. + * @param linkType linkType or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setLinkType(java.lang.String linkType) { + this.linkType = linkType; + return this; + } + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + * letter, and all following characters must be a dash, lowercase letter, or digit, except the + * last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @return value or {@code null} for none + */ + public java.lang.String getNocContactEmail() { + return nocContactEmail; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @param nocContactEmail nocContactEmail or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setNocContactEmail(java.lang.String nocContactEmail) { + this.nocContactEmail = nocContactEmail; + return this; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @return value or {@code null} for none + */ + public java.lang.String getRemoteLocation() { + return remoteLocation; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @param remoteLocation remoteLocation or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRemoteLocation(java.lang.String remoteLocation) { + this.remoteLocation = remoteLocation; + return this; + } + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC If specified then the connection is created on MACsec capable + * hardware ports. If not specified, the default value is false, which allocates non-MACsec + * capable ports first if available. This parameter can be provided only with Interconnect INSERT. + * It isn't valid for Interconnect PATCH. + * @return value or {@code null} for none + */ + public java.util.List getRequestedFeatures() { + return requestedFeatures; + } + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC If specified then the connection is created on MACsec capable + * hardware ports. If not specified, the default value is false, which allocates non-MACsec + * capable ports first if available. This parameter can be provided only with Interconnect INSERT. + * It isn't valid for Interconnect PATCH. + * @param requestedFeatures requestedFeatures or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRequestedFeatures(java.util.List requestedFeatures) { + this.requestedFeatures = requestedFeatures; + return this; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @return value or {@code null} for none + */ + public java.lang.Integer getRequestedLinkCount() { + return requestedLinkCount; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @param requestedLinkCount requestedLinkCount or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRequestedLinkCount(java.lang.Integer requestedLinkCount) { + this.requestedLinkCount = requestedLinkCount; + return this; + } + + @Override + public InterconnectGroupsCreateMembersInterconnectInput set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembersInterconnectInput) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembersInterconnectInput clone() { + return (InterconnectGroupsCreateMembersInterconnectInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java new file mode 100644 index 00000000000..d3beb89c3a8 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java @@ -0,0 +1,63 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectGroupsCreateMembersRequest. + * + *

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 Compute Engine 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 InterconnectGroupsCreateMembersRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsCreateMembers request; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupsCreateMembers getRequest() { + return request; + } + + /** + * @param request request or {@code null} for none + */ + public InterconnectGroupsCreateMembersRequest setRequest(InterconnectGroupsCreateMembers request) { + this.request = request; + return this; + } + + @Override + public InterconnectGroupsCreateMembersRequest set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembersRequest) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembersRequest clone() { + return (InterconnectGroupsCreateMembersRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java new file mode 100644 index 00000000000..97edd563ae3 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Response for the InterconnectGroupsGetOperationalStatusResponse. + * + *

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 Compute Engine 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 InterconnectGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsOperationalStatus result; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupsOperationalStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectGroupsGetOperationalStatusResponse setResult(InterconnectGroupsOperationalStatus result) { + this.result = result; + return this; + } + + @Override + public InterconnectGroupsGetOperationalStatusResponse set(String fieldName, Object value) { + return (InterconnectGroupsGetOperationalStatusResponse) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsGetOperationalStatusResponse clone() { + return (InterconnectGroupsGetOperationalStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java new file mode 100644 index 00000000000..20da54d0218 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -0,0 +1,422 @@ +/* + * 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.compute.model; + +/** + * Model definition for InterconnectGroupsListResponse. + * + *

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 Compute Engine 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 InterconnectGroupsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of InterconnectGroup resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider InterconnectGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(InterconnectGroup.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectGroupsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InterconnectGroupsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectGroup resources. + * @param items items or {@code null} for none + */ + public InterconnectGroupsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public InterconnectGroupsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InterconnectGroupsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectGroupsListResponse set(String fieldName, Object value) { + return (InterconnectGroupsListResponse) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsListResponse clone() { + return (InterconnectGroupsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for InterconnectGroupsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java new file mode 100644 index 00000000000..80d27d471e5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -0,0 +1,159 @@ +/* + * 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.compute.model; + +/** + * Request to get the status of the interconnect group with extra detail. + * + *

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 Compute Engine 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 InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { + + /** + * The configuration analysis, as returned by Get. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured configured; + + /** + * Summarizes the status of the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupStatus; + + /** + * The intent of the resource, as returned by Get. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupIntent intent; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectStatuses; + + /** + * The operational state of the group, including only active Interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured operational; + + /** + * The configuration analysis, as returned by Get. + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getConfigured() { + return configured; + } + + /** + * The configuration analysis, as returned by Get. + * @param configured configured or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Summarizes the status of the group. + * @return value or {@code null} for none + */ + public java.lang.String getGroupStatus() { + return groupStatus; + } + + /** + * Summarizes the status of the group. + * @param groupStatus groupStatus or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { + this.groupStatus = groupStatus; + return this; + } + + /** + * The intent of the resource, as returned by Get. + * @return value or {@code null} for none + */ + public InterconnectGroupIntent getIntent() { + return intent; + } + + /** + * The intent of the resource, as returned by Get. + * @param intent intent or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterconnectStatuses() { + return interconnectStatuses; + } + + /** + * @param interconnectStatuses interconnectStatuses or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.List interconnectStatuses) { + this.interconnectStatuses = interconnectStatuses; + return this; + } + + /** + * The operational state of the group, including only active Interconnects. + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getOperational() { + return operational; + } + + /** + * The operational state of the group, including only active Interconnects. + * @param operational operational or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectGroupsOperationalStatus set(String fieldName, Object value) { + return (InterconnectGroupsOperationalStatus) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsOperationalStatus clone() { + return (InterconnectGroupsOperationalStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java new file mode 100644 index 00000000000..49fd3a7746a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -0,0 +1,138 @@ +/* + * 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.compute.model; + +/** + * The status of one Interconnect in the group. The order is arbitrary. + * + *

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 Compute Engine 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 InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { + + /** + * Whether the Interconnect is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnostics diagnostics; + + /** + * The URL of the Interconnect being described. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * Whether this interconnect is participating in the redundant configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String isActive; + + /** + * Whether the Interconnect is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Whether the Interconnect is enabled. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * @return value or {@code null} for none + */ + public InterconnectDiagnostics getDiagnostics() { + return diagnostics; + } + + /** + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * @param diagnostics diagnostics or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(InterconnectDiagnostics diagnostics) { + this.diagnostics = diagnostics; + return this; + } + + /** + * The URL of the Interconnect being described. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * The URL of the Interconnect being described. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + /** + * Whether this interconnect is participating in the redundant configuration. + * @return value or {@code null} for none + */ + public java.lang.String getIsActive() { + return isActive; + } + + /** + * Whether this interconnect is participating in the redundant configuration. + * @param isActive isActive or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { + this.isActive = isActive; + return this; + } + + @Override + public InterconnectGroupsOperationalStatusInterconnectStatus set(String fieldName, Object value) { + return (InterconnectGroupsOperationalStatusInterconnectStatus) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsOperationalStatusInterconnectStatus clone() { + return (InterconnectGroupsOperationalStatusInterconnectStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/License.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/License.java index 95d4b50f647..0e04fd6c0e7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/License.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/License.java @@ -31,6 +31,21 @@ @SuppressWarnings("javadoc") public final class License extends com.google.api.client.json.GenericJson { + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedReplacementLicenses; + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean appendableToDisk; + /** * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. * The value may be {@code null}. @@ -60,6 +75,14 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List incompatibleLicenses; + /** * [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. @@ -74,6 +97,21 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger licenseCode; + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration minimumRetention; + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean multiTenantOnly; + /** * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. * The value may be {@code null}. @@ -81,6 +119,31 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean osLicense; + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean removableFromDisk; + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requiredCoattachedLicenses; + /** * [Input Only] Deprecated. * The value may be {@code null}. @@ -95,6 +158,20 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean soleTenantOnly; + /** * If false, licenses will not be copied from the source resource when creating an image from a * disk, disk from snapshot, or snapshot from disk. @@ -103,6 +180,49 @@ public final class License extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean transferable; + /** + * [Output Only] Last update timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @return value or {@code null} for none + */ + public java.util.List getAllowedReplacementLicenses() { + return allowedReplacementLicenses; + } + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @param allowedReplacementLicenses allowedReplacementLicenses or {@code null} for none + */ + public License setAllowedReplacementLicenses(java.util.List allowedReplacementLicenses) { + this.allowedReplacementLicenses = allowedReplacementLicenses; + return this; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAppendableToDisk() { + return appendableToDisk; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @param appendableToDisk appendableToDisk or {@code null} for none + */ + public License setAppendableToDisk(java.lang.Boolean appendableToDisk) { + this.appendableToDisk = appendableToDisk; + return this; + } + /** * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. * @return value or {@code null} for none @@ -173,6 +293,25 @@ public License setId(java.math.BigInteger id) { return this; } + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @return value or {@code null} for none + */ + public java.util.List getIncompatibleLicenses() { + return incompatibleLicenses; + } + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @param incompatibleLicenses incompatibleLicenses or {@code null} for none + */ + public License setIncompatibleLicenses(java.util.List incompatibleLicenses) { + this.incompatibleLicenses = incompatibleLicenses; + return this; + } + /** * [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none @@ -207,6 +346,42 @@ public License setLicenseCode(java.math.BigInteger licenseCode) { return this; } + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @return value or {@code null} for none + */ + public Duration getMinimumRetention() { + return minimumRetention; + } + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @param minimumRetention minimumRetention or {@code null} for none + */ + public License setMinimumRetention(Duration minimumRetention) { + this.minimumRetention = minimumRetention; + return this; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMultiTenantOnly() { + return multiTenantOnly; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @param multiTenantOnly multiTenantOnly or {@code null} for none + */ + public License setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { + this.multiTenantOnly = multiTenantOnly; + return this; + } + /** * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. * @return value or {@code null} for none @@ -224,6 +399,65 @@ public License setName(java.lang.String name) { return this; } + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOsLicense() { + return osLicense; + } + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @param osLicense osLicense or {@code null} for none + */ + public License setOsLicense(java.lang.Boolean osLicense) { + this.osLicense = osLicense; + return this; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRemovableFromDisk() { + return removableFromDisk; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @param removableFromDisk removableFromDisk or {@code null} for none + */ + public License setRemovableFromDisk(java.lang.Boolean removableFromDisk) { + this.removableFromDisk = removableFromDisk; + return this; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @return value or {@code null} for none + */ + public java.util.List getRequiredCoattachedLicenses() { + return requiredCoattachedLicenses; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @param requiredCoattachedLicenses requiredCoattachedLicenses or {@code null} for none + */ + public License setRequiredCoattachedLicenses(java.util.List requiredCoattachedLicenses) { + this.requiredCoattachedLicenses = requiredCoattachedLicenses; + return this; + } + /** * [Input Only] Deprecated. * @return value or {@code null} for none @@ -258,6 +492,40 @@ public License setSelfLink(java.lang.String selfLink) { return this; } + /** + * [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public License setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSoleTenantOnly() { + return soleTenantOnly; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @param soleTenantOnly soleTenantOnly or {@code null} for none + */ + public License setSoleTenantOnly(java.lang.Boolean soleTenantOnly) { + this.soleTenantOnly = soleTenantOnly; + return this; + } + /** * If false, licenses will not be copied from the source resource when creating an image from a * disk, disk from snapshot, or snapshot from disk. @@ -277,6 +545,23 @@ public License setTransferable(java.lang.Boolean transferable) { return this; } + /** + * [Output Only] Last update timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * [Output Only] Last update timestamp in RFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public License setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + @Override public License set(String fieldName, Object value) { return (License) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java index 435cc31fa14..f991450dcb9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -136,19 +136,6 @@ public final class MachineType extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; - /** - * [Output Only] A list of extended scratch disks assigned to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List scratchDisks; - - static { - // hack to force ProGuard to consider ScratchDisks used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(ScratchDisks.class); - } - /** * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. @@ -405,23 +392,6 @@ public MachineType setName(java.lang.String name) { return this; } - /** - * [Output Only] A list of extended scratch disks assigned to the instance. - * @return value or {@code null} for none - */ - public java.util.List getScratchDisks() { - return scratchDisks; - } - - /** - * [Output Only] A list of extended scratch disks assigned to the instance. - * @param scratchDisks scratchDisks or {@code null} for none - */ - public MachineType setScratchDisks(java.util.List scratchDisks) { - this.scratchDisks = scratchDisks; - return this; - } - /** * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none @@ -531,45 +501,4 @@ public Accelerators clone() { } - /** - * Model definition for MachineTypeScratchDisks. - */ - public static final class ScratchDisks extends com.google.api.client.json.GenericJson { - - /** - * Size of the scratch disk, defined in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer diskGb; - - /** - * Size of the scratch disk, defined in GB. - * @return value or {@code null} for none - */ - public java.lang.Integer getDiskGb() { - return diskGb; - } - - /** - * Size of the scratch disk, defined in GB. - * @param diskGb diskGb or {@code null} for none - */ - public ScratchDisks setDiskGb(java.lang.Integer diskGb) { - this.diskGb = diskGb; - return this; - } - - @Override - public ScratchDisks set(String fieldName, Object value) { - return (ScratchDisks) super.set(fieldName, value); - } - - @Override - public ScratchDisks clone() { - return (ScratchDisks) super.clone(); - } - - } - } diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java index c763bc1e018..1b83c1c39d6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java @@ -155,8 +155,8 @@ public final class PublicDelegatedPrefix extends com.google.api.client.json.Gene * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -485,8 +485,8 @@ public PublicDelegatedPrefix setSelfLink(java.lang.String selfLink) { * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -497,8 +497,8 @@ public java.lang.String getStatus() { * [Output Only] The status of the public delegated prefix, which can be one of following values: * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and - * is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public - * delegated prefix is being deprovsioned. + * is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - + * `DELETING` The public delegated prefix is being deprovsioned. * @param status status or {@code null} for none */ public PublicDelegatedPrefix setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java index 95ec0612230..1dffbfd4e46 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -52,6 +52,22 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String creationTimestamp; + /** + * Duration time relative to reservation creation when Compute Engine will automatically delete + * this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration deleteAfterDuration; + + /** + * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp + * is represented in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deleteAtTime; + /** * Specifies the deployment strategy for this reservation. * The value may be {@code null}. @@ -232,6 +248,44 @@ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { return this; } + /** + * Duration time relative to reservation creation when Compute Engine will automatically delete + * this resource. + * @return value or {@code null} for none + */ + public Duration getDeleteAfterDuration() { + return deleteAfterDuration; + } + + /** + * Duration time relative to reservation creation when Compute Engine will automatically delete + * this resource. + * @param deleteAfterDuration deleteAfterDuration or {@code null} for none + */ + public Reservation setDeleteAfterDuration(Duration deleteAfterDuration) { + this.deleteAfterDuration = deleteAfterDuration; + return this; + } + + /** + * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp + * is represented in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getDeleteAtTime() { + return deleteAtTime; + } + + /** + * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp + * is represented in RFC3339 text format. + * @param deleteAtTime deleteAtTime or {@code null} for none + */ + public Reservation setDeleteAtTime(java.lang.String deleteAtTime) { + this.deleteAtTime = deleteAtTime; + return this; + } + /** * Specifies the deployment strategy for this reservation. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java index c28a65fe4cc..ccaedd47646 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java @@ -190,6 +190,14 @@ public final class Route extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String nextHopVpnTunnel; + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouteParams params; + /** * The priority of this route. Priority is used to break ties in cases where there is more than * one matching route of equal prefix length. In cases where multiple routes have equal prefix @@ -620,6 +628,25 @@ public Route setNextHopVpnTunnel(java.lang.String nextHopVpnTunnel) { return this; } + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public RouteParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Route setParams(RouteParams params) { + this.params = params; + return this; + } + /** * The priority of this route. Priority is used to break ties in cases where there is more than * one matching route of equal prefix length. In cases where multiple routes have equal prefix diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteParams.java new file mode 100644 index 00000000000..21492d92f95 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteParams.java @@ -0,0 +1,84 @@ +/* + * 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.compute.model; + +/** + * Additional route parameters. + * + *

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 Compute Engine 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 RouteParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public RouteParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public RouteParams set(String fieldName, Object value) { + return (RouteParams) super.set(fieldName, value); + } + + @Override + public RouteParams clone() { + return (RouteParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java index d25561e77bf..c1c0a77df67 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -268,6 +268,22 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String state; + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedExternalIpv6Ranges; + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedInternalIpv6Ranges; + /** * [Output Only] Creation timestamp in RFC3339 text format. * @return value or {@code null} for none @@ -859,6 +875,44 @@ public Subnetwork setState(java.lang.String state) { return this; } + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedExternalIpv6Ranges() { + return systemReservedExternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @param systemReservedExternalIpv6Ranges systemReservedExternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedExternalIpv6Ranges(java.util.List systemReservedExternalIpv6Ranges) { + this.systemReservedExternalIpv6Ranges = systemReservedExternalIpv6Ranges; + return this; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedInternalIpv6Ranges() { + return systemReservedInternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @param systemReservedInternalIpv6Ranges systemReservedInternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedInternalIpv6Ranges(java.util.List systemReservedInternalIpv6Ranges) { + this.systemReservedInternalIpv6Ranges = systemReservedInternalIpv6Ranges; + return this; + } + @Override public Subnetwork set(String fieldName, Object value) { return (Subnetwork) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java new file mode 100644 index 00000000000..05b6c804619 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java @@ -0,0 +1,269 @@ +/* + * 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.compute.model; + +/** + * Model definition for SubnetworksScopedWarning. + * + *

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 Compute Engine 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 SubnetworksScopedWarning extends com.google.api.client.json.GenericJson { + + /** + * Name of the scope containing this set of Subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scopeName; + + /** + * An informational warning about unreachable scope + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Name of the scope containing this set of Subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getScopeName() { + return scopeName; + } + + /** + * Name of the scope containing this set of Subnetworks. + * @param scopeName scopeName or {@code null} for none + */ + public SubnetworksScopedWarning setScopeName(java.lang.String scopeName) { + this.scopeName = scopeName; + return this; + } + + /** + * An informational warning about unreachable scope + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning about unreachable scope + * @param warning warning or {@code null} for none + */ + public SubnetworksScopedWarning setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SubnetworksScopedWarning set(String fieldName, Object value) { + return (SubnetworksScopedWarning) super.set(fieldName, value); + } + + @Override + public SubnetworksScopedWarning clone() { + return (SubnetworksScopedWarning) super.clone(); + } + + /** + * An informational warning about unreachable scope + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": + * "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for SubnetworksScopedWarningWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 0424008e3f0..ec42c404d67 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -68,6 +68,19 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client @com.google.api.client.util.Key private java.lang.String nextPageToken; + /** + * [Output Only] Informational warning messages for failures encountered from scopes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopedWarnings; + + static { + // hack to force ProGuard to consider SubnetworksScopedWarning used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(SubnetworksScopedWarning.class); + } + /** * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. @@ -75,6 +88,13 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + /** * [Output Only] Informational warning message. * The value may be {@code null}. @@ -160,6 +180,23 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag return this; } + /** + * [Output Only] Informational warning messages for failures encountered from scopes. + * @return value or {@code null} for none + */ + public java.util.List getScopedWarnings() { + return scopedWarnings; + } + + /** + * [Output Only] Informational warning messages for failures encountered from scopes. + * @param scopedWarnings scopedWarnings or {@code null} for none + */ + public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List scopedWarnings) { + this.scopedWarnings = scopedWarnings; + return this; + } + /** * [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none @@ -177,6 +214,23 @@ public UsableSubnetworksAggregatedList setSelfLink(java.lang.String selfLink) { return this; } + /** + * [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + /** * [Output Only] Informational warning message. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/pom.xml b/clients/google-api-services-compute/v1/2.0.0/pom.xml index 8ba5ede261c..01d0593f7d7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/pom.xml +++ b/clients/google-api-services-compute/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - v1-rev20250415-2.0.0 - Compute Engine API v1-rev20250415-2.0.0 + v1-rev20250511-2.0.0 + Compute Engine API v1-rev20250511-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/v1/README.md b/clients/google-api-services-compute/v1/README.md index a3ed5079525..c994fa3ad5e 100644 --- a/clients/google-api-services-compute/v1/README.md +++ b/clients/google-api-services-compute/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20250415-2.0.0 + v1-rev20250511-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20250415-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20250511-2.0.0' } ```