From 3a183c2b536cbf4bb5d4ccecd7b057d35bca0816 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Thu, 11 Jul 2019 12:21:43 -0700 Subject: [PATCH] fix!: don't replace '.' with '_' in interface (#1757) BREAKING CHANGE: options when instantiating clients now expect correct `vx.x` format rather than failing `vx_x` format (effects only TypeScript). --- src/apis/adexchangebuyer/v1.2.ts | 2 +- src/apis/adexchangebuyer/v1.3.ts | 2 +- src/apis/adexchangebuyer/v1.4.ts | 2 +- src/apis/adsense/v1.4.ts | 2 +- src/apis/adsensehost/v4.1.ts | 2 +- src/apis/analytics/v2.4.ts | 2 +- src/apis/analyticsreporting/v4.ts | 2 +- src/apis/androidpublisher/v1.1.ts | 2 +- src/apis/bigquery/v2.ts | 36 ++++++++++++------------ src/apis/content/v2.1.ts | 2 +- src/apis/dfareporting/v3.1.ts | 2 +- src/apis/dfareporting/v3.2.ts | 2 +- src/apis/dfareporting/v3.3.ts | 2 +- src/apis/fcm/v1.ts | 12 ++++++++ src/apis/iam/v1.ts | 12 ++++---- src/apis/iap/v1beta1.ts | 4 +-- src/apis/pubsub/v1.ts | 15 ++++++++++ src/apis/pubsub/v1beta2.ts | 10 +++++++ src/apis/runtimeconfig/v1beta1.ts | 9 ++++-- src/apis/servicemanagement/v1.ts | 8 ------ src/generator/templates/api-endpoint.njk | 2 +- 21 files changed, 83 insertions(+), 49 deletions(-) diff --git a/src/apis/adexchangebuyer/v1.2.ts b/src/apis/adexchangebuyer/v1.2.ts index fe9fa6653a1..032b5e77a5b 100644 --- a/src/apis/adexchangebuyer/v1.2.ts +++ b/src/apis/adexchangebuyer/v1.2.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace adexchangebuyer_v1_2 { export interface Options extends GlobalOptions { - version: 'v1_2'; + version: 'v1.2'; } interface StandardParameters { diff --git a/src/apis/adexchangebuyer/v1.3.ts b/src/apis/adexchangebuyer/v1.3.ts index b64bc08f98f..3a5beb815c7 100644 --- a/src/apis/adexchangebuyer/v1.3.ts +++ b/src/apis/adexchangebuyer/v1.3.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace adexchangebuyer_v1_3 { export interface Options extends GlobalOptions { - version: 'v1_3'; + version: 'v1.3'; } interface StandardParameters { diff --git a/src/apis/adexchangebuyer/v1.4.ts b/src/apis/adexchangebuyer/v1.4.ts index 46c2e710ecf..4358bbe663b 100644 --- a/src/apis/adexchangebuyer/v1.4.ts +++ b/src/apis/adexchangebuyer/v1.4.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace adexchangebuyer_v1_4 { export interface Options extends GlobalOptions { - version: 'v1_4'; + version: 'v1.4'; } interface StandardParameters { diff --git a/src/apis/adsense/v1.4.ts b/src/apis/adsense/v1.4.ts index 50e7d894e1f..a3a0a7a2101 100644 --- a/src/apis/adsense/v1.4.ts +++ b/src/apis/adsense/v1.4.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace adsense_v1_4 { export interface Options extends GlobalOptions { - version: 'v1_4'; + version: 'v1.4'; } interface StandardParameters { diff --git a/src/apis/adsensehost/v4.1.ts b/src/apis/adsensehost/v4.1.ts index 243e47ab6fa..50f1976db9e 100644 --- a/src/apis/adsensehost/v4.1.ts +++ b/src/apis/adsensehost/v4.1.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace adsensehost_v4_1 { export interface Options extends GlobalOptions { - version: 'v4_1'; + version: 'v4.1'; } interface StandardParameters { diff --git a/src/apis/analytics/v2.4.ts b/src/apis/analytics/v2.4.ts index 6429b039dcb..1b5f1222543 100644 --- a/src/apis/analytics/v2.4.ts +++ b/src/apis/analytics/v2.4.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace analytics_v2_4 { export interface Options extends GlobalOptions { - version: 'v2_4'; + version: 'v2.4'; } interface StandardParameters { diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index 780b638978c..d7e38d37e40 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -210,7 +210,7 @@ export namespace analyticsreporting_v4 { */ cohorts?: Schema$Cohort[]; /** - * Enable Life Time Value (LTV). LTV measures lifetime value for users acquired through different channels. Please see: [Cohort Analysis](https://support.google.com/analytics/answer/6074676) and [Lifetime Value](https://support.google.com/analytics/answer/6182550) If the value of lifetimeValue is false: - The metric values are similar to the values in the web interface cohort report. - The cohort definition date ranges must be aligned to the calendar week and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in the cohort definition should be a Sunday and the `endDate` should be the following Saturday, and for `ga:cohortNthMonth`, the `startDate` should be the 1st of the month and `endDate` should be the last day of the month. When the lifetimeValue is true: - The metric values will correspond to the values in the web interface LifeTime value report. - The Lifetime Value report shows you how user value (Revenue) and engagement (Appviews, Goal Completions, Sessions, and Session Duration) grow during the 90 days after a user is acquired. - The metrics are calculated as a cumulative average per user per the time increment. - The cohort definition date ranges need not be aligned to the calendar week and month boundaries. - The `viewId` must be an [app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews) + * Enable Life Time Value (LTV). LTV measures lifetime value for users acquired through different channels. Please see: [Cohort Analysis](https://support.google.com/analytics/answer/6074676) and [Lifetime Value](https://support.google.com/analytics/answer/6182550) If the value of lifetimeValue is false: - The metric values are similar to the values in the web interface cohort report. - The cohort definition date ranges must be aligned to the calendar week and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in the cohort definition should be a Sunday and the `endDate` should be the following Saturday, and for `ga:cohortNthMonth`, the `startDate` should be the 1st of the month and `endDate` should be the last day of the month. When the lifetimeValue is true: - The metric values will correspond to the values in the web interface LifeTime value report. - The Lifetime Value report shows you how user value (Revenue) and engagement (Appviews, Goal Completions, Sessions, and Session Duration) grow during the 90 days after a user is acquired. - The metrics are calculated as a cumulative average per user per the time increment. - The cohort definition date ranges need not be aligned to the calendar week and month boundaries. - The `viewId` must be an [app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews) */ lifetimeValue?: boolean; } diff --git a/src/apis/androidpublisher/v1.1.ts b/src/apis/androidpublisher/v1.1.ts index 2a29863a165..14a3d18c3a6 100644 --- a/src/apis/androidpublisher/v1.1.ts +++ b/src/apis/androidpublisher/v1.1.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace androidpublisher_v1_1 { export interface Options extends GlobalOptions { - version: 'v1_1'; + version: 'v1.1'; } interface StandardParameters { diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index b58e2f44bed..a0fd7a90a38 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -337,15 +337,15 @@ export namespace bigquery_v2 { * [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run. */ trainingOptions?: { + l1Reg?: number; + maxIteration?: string; + learnRate?: number; + minRelProgress?: number; l2Reg?: number; learnRateStrategy?: string; warmStart?: boolean; lineSearchInitLearnRate?: number; earlyStop?: boolean; - l1Reg?: number; - maxIteration?: string; - learnRate?: number; - minRelProgress?: number; }; } /** @@ -428,13 +428,13 @@ export namespace bigquery_v2 { * [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; */ access?: Array<{ + role?: string; + view?: Schema$TableReference; + groupByEmail?: string; userByEmail?: string; domain?: string; iamMember?: string; specialGroup?: string; - role?: string; - view?: Schema$TableReference; - groupByEmail?: string; }>; /** * [Output-only] The time when this dataset was created, in milliseconds since the epoch. @@ -1235,15 +1235,15 @@ export namespace bigquery_v2 { * List of jobs that were requested. */ jobs?: Array<{ + statistics?: Schema$JobStatistics; id?: string; configuration?: Schema$JobConfiguration; user_email?: string; - kind?: string; errorResult?: Schema$ErrorProto; + kind?: string; jobReference?: Schema$JobReference; status?: Schema$JobStatus; state?: string; - statistics?: Schema$JobStatistics; }>; /** * The resource type of the response. @@ -1308,7 +1308,7 @@ export namespace bigquery_v2 { /** * [Output-only] Job resource usage breakdown by reservation. */ - reservationUsage?: Array<{name?: string; slotMs?: string}>; + reservationUsage?: Array<{slotMs?: string; name?: string}>; /** * [Output-only] Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job. */ @@ -1378,7 +1378,7 @@ export namespace bigquery_v2 { /** * [Output-only] Job resource usage breakdown by reservation. */ - reservationUsage?: Array<{name?: string; slotMs?: string}>; + reservationUsage?: Array<{slotMs?: string; name?: string}>; /** * [Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. */ @@ -1564,7 +1564,7 @@ export namespace bigquery_v2 { /** * [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query. */ - modelOptions?: {labels?: string[]; lossType?: string; modelType?: string}; + modelOptions?: {lossType?: string; modelType?: string; labels?: string[]}; /** * [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query. */ @@ -1617,11 +1617,11 @@ export namespace bigquery_v2 { * Projects to which you have at least READ access. */ projects?: Array<{ + id?: string; + projectReference?: Schema$ProjectReference; friendlyName?: string; numericId?: string; kind?: string; - id?: string; - projectReference?: Schema$ProjectReference; }>; /** * The total number of projects in the list. @@ -1657,9 +1657,9 @@ export namespace bigquery_v2 { * [Optional] The types of the fields of this struct, in order, if this is a struct. */ structTypes?: Array<{ + type?: Schema$QueryParameterType; name?: string; description?: string; - type?: Schema$QueryParameterType; }>; /** * [Required] The top level type of this field. @@ -1806,7 +1806,7 @@ export namespace bigquery_v2 { /** * [TrustedTester] [Required] Defines the ranges for range partitioning. */ - range?: {end?: string; interval?: string; start?: string}; + range?: {interval?: string; start?: string; end?: string}; } /** * Evaluation metrics for regression models. @@ -2168,11 +2168,11 @@ export namespace bigquery_v2 { tables?: Array<{ clustering?: Schema$Clustering; type?: string; - id?: string; expirationTime?: string; + id?: string; tableReference?: Schema$TableReference; - friendlyName?: string; timePartitioning?: Schema$TimePartitioning; + friendlyName?: string; kind?: string; view?: {useLegacySql?: boolean}; creationTime?: string; diff --git a/src/apis/content/v2.1.ts b/src/apis/content/v2.1.ts index a8a9465ac39..599919f751e 100644 --- a/src/apis/content/v2.1.ts +++ b/src/apis/content/v2.1.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace content_v2_1 { export interface Options extends GlobalOptions { - version: 'v2_1'; + version: 'v2.1'; } interface StandardParameters { diff --git a/src/apis/dfareporting/v3.1.ts b/src/apis/dfareporting/v3.1.ts index 5ef8adf8c7c..cfe34ec2114 100644 --- a/src/apis/dfareporting/v3.1.ts +++ b/src/apis/dfareporting/v3.1.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace dfareporting_v3_1 { export interface Options extends GlobalOptions { - version: 'v3_1'; + version: 'v3.1'; } interface StandardParameters { diff --git a/src/apis/dfareporting/v3.2.ts b/src/apis/dfareporting/v3.2.ts index 4ce9d00c5c3..5be24c9aef1 100644 --- a/src/apis/dfareporting/v3.2.ts +++ b/src/apis/dfareporting/v3.2.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace dfareporting_v3_2 { export interface Options extends GlobalOptions { - version: 'v3_2'; + version: 'v3.2'; } interface StandardParameters { diff --git a/src/apis/dfareporting/v3.3.ts b/src/apis/dfareporting/v3.3.ts index 2c13b4eb0d8..1960ec32ad8 100644 --- a/src/apis/dfareporting/v3.3.ts +++ b/src/apis/dfareporting/v3.3.ts @@ -38,7 +38,7 @@ import {GaxiosPromise} from 'gaxios'; export namespace dfareporting_v3_3 { export interface Options extends GlobalOptions { - version: 'v3_3'; + version: 'v3.3'; } interface StandardParameters { diff --git a/src/apis/fcm/v1.ts b/src/apis/fcm/v1.ts index bb254b4454b..20fc3b0e5dd 100644 --- a/src/apis/fcm/v1.ts +++ b/src/apis/fcm/v1.ts @@ -191,6 +191,10 @@ export namespace fcm_v1 { * The notification's icon. Sets the notification icon to myicon for drawable resource myicon. If you don't send this key in the request, FCM displays the launcher icon specified in your app manifest. */ icon?: string; + /** + * Contains the URL of an image that is going to be displayed in a notification. If present, it will override google.firebase.fcm.v1.Notification.image. + */ + image?: string; /** * The sound to play when the device receives the notification. Supports "default" or the filename of a sound resource bundled in the app. Sound files must reside in /res/raw/. */ @@ -237,6 +241,10 @@ export namespace fcm_v1 { * Label associated with the message's analytics data. */ analyticsLabel?: string; + /** + * Contains the URL of an image that is going to be displayed in a notification. If present, it will override google.firebase.fcm.v1.Notification.image. + */ + image?: string; } /** * Platform independent options for features provided by the FCM SDKs. @@ -300,6 +308,10 @@ export namespace fcm_v1 { * The notification's body text. */ body?: string; + /** + * Contains the URL of an image that is going to be downloaded on the device and displayed in a notification. JPEG, PNG, BMP have full support across platforms. Animated GIF and video only work on iOS. WebP and HEIF have varying levels of support across platforms and platform versions. Android has 1MB image size limit. Quota usage and implications/costs for hosting image on Firebase Storage: https://firebase.google.com/pricing + */ + image?: string; /** * The notification's title. */ diff --git a/src/apis/iam/v1.ts b/src/apis/iam/v1.ts index 373d1494135..c6d03422dd8 100644 --- a/src/apis/iam/v1.ts +++ b/src/apis/iam/v1.ts @@ -144,7 +144,7 @@ export namespace iam_v1 { name?: string; } /** - * 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:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.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 { /** @@ -166,7 +166,7 @@ export namespace iam_v1 { policyDelta?: Schema$PolicyDelta; } /** - * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.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 { /** @@ -187,7 +187,7 @@ export namespace iam_v1 { */ condition?: Schema$Expr; /** - * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. */ members?: string[]; /** @@ -456,7 +456,7 @@ export namespace iam_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. */ etag?: string; /** @@ -561,7 +561,7 @@ export namespace iam_v1 { */ deleted?: boolean; /** - * Optional. A human-readable description for the role. + * Optional. A human-readable description for the role. */ description?: string; /** @@ -581,7 +581,7 @@ export namespace iam_v1 { */ stage?: string; /** - * Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes. + * Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes. */ title?: string; } diff --git a/src/apis/iap/v1beta1.ts b/src/apis/iap/v1beta1.ts index 316bddb1d57..89fcc3d414a 100644 --- a/src/apis/iap/v1beta1.ts +++ b/src/apis/iap/v1beta1.ts @@ -126,7 +126,7 @@ export namespace iap_v1beta1 { */ condition?: Schema$Expr; /** - * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. */ members?: string[]; /** @@ -182,7 +182,7 @@ export namespace iap_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. */ etag?: string; /** diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index 2ab6fbe29f5..cbc7c5e3574 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -996,6 +996,7 @@ export namespace pubsub_v1 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.options.requestedPolicyVersion Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -1626,6 +1627,10 @@ export namespace pubsub_v1 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. + */ + 'options.requestedPolicyVersion'?: number; /** * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. */ @@ -2249,6 +2254,7 @@ export namespace pubsub_v1 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.options.requestedPolicyVersion Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -3401,6 +3407,10 @@ export namespace pubsub_v1 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. + */ + 'options.requestedPolicyVersion'?: number; /** * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. */ @@ -3967,6 +3977,7 @@ export namespace pubsub_v1 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.options.requestedPolicyVersion Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -4726,6 +4737,10 @@ export namespace pubsub_v1 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. + */ + 'options.requestedPolicyVersion'?: number; /** * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. */ diff --git a/src/apis/pubsub/v1beta2.ts b/src/apis/pubsub/v1beta2.ts index 6414b00eed2..2c477a406cc 100644 --- a/src/apis/pubsub/v1beta2.ts +++ b/src/apis/pubsub/v1beta2.ts @@ -727,6 +727,7 @@ export namespace pubsub_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.options.requestedPolicyVersion Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -1315,6 +1316,10 @@ export namespace pubsub_v1beta2 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. + */ + 'options.requestedPolicyVersion'?: number; /** * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. */ @@ -1651,6 +1656,7 @@ export namespace pubsub_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.options.requestedPolicyVersion Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -2071,6 +2077,10 @@ export namespace pubsub_v1beta2 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. + */ + 'options.requestedPolicyVersion'?: number; /** * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. */ diff --git a/src/apis/runtimeconfig/v1beta1.ts b/src/apis/runtimeconfig/v1beta1.ts index e7f18f16f2a..02316af8a1c 100644 --- a/src/apis/runtimeconfig/v1beta1.ts +++ b/src/apis/runtimeconfig/v1beta1.ts @@ -126,7 +126,7 @@ export namespace runtimeconfig_v1beta1 { */ condition?: Schema$Expr; /** - * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. */ members?: string[]; /** @@ -254,7 +254,7 @@ export namespace runtimeconfig_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. */ etag?: string; /** @@ -634,6 +634,7 @@ export namespace runtimeconfig_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.options.requestedPolicyVersion Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -1060,6 +1061,10 @@ export namespace runtimeconfig_v1beta1 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * Optional. The policy format version to be returned. Acceptable values are 0 and 1. If the value is 0, or the field is omitted, policy format version 1 will be returned. + */ + 'options.requestedPolicyVersion'?: number; /** * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. */ diff --git a/src/apis/servicemanagement/v1.ts b/src/apis/servicemanagement/v1.ts index 40a0509b0ce..55f703e7501 100644 --- a/src/apis/servicemanagement/v1.ts +++ b/src/apis/servicemanagement/v1.ts @@ -182,10 +182,6 @@ export namespace servicemanagement_v1 { * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */ exemptedMembers?: string[]; - /** - * Specifies whether principals can be exempted for the same LogType in lower-level resource policies. If true, any lower-level exemptions will be ignored. - */ - ignoreChildExemptions?: boolean; /** * The log type that this config enables. */ @@ -546,10 +542,6 @@ export namespace servicemanagement_v1 { * A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order. */ rules?: Schema$DocumentationRule[]; - /** - * Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to. - */ - serviceRootUrl?: string; /** * A short summary of what the service does. Can only be provided by plain text. */ diff --git a/src/generator/templates/api-endpoint.njk b/src/generator/templates/api-endpoint.njk index 112d3de4fe5..1edb04bab1f 100644 --- a/src/generator/templates/api-endpoint.njk +++ b/src/generator/templates/api-endpoint.njk @@ -49,7 +49,7 @@ export namespace {{api.name}}_{{api.version|replace('\.', '_')}} { {% set Namespace = [Name, Version]|join('') %} export interface Options extends GlobalOptions { - version: '{{api.version|replace('\.', '_')}}'; + version: '{{api.version}}'; } interface StandardParameters {