Skip to content
Merged
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
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-serviceconsumermanagement</artifactId>
<version>v1beta1-rev20260423-2.0.0</version>
<version>v1beta1-rev20260721-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-serviceconsumermanagement:v1beta1-rev20260423-2.0.0'
implementation 'com.google.apis:google-api-services-serviceconsumermanagement:v1beta1-rev20260721-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
@SuppressWarnings("javadoc")
public final class MetricRule extends com.google.api.client.json.GenericJson {

/**
* Optional. Metrics to update when the selected methods are called, and the associated cost
* applied to each metric, iff the source of the call is an agent. The key of the map is the
* metric name, and the values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.util.Map<String, java.lang.Long> agenticMetricCosts;

/**
* Metrics to update when the selected methods are called, and the associated cost applied to each
* metric. The key of the map is the metric name, and the values are the amount increased for the
Expand All @@ -40,13 +50,46 @@ public final class MetricRule extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.util.Map<String, java.lang.Long> metricCosts;

/**
* Optional. Metrics to update when the selected methods are called, and the associated cost
* applied to each metric, iff the source of the call is not an agent. The key of the map is the
* metric name, and the values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.util.Map<String, java.lang.Long> nonagenticMetricCosts;

/**
* Selects the methods to which this rule applies. Refer to selector for syntax details.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String selector;

/**
* Optional. Metrics to update when the selected methods are called, and the associated cost
* applied to each metric, iff the source of the call is an agent. The key of the map is the
* metric name, and the values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.Long> getAgenticMetricCosts() {
return agenticMetricCosts;
}

/**
* Optional. Metrics to update when the selected methods are called, and the associated cost
* applied to each metric, iff the source of the call is an agent. The key of the map is the
* metric name, and the values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
* @param agenticMetricCosts agenticMetricCosts or {@code null} for none
*/
public MetricRule setAgenticMetricCosts(java.util.Map<String, java.lang.Long> agenticMetricCosts) {
this.agenticMetricCosts = agenticMetricCosts;
return this;
}

/**
* Metrics to update when the selected methods are called, and the associated cost applied to each
* metric. The key of the map is the metric name, and the values are the amount increased for the
Expand All @@ -68,6 +111,29 @@ public MetricRule setMetricCosts(java.util.Map<String, java.lang.Long> metricCos
return this;
}

/**
* Optional. Metrics to update when the selected methods are called, and the associated cost
* applied to each metric, iff the source of the call is not an agent. The key of the map is the
* metric name, and the values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.Long> getNonagenticMetricCosts() {
return nonagenticMetricCosts;
}

/**
* Optional. Metrics to update when the selected methods are called, and the associated cost
* applied to each metric, iff the source of the call is not an agent. The key of the map is the
* metric name, and the values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
* @param nonagenticMetricCosts nonagenticMetricCosts or {@code null} for none
*/
public MetricRule setNonagenticMetricCosts(java.util.Map<String, java.lang.Long> nonagenticMetricCosts) {
this.nonagenticMetricCosts = nonagenticMetricCosts;
return this;
}

/**
* Selects the methods to which this rule applies. Refer to selector for syntax details.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ public final class QuotaLimit extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Optional. This is only informational, the logic to allocate the quota to the correct metric
* (such as in `metric_rules`) should identify which quota metrics to allocate to.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String trafficSource;

/**
* Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The
* supported unit kinds are determined by the quota backend system. Here are some examples: *
Expand Down Expand Up @@ -306,6 +314,25 @@ public QuotaLimit setName(java.lang.String name) {
return this;
}

/**
* Optional. This is only informational, the logic to allocate the quota to the correct metric
* (such as in `metric_rules`) should identify which quota metrics to allocate to.
* @return value or {@code null} for none
*/
public java.lang.String getTrafficSource() {
return trafficSource;
}

/**
* Optional. This is only informational, the logic to allocate the quota to the correct metric
* (such as in `metric_rules`) should identify which quota metrics to allocate to.
* @param trafficSource trafficSource or {@code null} for none
*/
public QuotaLimit setTrafficSource(java.lang.String trafficSource) {
this.trafficSource = trafficSource;
return this;
}

/**
* Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The
* supported unit kinds are determined by the quota backend system. Here are some examples: *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-serviceconsumermanagement</artifactId>
<version>v1beta1-rev20260423-2.0.0</version>
<name>Service Consumer Management API v1beta1-rev20260423-2.0.0</name>
<version>v1beta1-rev20260721-2.0.0</version>
<name>Service Consumer Management API v1beta1-rev20260721-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
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-serviceconsumermanagement</artifactId>
<version>v1beta1-rev20260423-2.0.0</version>
<version>v1beta1-rev20260721-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-serviceconsumermanagement:v1beta1-rev20260423-2.0.0'
implementation 'com.google.apis:google-api-services-serviceconsumermanagement:v1beta1-rev20260721-2.0.0'
}
```

Expand Down
Loading