diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/README.md b/clients/google-api-services-serviceusage/v1/2.0.0/README.md index 0aeb76504f9..8e95ccb65d7 100644 --- a/clients/google-api-services-serviceusage/v1/2.0.0/README.md +++ b/clients/google-api-services-serviceusage/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-serviceusage - v1-rev20260423-2.0.0 + v1-rev20260713-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-serviceusage:v1-rev20260423-2.0.0' + implementation 'com.google.apis:google-api-services-serviceusage:v1-rev20260713-2.0.0' } ``` diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Analysis.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Analysis.java index fd5a00d57ae..a8d6e731b73 100644 --- a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Analysis.java +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Analysis.java @@ -34,7 +34,7 @@ public final class Analysis extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private AnalysisResult analysis; + private AnalysisResult analysisResult; /** * Output only. The type of analysis. @@ -63,16 +63,16 @@ public final class Analysis extends com.google.api.client.json.GenericJson { * Output only. Analysis result of updating a policy. * @return value or {@code null} for none */ - public AnalysisResult getAnalysis() { - return analysis; + public AnalysisResult getAnalysisResult() { + return analysisResult; } /** * Output only. Analysis result of updating a policy. - * @param analysis analysis or {@code null} for none + * @param analysisResult analysisResult or {@code null} for none */ - public Analysis setAnalysis(AnalysisResult analysis) { - this.analysis = analysis; + public Analysis setAnalysisResult(AnalysisResult analysisResult) { + this.analysisResult = analysisResult; return this; } diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/ConsumerPolicy.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/ConsumerPolicy.java index 30fe5c8cff5..3686b1222ae 100644 --- a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/ConsumerPolicy.java +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/ConsumerPolicy.java @@ -31,16 +31,16 @@ public final class ConsumerPolicy extends com.google.api.client.json.GenericJson { /** - * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by - * external tools to store and retrieve arbitrary metadata. They are not queryable and should be - * preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) + * Output only. The time the policy was created. For singleton policies, this is the first touch + * of the policy. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map annotations; + private String createTime; /** - * Enable rules define usable services and service groups. + * Enable rules define usable services and groups. There can currently be at most one + * `EnableRule`. This restriction will be lifted in later releases. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,8 +54,8 @@ public final class ConsumerPolicy extends com.google.api.client.json.GenericJson private java.lang.String etag; /** - * Output only. The resource name of the policy. We only allow consumer policy name as `default` - * for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, + * Output only. The resource name of the policy. Only the `default` policy is supported: + * `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, * `organizations/12345/consumerPolicies/default`. * The value may be {@code null}. */ @@ -63,35 +63,34 @@ public final class ConsumerPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * The last-modified time. + * Output only. The time the policy was last updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** - * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by - * external tools to store and retrieve arbitrary metadata. They are not queryable and should be - * preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) + * Output only. The time the policy was created. For singleton policies, this is the first touch + * of the policy. * @return value or {@code null} for none */ - public java.util.Map getAnnotations() { - return annotations; + public String getCreateTime() { + return createTime; } /** - * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by - * external tools to store and retrieve arbitrary metadata. They are not queryable and should be - * preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) - * @param annotations annotations or {@code null} for none + * Output only. The time the policy was created. For singleton policies, this is the first touch + * of the policy. + * @param createTime createTime or {@code null} for none */ - public ConsumerPolicy setAnnotations(java.util.Map annotations) { - this.annotations = annotations; + public ConsumerPolicy setCreateTime(String createTime) { + this.createTime = createTime; return this; } /** - * Enable rules define usable services and service groups. + * Enable rules define usable services and groups. There can currently be at most one + * `EnableRule`. This restriction will be lifted in later releases. * @return value or {@code null} for none */ public java.util.List getEnableRules() { @@ -99,7 +98,8 @@ public java.util.List getEnableRules() { } /** - * Enable rules define usable services and service groups. + * Enable rules define usable services and groups. There can currently be at most one + * `EnableRule`. This restriction will be lifted in later releases. * @param enableRules enableRules or {@code null} for none */ public ConsumerPolicy setEnableRules(java.util.List enableRules) { @@ -125,8 +125,8 @@ public ConsumerPolicy setEtag(java.lang.String etag) { } /** - * Output only. The resource name of the policy. We only allow consumer policy name as `default` - * for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, + * Output only. The resource name of the policy. Only the `default` policy is supported: + * `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, * `organizations/12345/consumerPolicies/default`. * @return value or {@code null} for none */ @@ -135,8 +135,8 @@ public java.lang.String getName() { } /** - * Output only. The resource name of the policy. We only allow consumer policy name as `default` - * for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, + * Output only. The resource name of the policy. Only the `default` policy is supported: + * `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, * `organizations/12345/consumerPolicies/default`. * @param name name or {@code null} for none */ @@ -146,7 +146,7 @@ public ConsumerPolicy setName(java.lang.String name) { } /** - * The last-modified time. + * Output only. The time the policy was last updated. * @return value or {@code null} for none */ public String getUpdateTime() { @@ -154,7 +154,7 @@ public String getUpdateTime() { } /** - * The last-modified time. + * Output only. The time the policy was last updated. * @param updateTime updateTime or {@code null} for none */ public ConsumerPolicy setUpdateTime(String updateTime) { diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/EnableRule.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/EnableRule.java index 8689be1b179..a27c307da24 100644 --- a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/EnableRule.java +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/EnableRule.java @@ -17,7 +17,7 @@ package com.google.api.services.serviceusage.v1.model; /** - * The consumer policy rule that defines usable services and service groups. + * The consumer policy rule that defines enabled services and groups. * *

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 Service Usage API. For a detailed explanation see: @@ -37,16 +37,7 @@ public final class EnableRule extends com.google.api.client.json.GenericJson { private java.lang.String enableType; /** - * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of - * the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List groups; - - /** - * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the - * services that are enabled. Example: `storage.googleapis.com`. + * The names of the services that are enabled. Example: `services/storage.googleapis.com`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,27 +69,7 @@ public EnableRule setEnableType(java.lang.String enableType) { } /** - * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of - * the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. - * @return value or {@code null} for none - */ - public java.util.List getGroups() { - return groups; - } - - /** - * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of - * the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. - * @param groups groups or {@code null} for none - */ - public EnableRule setGroups(java.util.List groups) { - this.groups = groups; - return this; - } - - /** - * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the - * services that are enabled. Example: `storage.googleapis.com`. + * The names of the services that are enabled. Example: `services/storage.googleapis.com`. * @return value or {@code null} for none */ public java.util.List getServices() { @@ -106,8 +77,7 @@ public java.util.List getServices() { } /** - * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the - * services that are enabled. Example: `storage.googleapis.com`. + * The names of the services that are enabled. Example: `services/storage.googleapis.com`. * @param services services or {@code null} for none */ public EnableRule setServices(java.util.List services) { diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalysis.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalysis.java new file mode 100644 index 00000000000..221ebbb4e0a --- /dev/null +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalysis.java @@ -0,0 +1,144 @@ +/* + * 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.serviceusage.v1.model; + +/** + * A message to group the analysis information. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalysis extends com.google.api.client.json.GenericJson { + + /** + * Output only. Analysis result of updating a policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleApiServiceusageV2alphaAnalysisResult analysisResult; + + /** + * Output only. The type of analysis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String analysisType; + + /** + * Output only. The user friendly display name of the analysis type. E.g. service dependency + * analysis, service resource usage analysis, etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The names of the service that has analysis result of warnings or blockers. Example: + * `services/storage.googleapis.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Output only. Analysis result of updating a policy. + * @return value or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysisResult getAnalysisResult() { + return analysisResult; + } + + /** + * Output only. Analysis result of updating a policy. + * @param analysisResult analysisResult or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setAnalysisResult(GoogleApiServiceusageV2alphaAnalysisResult analysisResult) { + this.analysisResult = analysisResult; + return this; + } + + /** + * Output only. The type of analysis. + * @return value or {@code null} for none + */ + public java.lang.String getAnalysisType() { + return analysisType; + } + + /** + * Output only. The type of analysis. + * @param analysisType analysisType or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setAnalysisType(java.lang.String analysisType) { + this.analysisType = analysisType; + return this; + } + + /** + * Output only. The user friendly display name of the analysis type. E.g. service dependency + * analysis, service resource usage analysis, etc. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The user friendly display name of the analysis type. E.g. service dependency + * analysis, service resource usage analysis, etc. + * @param displayName displayName or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The names of the service that has analysis result of warnings or blockers. Example: + * `services/storage.googleapis.com`. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * The names of the service that has analysis result of warnings or blockers. Example: + * `services/storage.googleapis.com`. + * @param service service or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaAnalysis set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalysis) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalysis clone() { + return (GoogleApiServiceusageV2alphaAnalysis) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalysisResult.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalysisResult.java new file mode 100644 index 00000000000..c803e0cc85d --- /dev/null +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalysisResult.java @@ -0,0 +1,93 @@ +/* + * 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.serviceusage.v1.model; + +/** + * An analysis result including blockers and warnings. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalysisResult extends com.google.api.client.json.GenericJson { + + /** + * Blocking information that would prevent the policy changes at runtime. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List blockers; + + /** + * Warning information indicating that the policy changes might be unsafe, but will not block the + * changes at runtime. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + /** + * Blocking information that would prevent the policy changes at runtime. + * @return value or {@code null} for none + */ + public java.util.List getBlockers() { + return blockers; + } + + /** + * Blocking information that would prevent the policy changes at runtime. + * @param blockers blockers or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysisResult setBlockers(java.util.List blockers) { + this.blockers = blockers; + return this; + } + + /** + * Warning information indicating that the policy changes might be unsafe, but will not block the + * changes at runtime. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * Warning information indicating that the policy changes might be unsafe, but will not block the + * changes at runtime. + * @param warnings warnings or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysisResult setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaAnalysisResult set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalysisResult) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalysisResult clone() { + return (GoogleApiServiceusageV2alphaAnalysisResult) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata.java new file mode 100644 index 00000000000..b0793ae7fd5 --- /dev/null +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata.java @@ -0,0 +1,42 @@ +/* + * 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.serviceusage.v1.model; + +/** + * Metadata for the `AnalyzeConsumerPolicy` method. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata clone() { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse.java new file mode 100644 index 00000000000..2a3b505cd57 --- /dev/null +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse.java @@ -0,0 +1,78 @@ +/* + * 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.serviceusage.v1.model; + +/** + * The response of analyzing a consumer policy update. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of analyses returned from performing the intended policy update analysis. The analysis + * is grouped by service name and different analysis types. The empty analysis list means that the + * consumer policy can be updated without any warnings or blockers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List analysis; + + static { + // hack to force ProGuard to consider GoogleApiServiceusageV2alphaAnalysis 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(GoogleApiServiceusageV2alphaAnalysis.class); + } + + /** + * The list of analyses returned from performing the intended policy update analysis. The analysis + * is grouped by service name and different analysis types. The empty analysis list means that the + * consumer policy can be updated without any warnings or blockers. + * @return value or {@code null} for none + */ + public java.util.List getAnalysis() { + return analysis; + } + + /** + * The list of analyses returned from performing the intended policy update analysis. The analysis + * is grouped by service name and different analysis types. The empty analysis list means that the + * consumer policy can be updated without any warnings or blockers. + * @param analysis analysis or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse setAnalysis(java.util.List analysis) { + this.analysis = analysis; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse clone() { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaImpact.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaImpact.java new file mode 100644 index 00000000000..ec7a1521473 --- /dev/null +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/GoogleApiServiceusageV2alphaImpact.java @@ -0,0 +1,135 @@ +/* + * 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.serviceusage.v1.model; + +/** + * A message to group impacts of updating a policy. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaImpact extends com.google.api.client.json.GenericJson { + + /** + * Output only. User friendly impact detail in a free form message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detail; + + /** + * Output only. The type of impact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String impactType; + + /** + * The parent resource that the analysis is based on and the service name that the analysis is + * for. Example: `projects/100/services/compute.googleapis.com`, + * folders/101/services/compute.googleapis.com` and + * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same + * as the parent resource of the analyzed policy. However, for some analysis types, the parent can + * be different. For example, for resource existence analysis, if the parent resource of the + * analyzed policy is a folder or an organization, the parent resource here can still be the + * project that contains the resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Output only. User friendly impact detail in a free form message. + * @return value or {@code null} for none + */ + public java.lang.String getDetail() { + return detail; + } + + /** + * Output only. User friendly impact detail in a free form message. + * @param detail detail or {@code null} for none + */ + public GoogleApiServiceusageV2alphaImpact setDetail(java.lang.String detail) { + this.detail = detail; + return this; + } + + /** + * Output only. The type of impact. + * @return value or {@code null} for none + */ + public java.lang.String getImpactType() { + return impactType; + } + + /** + * Output only. The type of impact. + * @param impactType impactType or {@code null} for none + */ + public GoogleApiServiceusageV2alphaImpact setImpactType(java.lang.String impactType) { + this.impactType = impactType; + return this; + } + + /** + * The parent resource that the analysis is based on and the service name that the analysis is + * for. Example: `projects/100/services/compute.googleapis.com`, + * folders/101/services/compute.googleapis.com` and + * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same + * as the parent resource of the analyzed policy. However, for some analysis types, the parent can + * be different. For example, for resource existence analysis, if the parent resource of the + * analyzed policy is a folder or an organization, the parent resource here can still be the + * project that contains the resources. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The parent resource that the analysis is based on and the service name that the analysis is + * for. Example: `projects/100/services/compute.googleapis.com`, + * folders/101/services/compute.googleapis.com` and + * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same + * as the parent resource of the analyzed policy. However, for some analysis types, the parent can + * be different. For example, for resource existence analysis, if the parent resource of the + * analyzed policy is a folder or an organization, the parent resource here can still be the + * project that contains the resources. + * @param parent parent or {@code null} for none + */ + public GoogleApiServiceusageV2alphaImpact setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaImpact set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaImpact) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaImpact clone() { + return (GoogleApiServiceusageV2alphaImpact) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Impact.java b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Impact.java index 2c313bd355c..da5024c08c6 100644 --- a/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Impact.java +++ b/clients/google-api-services-serviceusage/v1/2.0.0/com/google/api/services/serviceusage/v1/model/Impact.java @@ -44,18 +44,13 @@ public final class Impact extends com.google.api.client.json.GenericJson { private java.lang.String impactType; /** - * The parent resource that the analysis is based on and the service name that the analysis is - * for. Example: `projects/100/services/compute.googleapis.com`, - * folders/101/services/compute.googleapis.com` and - * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same - * as the parent resource of the analyzed policy. However, for some analysis types, the parent can - * be different. For example, for resource existence analysis, if the parent resource of the - * analyzed policy is a folder or an organization, the parent resource here can still be the - * project that contains the resources. + * Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact + * type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing + * service dependency: {missing_dependency}.` * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String missingDependency; /** * Output only. User friendly impact detail in a free form message. @@ -92,33 +87,23 @@ public Impact setImpactType(java.lang.String impactType) { } /** - * The parent resource that the analysis is based on and the service name that the analysis is - * for. Example: `projects/100/services/compute.googleapis.com`, - * folders/101/services/compute.googleapis.com` and - * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same - * as the parent resource of the analyzed policy. However, for some analysis types, the parent can - * be different. For example, for resource existence analysis, if the parent resource of the - * analyzed policy is a folder or an organization, the parent resource here can still be the - * project that contains the resources. + * Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact + * type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing + * service dependency: {missing_dependency}.` * @return value or {@code null} for none */ - public java.lang.String getParent() { - return parent; + public java.lang.String getMissingDependency() { + return missingDependency; } /** - * The parent resource that the analysis is based on and the service name that the analysis is - * for. Example: `projects/100/services/compute.googleapis.com`, - * folders/101/services/compute.googleapis.com` and - * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same - * as the parent resource of the analyzed policy. However, for some analysis types, the parent can - * be different. For example, for resource existence analysis, if the parent resource of the - * analyzed policy is a folder or an organization, the parent resource here can still be the - * project that contains the resources. - * @param parent parent or {@code null} for none + * Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact + * type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing + * service dependency: {missing_dependency}.` + * @param missingDependency missingDependency or {@code null} for none */ - public Impact setParent(java.lang.String parent) { - this.parent = parent; + public Impact setMissingDependency(java.lang.String missingDependency) { + this.missingDependency = missingDependency; return this; } diff --git a/clients/google-api-services-serviceusage/v1/2.0.0/pom.xml b/clients/google-api-services-serviceusage/v1/2.0.0/pom.xml index 0fd10093302..349530a33ff 100644 --- a/clients/google-api-services-serviceusage/v1/2.0.0/pom.xml +++ b/clients/google-api-services-serviceusage/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-serviceusage - v1-rev20260423-2.0.0 - Service Usage API v1-rev20260423-2.0.0 + v1-rev20260713-2.0.0 + Service Usage API v1-rev20260713-2.0.0 jar 2011 diff --git a/clients/google-api-services-serviceusage/v1/README.md b/clients/google-api-services-serviceusage/v1/README.md index 0aeb76504f9..8e95ccb65d7 100644 --- a/clients/google-api-services-serviceusage/v1/README.md +++ b/clients/google-api-services-serviceusage/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-serviceusage - v1-rev20260423-2.0.0 + v1-rev20260713-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-serviceusage:v1-rev20260423-2.0.0' + implementation 'com.google.apis:google-api-services-serviceusage:v1-rev20260713-2.0.0' } ``` diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/README.md b/clients/google-api-services-serviceusage/v1beta1/2.0.0/README.md index 5cca5ce2fcf..32d74af4dd9 100644 --- a/clients/google-api-services-serviceusage/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-serviceusage - v1beta1-rev20260423-2.0.0 + v1beta1-rev20260713-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-serviceusage:v1beta1-rev20260423-2.0.0' + implementation 'com.google.apis:google-api-services-serviceusage:v1beta1-rev20260713-2.0.0' } ``` diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Analysis.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Analysis.java index 1804ab6b8a4..834409890b4 100644 --- a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Analysis.java +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Analysis.java @@ -34,7 +34,7 @@ public final class Analysis extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private AnalysisResult analysis; + private AnalysisResult analysisResult; /** * Output only. The type of analysis. @@ -63,16 +63,16 @@ public final class Analysis extends com.google.api.client.json.GenericJson { * Output only. Analysis result of updating a policy. * @return value or {@code null} for none */ - public AnalysisResult getAnalysis() { - return analysis; + public AnalysisResult getAnalysisResult() { + return analysisResult; } /** * Output only. Analysis result of updating a policy. - * @param analysis analysis or {@code null} for none + * @param analysisResult analysisResult or {@code null} for none */ - public Analysis setAnalysis(AnalysisResult analysis) { - this.analysis = analysis; + public Analysis setAnalysisResult(AnalysisResult analysisResult) { + this.analysisResult = analysisResult; return this; } diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/ConsumerPolicy.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/ConsumerPolicy.java index 3bacb95d4aa..296a62e3846 100644 --- a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/ConsumerPolicy.java +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/ConsumerPolicy.java @@ -31,16 +31,16 @@ public final class ConsumerPolicy extends com.google.api.client.json.GenericJson { /** - * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by - * external tools to store and retrieve arbitrary metadata. They are not queryable and should be - * preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) + * Output only. The time the policy was created. For singleton policies, this is the first touch + * of the policy. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map annotations; + private String createTime; /** - * Enable rules define usable services and service groups. + * Enable rules define usable services and groups. There can currently be at most one + * `EnableRule`. This restriction will be lifted in later releases. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,8 +54,8 @@ public final class ConsumerPolicy extends com.google.api.client.json.GenericJson private java.lang.String etag; /** - * Output only. The resource name of the policy. We only allow consumer policy name as `default` - * for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, + * Output only. The resource name of the policy. Only the `default` policy is supported: + * `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, * `organizations/12345/consumerPolicies/default`. * The value may be {@code null}. */ @@ -63,35 +63,34 @@ public final class ConsumerPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * The last-modified time. + * Output only. The time the policy was last updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** - * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by - * external tools to store and retrieve arbitrary metadata. They are not queryable and should be - * preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) + * Output only. The time the policy was created. For singleton policies, this is the first touch + * of the policy. * @return value or {@code null} for none */ - public java.util.Map getAnnotations() { - return annotations; + public String getCreateTime() { + return createTime; } /** - * Optional. Annotations is an unstructured key-value map stored with a policy that may be set by - * external tools to store and retrieve arbitrary metadata. They are not queryable and should be - * preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) - * @param annotations annotations or {@code null} for none + * Output only. The time the policy was created. For singleton policies, this is the first touch + * of the policy. + * @param createTime createTime or {@code null} for none */ - public ConsumerPolicy setAnnotations(java.util.Map annotations) { - this.annotations = annotations; + public ConsumerPolicy setCreateTime(String createTime) { + this.createTime = createTime; return this; } /** - * Enable rules define usable services and service groups. + * Enable rules define usable services and groups. There can currently be at most one + * `EnableRule`. This restriction will be lifted in later releases. * @return value or {@code null} for none */ public java.util.List getEnableRules() { @@ -99,7 +98,8 @@ public java.util.List getEnableRules() { } /** - * Enable rules define usable services and service groups. + * Enable rules define usable services and groups. There can currently be at most one + * `EnableRule`. This restriction will be lifted in later releases. * @param enableRules enableRules or {@code null} for none */ public ConsumerPolicy setEnableRules(java.util.List enableRules) { @@ -125,8 +125,8 @@ public ConsumerPolicy setEtag(java.lang.String etag) { } /** - * Output only. The resource name of the policy. We only allow consumer policy name as `default` - * for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, + * Output only. The resource name of the policy. Only the `default` policy is supported: + * `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, * `organizations/12345/consumerPolicies/default`. * @return value or {@code null} for none */ @@ -135,8 +135,8 @@ public java.lang.String getName() { } /** - * Output only. The resource name of the policy. We only allow consumer policy name as `default` - * for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, + * Output only. The resource name of the policy. Only the `default` policy is supported: + * `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, * `organizations/12345/consumerPolicies/default`. * @param name name or {@code null} for none */ @@ -146,7 +146,7 @@ public ConsumerPolicy setName(java.lang.String name) { } /** - * The last-modified time. + * Output only. The time the policy was last updated. * @return value or {@code null} for none */ public String getUpdateTime() { @@ -154,7 +154,7 @@ public String getUpdateTime() { } /** - * The last-modified time. + * Output only. The time the policy was last updated. * @param updateTime updateTime or {@code null} for none */ public ConsumerPolicy setUpdateTime(String updateTime) { diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/EnableRule.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/EnableRule.java index 9ad1c1e0beb..1e636cc130f 100644 --- a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/EnableRule.java +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/EnableRule.java @@ -17,7 +17,7 @@ package com.google.api.services.serviceusage.v1beta1.model; /** - * The consumer policy rule that defines usable services and service groups. + * The consumer policy rule that defines enabled services and groups. * *

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 Service Usage API. For a detailed explanation see: @@ -37,16 +37,7 @@ public final class EnableRule extends com.google.api.client.json.GenericJson { private java.lang.String enableType; /** - * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of - * the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List groups; - - /** - * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the - * services that are enabled. Example: `storage.googleapis.com`. + * The names of the services that are enabled. Example: `services/storage.googleapis.com`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,27 +69,7 @@ public EnableRule setEnableType(java.lang.String enableType) { } /** - * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of - * the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. - * @return value or {@code null} for none - */ - public java.util.List getGroups() { - return groups; - } - - /** - * DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of - * the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. - * @param groups groups or {@code null} for none - */ - public EnableRule setGroups(java.util.List groups) { - this.groups = groups; - return this; - } - - /** - * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the - * services that are enabled. Example: `storage.googleapis.com`. + * The names of the services that are enabled. Example: `services/storage.googleapis.com`. * @return value or {@code null} for none */ public java.util.List getServices() { @@ -106,8 +77,7 @@ public java.util.List getServices() { } /** - * DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the - * services that are enabled. Example: `storage.googleapis.com`. + * The names of the services that are enabled. Example: `services/storage.googleapis.com`. * @param services services or {@code null} for none */ public EnableRule setServices(java.util.List services) { diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalysis.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalysis.java new file mode 100644 index 00000000000..b420a15880e --- /dev/null +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalysis.java @@ -0,0 +1,144 @@ +/* + * 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.serviceusage.v1beta1.model; + +/** + * A message to group the analysis information. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalysis extends com.google.api.client.json.GenericJson { + + /** + * Output only. Analysis result of updating a policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleApiServiceusageV2alphaAnalysisResult analysisResult; + + /** + * Output only. The type of analysis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String analysisType; + + /** + * Output only. The user friendly display name of the analysis type. E.g. service dependency + * analysis, service resource usage analysis, etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The names of the service that has analysis result of warnings or blockers. Example: + * `services/storage.googleapis.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Output only. Analysis result of updating a policy. + * @return value or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysisResult getAnalysisResult() { + return analysisResult; + } + + /** + * Output only. Analysis result of updating a policy. + * @param analysisResult analysisResult or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setAnalysisResult(GoogleApiServiceusageV2alphaAnalysisResult analysisResult) { + this.analysisResult = analysisResult; + return this; + } + + /** + * Output only. The type of analysis. + * @return value or {@code null} for none + */ + public java.lang.String getAnalysisType() { + return analysisType; + } + + /** + * Output only. The type of analysis. + * @param analysisType analysisType or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setAnalysisType(java.lang.String analysisType) { + this.analysisType = analysisType; + return this; + } + + /** + * Output only. The user friendly display name of the analysis type. E.g. service dependency + * analysis, service resource usage analysis, etc. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The user friendly display name of the analysis type. E.g. service dependency + * analysis, service resource usage analysis, etc. + * @param displayName displayName or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The names of the service that has analysis result of warnings or blockers. Example: + * `services/storage.googleapis.com`. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * The names of the service that has analysis result of warnings or blockers. Example: + * `services/storage.googleapis.com`. + * @param service service or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysis setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaAnalysis set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalysis) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalysis clone() { + return (GoogleApiServiceusageV2alphaAnalysis) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalysisResult.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalysisResult.java new file mode 100644 index 00000000000..818aa9ce1ca --- /dev/null +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalysisResult.java @@ -0,0 +1,93 @@ +/* + * 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.serviceusage.v1beta1.model; + +/** + * An analysis result including blockers and warnings. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalysisResult extends com.google.api.client.json.GenericJson { + + /** + * Blocking information that would prevent the policy changes at runtime. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List blockers; + + /** + * Warning information indicating that the policy changes might be unsafe, but will not block the + * changes at runtime. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + /** + * Blocking information that would prevent the policy changes at runtime. + * @return value or {@code null} for none + */ + public java.util.List getBlockers() { + return blockers; + } + + /** + * Blocking information that would prevent the policy changes at runtime. + * @param blockers blockers or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysisResult setBlockers(java.util.List blockers) { + this.blockers = blockers; + return this; + } + + /** + * Warning information indicating that the policy changes might be unsafe, but will not block the + * changes at runtime. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * Warning information indicating that the policy changes might be unsafe, but will not block the + * changes at runtime. + * @param warnings warnings or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalysisResult setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaAnalysisResult set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalysisResult) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalysisResult clone() { + return (GoogleApiServiceusageV2alphaAnalysisResult) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata.java new file mode 100644 index 00000000000..138d42436ae --- /dev/null +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata.java @@ -0,0 +1,42 @@ +/* + * 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.serviceusage.v1beta1.model; + +/** + * Metadata for the `AnalyzeConsumerPolicy` method. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata clone() { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse.java new file mode 100644 index 00000000000..419d82c2a2d --- /dev/null +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse.java @@ -0,0 +1,78 @@ +/* + * 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.serviceusage.v1beta1.model; + +/** + * The response of analyzing a consumer policy update. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of analyses returned from performing the intended policy update analysis. The analysis + * is grouped by service name and different analysis types. The empty analysis list means that the + * consumer policy can be updated without any warnings or blockers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List analysis; + + static { + // hack to force ProGuard to consider GoogleApiServiceusageV2alphaAnalysis 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(GoogleApiServiceusageV2alphaAnalysis.class); + } + + /** + * The list of analyses returned from performing the intended policy update analysis. The analysis + * is grouped by service name and different analysis types. The empty analysis list means that the + * consumer policy can be updated without any warnings or blockers. + * @return value or {@code null} for none + */ + public java.util.List getAnalysis() { + return analysis; + } + + /** + * The list of analyses returned from performing the intended policy update analysis. The analysis + * is grouped by service name and different analysis types. The empty analysis list means that the + * consumer policy can be updated without any warnings or blockers. + * @param analysis analysis or {@code null} for none + */ + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse setAnalysis(java.util.List analysis) { + this.analysis = analysis; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse clone() { + return (GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaImpact.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaImpact.java new file mode 100644 index 00000000000..9cd45e0f326 --- /dev/null +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/GoogleApiServiceusageV2alphaImpact.java @@ -0,0 +1,135 @@ +/* + * 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.serviceusage.v1beta1.model; + +/** + * A message to group impacts of updating a policy. + * + *

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 Service Usage 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 GoogleApiServiceusageV2alphaImpact extends com.google.api.client.json.GenericJson { + + /** + * Output only. User friendly impact detail in a free form message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detail; + + /** + * Output only. The type of impact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String impactType; + + /** + * The parent resource that the analysis is based on and the service name that the analysis is + * for. Example: `projects/100/services/compute.googleapis.com`, + * folders/101/services/compute.googleapis.com` and + * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same + * as the parent resource of the analyzed policy. However, for some analysis types, the parent can + * be different. For example, for resource existence analysis, if the parent resource of the + * analyzed policy is a folder or an organization, the parent resource here can still be the + * project that contains the resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Output only. User friendly impact detail in a free form message. + * @return value or {@code null} for none + */ + public java.lang.String getDetail() { + return detail; + } + + /** + * Output only. User friendly impact detail in a free form message. + * @param detail detail or {@code null} for none + */ + public GoogleApiServiceusageV2alphaImpact setDetail(java.lang.String detail) { + this.detail = detail; + return this; + } + + /** + * Output only. The type of impact. + * @return value or {@code null} for none + */ + public java.lang.String getImpactType() { + return impactType; + } + + /** + * Output only. The type of impact. + * @param impactType impactType or {@code null} for none + */ + public GoogleApiServiceusageV2alphaImpact setImpactType(java.lang.String impactType) { + this.impactType = impactType; + return this; + } + + /** + * The parent resource that the analysis is based on and the service name that the analysis is + * for. Example: `projects/100/services/compute.googleapis.com`, + * folders/101/services/compute.googleapis.com` and + * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same + * as the parent resource of the analyzed policy. However, for some analysis types, the parent can + * be different. For example, for resource existence analysis, if the parent resource of the + * analyzed policy is a folder or an organization, the parent resource here can still be the + * project that contains the resources. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The parent resource that the analysis is based on and the service name that the analysis is + * for. Example: `projects/100/services/compute.googleapis.com`, + * folders/101/services/compute.googleapis.com` and + * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same + * as the parent resource of the analyzed policy. However, for some analysis types, the parent can + * be different. For example, for resource existence analysis, if the parent resource of the + * analyzed policy is a folder or an organization, the parent resource here can still be the + * project that contains the resources. + * @param parent parent or {@code null} for none + */ + public GoogleApiServiceusageV2alphaImpact setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleApiServiceusageV2alphaImpact set(String fieldName, Object value) { + return (GoogleApiServiceusageV2alphaImpact) super.set(fieldName, value); + } + + @Override + public GoogleApiServiceusageV2alphaImpact clone() { + return (GoogleApiServiceusageV2alphaImpact) super.clone(); + } + +} diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Impact.java b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Impact.java index 8630f79928c..552759e03d7 100644 --- a/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Impact.java +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/com/google/api/services/serviceusage/v1beta1/model/Impact.java @@ -44,18 +44,13 @@ public final class Impact extends com.google.api.client.json.GenericJson { private java.lang.String impactType; /** - * The parent resource that the analysis is based on and the service name that the analysis is - * for. Example: `projects/100/services/compute.googleapis.com`, - * folders/101/services/compute.googleapis.com` and - * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same - * as the parent resource of the analyzed policy. However, for some analysis types, the parent can - * be different. For example, for resource existence analysis, if the parent resource of the - * analyzed policy is a folder or an organization, the parent resource here can still be the - * project that contains the resources. + * Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact + * type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing + * service dependency: {missing_dependency}.` * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String missingDependency; /** * Output only. User friendly impact detail in a free form message. @@ -92,33 +87,23 @@ public Impact setImpactType(java.lang.String impactType) { } /** - * The parent resource that the analysis is based on and the service name that the analysis is - * for. Example: `projects/100/services/compute.googleapis.com`, - * folders/101/services/compute.googleapis.com` and - * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same - * as the parent resource of the analyzed policy. However, for some analysis types, the parent can - * be different. For example, for resource existence analysis, if the parent resource of the - * analyzed policy is a folder or an organization, the parent resource here can still be the - * project that contains the resources. + * Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact + * type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing + * service dependency: {missing_dependency}.` * @return value or {@code null} for none */ - public java.lang.String getParent() { - return parent; + public java.lang.String getMissingDependency() { + return missingDependency; } /** - * The parent resource that the analysis is based on and the service name that the analysis is - * for. Example: `projects/100/services/compute.googleapis.com`, - * folders/101/services/compute.googleapis.com` and - * `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same - * as the parent resource of the analyzed policy. However, for some analysis types, the parent can - * be different. For example, for resource existence analysis, if the parent resource of the - * analyzed policy is a folder or an organization, the parent resource here can still be the - * project that contains the resources. - * @param parent parent or {@code null} for none + * Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact + * type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing + * service dependency: {missing_dependency}.` + * @param missingDependency missingDependency or {@code null} for none */ - public Impact setParent(java.lang.String parent) { - this.parent = parent; + public Impact setMissingDependency(java.lang.String missingDependency) { + this.missingDependency = missingDependency; return this; } diff --git a/clients/google-api-services-serviceusage/v1beta1/2.0.0/pom.xml b/clients/google-api-services-serviceusage/v1beta1/2.0.0/pom.xml index c58d7dbfc11..ebcca6bd9c0 100644 --- a/clients/google-api-services-serviceusage/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-serviceusage/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-serviceusage - v1beta1-rev20260423-2.0.0 - Service Usage API v1beta1-rev20260423-2.0.0 + v1beta1-rev20260713-2.0.0 + Service Usage API v1beta1-rev20260713-2.0.0 jar 2011 diff --git a/clients/google-api-services-serviceusage/v1beta1/README.md b/clients/google-api-services-serviceusage/v1beta1/README.md index 5cca5ce2fcf..32d74af4dd9 100644 --- a/clients/google-api-services-serviceusage/v1beta1/README.md +++ b/clients/google-api-services-serviceusage/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-serviceusage - v1beta1-rev20260423-2.0.0 + v1beta1-rev20260713-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-serviceusage:v1beta1-rev20260423-2.0.0' + implementation 'com.google.apis:google-api-services-serviceusage:v1beta1-rev20260713-2.0.0' } ```