Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2963)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jan 16, 2025
1 parent 0dc24d9 commit 0bf19b3
Show file tree
Hide file tree
Showing 30 changed files with 815 additions and 103 deletions.
92 changes: 91 additions & 1 deletion adsenseplatform/v1alpha/adsenseplatform-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,47 @@
}
}
}
},
"groups": {
"methods": {
"list": {
"description": "Lists Platform Groups for a specified Platform.",
"flatPath": "v1alpha/accounts/{accountsId}/platforms/{platformsId}/groups",
"httpMethod": "GET",
"id": "adsenseplatform.accounts.platforms.groups.list",
"parameterOrder": [
"parent"
],
"parameters": {
"pageSize": {
"description": "Optional. The maximum number of groups to include in the response, used for paging. If unspecified, at most 10000 groups will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A page token, received from a previous `ListPlatformGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPlatformGroups` must match the call that provided the page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}",
"location": "path",
"pattern": "^accounts/[^/]+/platforms/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+parent}/groups",
"response": {
"$ref": "ListPlatformGroupsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/adsense",
"https://www.googleapis.com/auth/adsense.readonly"
]
}
}
}
}
}
Expand Down Expand Up @@ -564,7 +605,7 @@
}
}
},
"revision": "20250114",
"revision": "20250115",
"rootUrl": "https://adsenseplatform.googleapis.com/",
"schemas": {
"Account": {
Expand Down Expand Up @@ -677,6 +718,17 @@
"properties": {},
"type": "object"
},
"Decimal": {
"description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).",
"id": "Decimal",
"properties": {
"value": {
"description": "The decimal value, as a string. The string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits (\"the integer\"), optionally followed by a fraction, optionally followed by an exponent. An empty string **should** be interpreted as `0`. The fraction consists of a decimal point followed by zero or more decimal digits. The string must contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal digits. Services **should** normalize decimal values before storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -\u003e `2.5`). - Replacing a zero-length integer value with `0` (`.5` -\u003e `0.5`). - Coercing the exponent character to upper-case, with explicit sign (`2.5e8` -\u003e `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -\u003e `2.5`). Services **may** perform additional normalization based on its own needs and the internal decimal implementation selected, such as shifting the decimal point and exponent value together (example: `2.5E-1` \u003c-\u003e `0.25`). Additionally, services **may** preserve trailing zeroes in the fraction to indicate increased precision, but are not required to do so. Note that only the `.` character is supported to divide the integer and the fraction; `,` **should not** be supported regardless of locale. Additionally, thousand separators **should not** be supported. If a service does support them, values **must** be normalized. The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range of supported values, the maximum supported precision (total number of digits), and, if applicable, the scale (number of digits after the decimal point), as well as how it behaves when receiving out-of-bounds values. Services **may** choose to accept values passed as input even when the value has a higher precision or scale than the service supports, and **should** round the value to fit the supported scale. Alternatively, the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of the supported range.",
"type": "string"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
Expand Down Expand Up @@ -764,6 +816,24 @@
},
"type": "object"
},
"ListPlatformGroupsResponse": {
"description": "Response definition for the platform groups list rpc.",
"id": "ListPlatformGroupsResponse",
"properties": {
"nextPageToken": {
"description": "Continuation token used to page through platforms. To retrieve the next page of the results, set the next request's \"page_token\" value to this.",
"type": "string"
},
"platformGroups": {
"description": "The platform groups returned in this list response.",
"items": {
"$ref": "PlatformGroup"
},
"type": "array"
}
},
"type": "object"
},
"ListPlatformsResponse": {
"description": "Response definition for the platform list rpc.",
"id": "ListPlatformsResponse",
Expand Down Expand Up @@ -851,6 +921,26 @@
},
"type": "object"
},
"PlatformGroup": {
"description": "Representation of a Transparent Platform Group.",
"id": "PlatformGroup",
"properties": {
"description": {
"description": "Output only. Description of the PlatformGroup.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}",
"type": "string"
},
"revshareMillipercent": {
"$ref": "Decimal",
"description": "The revenue share of the PlatformGroup, in millipercent (e.g. 15000 = 15%)."
}
},
"type": "object"
},
"RequestSiteReviewResponse": {
"description": "Response definition for the site request review rpc.",
"id": "RequestSiteReviewResponse",
Expand Down
Loading

0 comments on commit 0bf19b3

Please sign in to comment.