Skip to content

Commit

Permalink
feat(cloudbilling): update the API
Browse files Browse the repository at this point in the history
#### cloudbilling:v1
The following keys were added:
- schemas.GeoTaxonomy.description
- schemas.GeoTaxonomy.id
- schemas.GeoTaxonomy.properties.regions.description
- schemas.GeoTaxonomy.properties.regions.items.type
- schemas.GeoTaxonomy.properties.regions.type
- schemas.GeoTaxonomy.properties.type.description
- schemas.GeoTaxonomy.properties.type.enum
- schemas.GeoTaxonomy.properties.type.enumDescriptions
- schemas.GeoTaxonomy.properties.type.type
- schemas.GeoTaxonomy.type
- schemas.Sku.properties.geoTaxonomy.$ref
- schemas.Sku.properties.geoTaxonomy.description

The following keys were changed:
- schemas.AuditConfig.description
- schemas.AuditLogConfig.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 10, 2020
1 parent e74b3bf commit c174f6e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
40 changes: 37 additions & 3 deletions discovery/cloudbilling-v1.json
Expand Up @@ -495,7 +495,7 @@
}
}
},
"revision": "20200509",
"revision": "20200623",
"rootUrl": "https://cloudbilling.googleapis.com/",
"schemas": {
"AggregationInfo": {
Expand Down Expand Up @@ -537,7 +537,7 @@
"type": "object"
},
"AuditConfig": {
"description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:jose@example.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"sampleservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:aliya@example.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts jose@example.com from DATA_READ logging, and\naliya@example.com from DATA_WRITE logging.",
"description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\",\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:jose@example.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\"\n },\n {\n \"log_type\": \"ADMIN_READ\"\n }\n ]\n },\n {\n \"service\": \"sampleservice.googleapis.com\",\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\"\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:aliya@example.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts jose@example.com from DATA_READ logging, and\naliya@example.com from DATA_WRITE logging.",
"id": "AuditConfig",
"properties": {
"auditLogConfigs": {
Expand All @@ -555,7 +555,7 @@
"type": "object"
},
"AuditLogConfig": {
"description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:jose@example.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\njose@example.com from DATA_READ logging.",
"description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:jose@example.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\"\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\njose@example.com from DATA_READ logging.",
"id": "AuditLogConfig",
"properties": {
"exemptedMembers": {
Expand Down Expand Up @@ -675,6 +675,36 @@
},
"type": "object"
},
"GeoTaxonomy": {
"description": "Encapsulates the geographic taxonomy data for a sku.",
"id": "GeoTaxonomy",
"properties": {
"regions": {
"description": "The list of regions associated with a sku. Empty for Global skus, which are\nassociated with all GCP regions.",
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"description": "The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.",
"enum": [
"TYPE_UNSPECIFIED",
"GLOBAL",
"REGIONAL",
"MULTI_REGIONAL"
],
"enumDescriptions": [
"The type is not specified.",
"The sku is global in nature, e.g. a license sku. Global skus are\navailable in all regions, and so have an empty region list.",
"The sku is available in a specific region, e.g. \"us-west2\".",
"The sku is associated with multiple regions, e.g. \"us-west2\" and\n\"us-east1\"."
],
"type": "string"
}
},
"type": "object"
},
"ListBillingAccountsResponse": {
"description": "Response message for `ListBillingAccounts`.",
"id": "ListBillingAccountsResponse",
Expand Down Expand Up @@ -942,6 +972,10 @@
"description": "A human readable description of the SKU, has a maximum length of 256\ncharacters.",
"type": "string"
},
"geoTaxonomy": {
"$ref": "GeoTaxonomy",
"description": "The geographic taxonomy for this sku."
},
"name": {
"description": "The resource name for the SKU.\nExample: \"services/DA34-426B-A397/skus/AA95-CD31-42FE\"",
"type": "string"
Expand Down
21 changes: 19 additions & 2 deletions src/apis/cloudbilling/v1.ts
Expand Up @@ -143,7 +143,7 @@ export namespace cloudbilling_v1 {
aggregationLevel?: string | null;
}
/**
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "sampleservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
*/
export interface Schema$AuditConfig {
/**
Expand All @@ -156,7 +156,7 @@ export namespace cloudbilling_v1 {
service?: string | null;
}
/**
* Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE", } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
* Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
*/
export interface Schema$AuditLogConfig {
/**
Expand Down Expand Up @@ -248,6 +248,19 @@ export namespace cloudbilling_v1 {
*/
title?: string | null;
}
/**
* Encapsulates the geographic taxonomy data for a sku.
*/
export interface Schema$GeoTaxonomy {
/**
* The list of regions associated with a sku. Empty for Global skus, which are associated with all GCP regions.
*/
regions?: string[] | null;
/**
* The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
*/
type?: string | null;
}
/**
* Response message for `ListBillingAccounts`.
*/
Expand Down Expand Up @@ -463,6 +476,10 @@ export namespace cloudbilling_v1 {
* A human readable description of the SKU, has a maximum length of 256 characters.
*/
description?: string | null;
/**
* The geographic taxonomy for this sku.
*/
geoTaxonomy?: Schema$GeoTaxonomy;
/**
* The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
*/
Expand Down

0 comments on commit c174f6e

Please sign in to comment.