Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-serviceusage/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-serviceusage</artifactId>
<version>v1-rev20260423-2.0.0</version>
<version>v1-rev20260713-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, java.lang.String> 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
Expand All @@ -54,52 +54,52 @@ 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}.
*/
@com.google.api.client.util.Key
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<String, java.lang.String> 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<String, java.lang.String> 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<EnableRule> getEnableRules() {
return enableRules;
}

/**
* 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<EnableRule> enableRules) {
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -146,15 +146,15 @@ 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() {
return updateTime;
}

/**
* 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Service Usage API. For a detailed explanation see:
Expand All @@ -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<java.lang.String> 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
Expand Down Expand Up @@ -78,36 +69,15 @@ 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<java.lang.String> 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<java.lang.String> 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<java.lang.String> getServices() {
return services;
}

/**
* 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<java.lang.String> services) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Service Usage API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class 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();
}

}
Loading
Loading