Skip to content

Commit

Permalink
feat(servicecontrol): update the API
Browse files Browse the repository at this point in the history
#### servicecontrol:v1
The following keys were added:
- schemas.QuotaError.properties.status.$ref
- schemas.QuotaError.properties.status.description
- schemas.Resource.properties.uid.description
- schemas.Resource.properties.uid.type
- schemas.ServiceAccountDelegationInfo.properties.principalSubject.description
- schemas.ServiceAccountDelegationInfo.properties.principalSubject.type

The following keys were changed:
- schemas.MetricValue.properties.endTime.description
- schemas.MetricValue.properties.startTime.description
- schemas.Money.properties.currencyCode.description
- schemas.Operation.properties.importance.enumDescriptions
- schemas.QuotaOperation.properties.quotaMode.enumDescriptions

#### servicecontrol:v2
The following keys were added:
- schemas.Resource.properties.uid.description
- schemas.Resource.properties.uid.type
- schemas.ServiceAccountDelegationInfo.properties.principalSubject.description
- schemas.ServiceAccountDelegationInfo.properties.principalSubject.type
  • Loading branch information
yoshi-automation authored and bcoe committed Oct 28, 2020
1 parent 00eb137 commit 13e1883
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 10 deletions.
24 changes: 18 additions & 6 deletions discovery/servicecontrol-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
}
}
},
"revision": "20200925",
"revision": "20201016",
"rootUrl": "https://servicecontrol.googleapis.com/",
"schemas": {
"AllocateInfo": {
Expand Down Expand Up @@ -1081,7 +1081,7 @@
"type": "number"
},
"endTime": {
"description": "The end of the time period over which this metric value's measurement applies.",
"description": "The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.",
"format": "google-datetime",
"type": "string"
},
Expand All @@ -1102,7 +1102,7 @@
"description": "A money value."
},
"startTime": {
"description": "The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.",
"description": "The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.",
"format": "google-datetime",
"type": "string"
},
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"id": "Money",
"properties": {
"currencyCode": {
"description": "The 3-letter currency code defined in ISO 4217.",
"description": "The three-letter currency code defined in ISO 4217.",
"type": "string"
},
"nanos": {
Expand Down Expand Up @@ -1186,7 +1186,7 @@
"enumDescriptions": [
"The API implementation may cache and aggregate the data. The data may be lost when rare and unexpected system failures occur.",
"The API implementation doesn't cache and aggregate the data. If the method returns successfully, it's guaranteed that the data has been persisted in durable storage.",
"In addition to the behavior described in HIGH, DEBUG enables additional validation logic that is only useful during the onboarding process. This is only available to Google internal services and the service must be whitelisted by chemist-dev@google.com in order to use this level."
"In addition to the behavior described in HIGH, DEBUG enables additional validation logic that is only useful during the onboarding process. This is only available to Google internal services and the service must be allowlisted by chemist-dev@google.com in order to use this level."
],
"type": "string"
},
Expand Down Expand Up @@ -1327,6 +1327,10 @@
"description": "Free-form text that provides details on the cause of the error.",
"type": "string"
},
"status": {
"$ref": "Status",
"description": "Contains additional information about the quota error. If available, `status.code` will be non zero."
},
"subject": {
"description": "Subject to whom this error applies. See the specific enum for more details on this field. For example, \"clientip:\" or \"project:\".",
"type": "string"
Expand Down Expand Up @@ -1408,7 +1412,7 @@
"For AllocateQuota request, allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, allocation error will be returned and no quota will be allocated. If multiple quotas are part of the request, and one fails, none of the quotas are allocated or released.",
"The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, request does not fail but all available quota will be allocated. For rate quota, BEST_EFFORT will continue to deduct from other groups even if one does not have enough quota. For allocation, it will find the minimum available amount across all groups and deduct that amount from all the affected groups.",
"For AllocateQuota request, only checks if there is enough quota available and does not change the available quota. No lock is placed on the available quota either.",
"Unimplemented. When used in AllocateQuotaRequest, this returns the effective quota limit(s) in the response, and no quota check will be performed. Not supported for other requests, and even for AllocateQuotaRequest, this is currently supported only for whitelisted services.",
"Unimplemented. When used in AllocateQuotaRequest, this returns the effective quota limit(s) in the response, and no quota check will be performed. Not supported for other requests, and even for AllocateQuotaRequest, this is currently supported only for allowlisted services.",
"The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the requested amount is higher than the available quota, request does not fail and remaining quota would become negative (going over the limit). Not supported for Rate Quota."
],
"type": "string"
Expand Down Expand Up @@ -1625,6 +1629,10 @@
"type": {
"description": "The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be \"{service}/{kind}\".",
"type": "string"
},
"uid": {
"description": "The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1677,6 +1685,10 @@
"$ref": "FirstPartyPrincipal",
"description": "First party (Google) identity as the real authority."
},
"principalSubject": {
"description": "A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.",
"type": "string"
},
"thirdPartyPrincipal": {
"$ref": "ThirdPartyPrincipal",
"description": "Third party identity as the real authority."
Expand Down
10 changes: 9 additions & 1 deletion discovery/servicecontrol-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
}
}
},
"revision": "20200925",
"revision": "20201016",
"rootUrl": "https://servicecontrol.googleapis.com/",
"schemas": {
"Api": {
Expand Down Expand Up @@ -649,6 +649,10 @@
"type": {
"description": "The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be \"{service}/{kind}\".",
"type": "string"
},
"uid": {
"description": "The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -730,6 +734,10 @@
"$ref": "FirstPartyPrincipal",
"description": "First party (Google) identity as the real authority."
},
"principalSubject": {
"description": "A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.",
"type": "string"
},
"thirdPartyPrincipal": {
"$ref": "ThirdPartyPrincipal",
"description": "Third party identity as the real authority."
Expand Down
18 changes: 15 additions & 3 deletions src/apis/servicecontrol/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export namespace servicecontrol_v1 {
*/
doubleValue?: number | null;
/**
* The end of the time period over which this metric value's measurement applies.
* The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
*/
endTime?: string | null;
/**
Expand All @@ -745,7 +745,7 @@ export namespace servicecontrol_v1 {
*/
moneyValue?: Schema$Money;
/**
* The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.
* The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
*/
startTime?: string | null;
/**
Expand All @@ -771,7 +771,7 @@ export namespace servicecontrol_v1 {
*/
export interface Schema$Money {
/**
* The 3-letter currency code defined in ISO 4217.
* The three-letter currency code defined in ISO 4217.
*/
currencyCode?: string | null;
/**
Expand Down Expand Up @@ -881,6 +881,10 @@ export namespace servicecontrol_v1 {
* Free-form text that provides details on the cause of the error.
*/
description?: string | null;
/**
* Contains additional information about the quota error. If available, `status.code` will be non zero.
*/
status?: Schema$Status;
/**
* Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip:" or "project:".
*/
Expand Down Expand Up @@ -1099,6 +1103,10 @@ export namespace servicecontrol_v1 {
* The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be "{service}/{kind}".
*/
type?: string | null;
/**
* The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
*/
uid?: string | null;
}
/**
* Describes a resource associated with this operation.
Expand Down Expand Up @@ -1138,6 +1146,10 @@ export namespace servicecontrol_v1 {
* First party (Google) identity as the real authority.
*/
firstPartyPrincipal?: Schema$FirstPartyPrincipal;
/**
* A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.
*/
principalSubject?: string | null;
/**
* Third party identity as the real authority.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/apis/servicecontrol/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ export namespace servicecontrol_v2 {
* The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be "{service}/{kind}".
*/
type?: string | null;
/**
* The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
*/
uid?: string | null;
}
/**
* Describes a resource referenced in the request.
Expand Down Expand Up @@ -564,6 +568,10 @@ export namespace servicecontrol_v2 {
* First party (Google) identity as the real authority.
*/
firstPartyPrincipal?: Schema$FirstPartyPrincipal;
/**
* A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.
*/
principalSubject?: string | null;
/**
* Third party identity as the real authority.
*/
Expand Down

0 comments on commit 13e1883

Please sign in to comment.