From d4a169cd483035552a785b2400b89ab3e1cf9075 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 29 Feb 2020 10:56:19 -0800 Subject: [PATCH] fix: proper enum types; updated .jsdoc.js --- packages/google-cloud-secretmanager/.jsdoc.js | 29 ++++---- .../protos/protos.d.ts | 72 +++++++++---------- .../google-cloud-secretmanager/synth.metadata | 7 +- 3 files changed, 54 insertions(+), 54 deletions(-) diff --git a/packages/google-cloud-secretmanager/.jsdoc.js b/packages/google-cloud-secretmanager/.jsdoc.js index 5069431f998..d4d4c584200 100644 --- a/packages/google-cloud-secretmanager/.jsdoc.js +++ b/packages/google-cloud-secretmanager/.jsdoc.js @@ -1,21 +1,20 @@ -/*! - * Copyright 2019 Google LLC. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// // ** This file is automatically generated by gapic-generator-typescript. ** // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** - */ 'use strict'; diff --git a/packages/google-cloud-secretmanager/protos/protos.d.ts b/packages/google-cloud-secretmanager/protos/protos.d.ts index 3107cac4f84..e06b0dd1a93 100644 --- a/packages/google-cloud-secretmanager/protos/protos.d.ts +++ b/packages/google-cloud-secretmanager/protos/protos.d.ts @@ -147,7 +147,7 @@ export namespace google { destroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion state */ - state?: (google.cloud.secretmanager.v1.SecretVersion.State|null); + state?: (google.cloud.secretmanager.v1.SecretVersion.State|keyof typeof google.cloud.secretmanager.v1.SecretVersion.State|null); } /** Represents a SecretVersion. */ @@ -169,7 +169,7 @@ export namespace google { public destroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion state. */ - public state: google.cloud.secretmanager.v1.SecretVersion.State; + public state: (google.cloud.secretmanager.v1.SecretVersion.State|keyof typeof google.cloud.secretmanager.v1.SecretVersion.State); /** * Creates a new SecretVersion instance using the specified properties. @@ -626,7 +626,7 @@ export namespace google { interface ISecretPayload { /** SecretPayload data */ - data?: (Uint8Array|null); + data?: (Uint8Array|string|null); } /** Represents a SecretPayload. */ @@ -639,7 +639,7 @@ export namespace google { constructor(properties?: google.cloud.secretmanager.v1.ISecretPayload); /** SecretPayload data. */ - public data: Uint8Array; + public data: (Uint8Array|string); /** * Creates a new SecretPayload instance using the specified properties. @@ -2608,7 +2608,7 @@ export namespace google { destroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion state */ - state?: (google.cloud.secrets.v1beta1.SecretVersion.State|null); + state?: (google.cloud.secrets.v1beta1.SecretVersion.State|keyof typeof google.cloud.secrets.v1beta1.SecretVersion.State|null); } /** Represents a SecretVersion. */ @@ -2630,7 +2630,7 @@ export namespace google { public destroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion state. */ - public state: google.cloud.secrets.v1beta1.SecretVersion.State; + public state: (google.cloud.secrets.v1beta1.SecretVersion.State|keyof typeof google.cloud.secrets.v1beta1.SecretVersion.State); /** * Creates a new SecretVersion instance using the specified properties. @@ -3087,7 +3087,7 @@ export namespace google { interface ISecretPayload { /** SecretPayload data */ - data?: (Uint8Array|null); + data?: (Uint8Array|string|null); } /** Represents a SecretPayload. */ @@ -3100,7 +3100,7 @@ export namespace google { constructor(properties?: google.cloud.secrets.v1beta1.ISecretPayload); /** SecretPayload data. */ - public data: Uint8Array; + public data: (Uint8Array|string); /** * Creates a new SecretPayload instance using the specified properties. @@ -4969,7 +4969,7 @@ export namespace google { nameField?: (string|null); /** ResourceDescriptor history */ - history?: (google.api.ResourceDescriptor.History|null); + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); /** ResourceDescriptor plural */ plural?: (string|null); @@ -4997,7 +4997,7 @@ export namespace google { public nameField: string; /** ResourceDescriptor history. */ - public history: google.api.ResourceDescriptor.History; + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); /** ResourceDescriptor plural. */ public plural: string; @@ -6216,10 +6216,10 @@ export namespace google { number?: (number|null); /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|null); + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|null); + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); /** FieldDescriptorProto typeName */ typeName?: (string|null); @@ -6256,10 +6256,10 @@ export namespace google { public number: number; /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); /** FieldDescriptorProto typeName. */ public typeName: string; @@ -7034,7 +7034,7 @@ export namespace google { javaStringCheckUtf8?: (boolean|null); /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); /** FileOptions goPackage */ goPackage?: (string|null); @@ -7110,7 +7110,7 @@ export namespace google { public javaStringCheckUtf8: boolean; /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); /** FileOptions goPackage. */ public goPackage: string; @@ -7359,13 +7359,13 @@ export namespace google { interface IFieldOptions { /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); /** FieldOptions packed */ packed?: (boolean|null); /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); /** FieldOptions lazy */ lazy?: (boolean|null); @@ -7396,13 +7396,13 @@ export namespace google { constructor(properties?: google.protobuf.IFieldOptions); /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); /** FieldOptions packed. */ public packed: boolean; /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); /** FieldOptions lazy. */ public lazy: boolean; @@ -7901,7 +7901,7 @@ export namespace google { deprecated?: (boolean|null); /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); /** MethodOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -7926,7 +7926,7 @@ export namespace google { public deprecated: boolean; /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); /** MethodOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -8022,16 +8022,16 @@ export namespace google { identifierValue?: (string|null); /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (number|Long|null); + positiveIntValue?: (number|Long|string|null); /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (number|Long|null); + negativeIntValue?: (number|Long|string|null); /** UninterpretedOption doubleValue */ doubleValue?: (number|null); /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|null); + stringValue?: (Uint8Array|string|null); /** UninterpretedOption aggregateValue */ aggregateValue?: (string|null); @@ -8053,16 +8053,16 @@ export namespace google { public identifierValue: string; /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: (number|Long); + public positiveIntValue: (number|Long|string); /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: (number|Long); + public negativeIntValue: (number|Long|string); /** UninterpretedOption doubleValue. */ public doubleValue: number; /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; + public stringValue: (Uint8Array|string); /** UninterpretedOption aggregateValue. */ public aggregateValue: string; @@ -8649,7 +8649,7 @@ export namespace google { interface ITimestamp { /** Timestamp seconds */ - seconds?: (number|Long|null); + seconds?: (number|Long|string|null); /** Timestamp nanos */ nanos?: (number|null); @@ -8665,7 +8665,7 @@ export namespace google { constructor(properties?: google.protobuf.ITimestamp); /** Timestamp seconds. */ - public seconds: (number|Long); + public seconds: (number|Long|string); /** Timestamp nanos. */ public nanos: number; @@ -9487,7 +9487,7 @@ export namespace google { bindings?: (google.iam.v1.IBinding[]|null); /** Policy etag */ - etag?: (Uint8Array|null); + etag?: (Uint8Array|string|null); } /** Represents a Policy. */ @@ -9506,7 +9506,7 @@ export namespace google { public bindings: google.iam.v1.IBinding[]; /** Policy etag. */ - public etag: Uint8Array; + public etag: (Uint8Array|string); /** * Creates a new Policy instance using the specified properties. @@ -9781,7 +9781,7 @@ export namespace google { interface IBindingDelta { /** BindingDelta action */ - action?: (google.iam.v1.BindingDelta.Action|null); + action?: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action|null); /** BindingDelta role */ role?: (string|null); @@ -9803,7 +9803,7 @@ export namespace google { constructor(properties?: google.iam.v1.IBindingDelta); /** BindingDelta action. */ - public action: google.iam.v1.BindingDelta.Action; + public action: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action); /** BindingDelta role. */ public role: string; @@ -9899,7 +9899,7 @@ export namespace google { interface IAuditConfigDelta { /** AuditConfigDelta action */ - action?: (google.iam.v1.AuditConfigDelta.Action|null); + action?: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action|null); /** AuditConfigDelta service */ service?: (string|null); @@ -9921,7 +9921,7 @@ export namespace google { constructor(properties?: google.iam.v1.IAuditConfigDelta); /** AuditConfigDelta action. */ - public action: google.iam.v1.AuditConfigDelta.Action; + public action: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action); /** AuditConfigDelta service. */ public service: string; diff --git a/packages/google-cloud-secretmanager/synth.metadata b/packages/google-cloud-secretmanager/synth.metadata index e7207869c9c..b8cebc183c6 100644 --- a/packages/google-cloud-secretmanager/synth.metadata +++ b/packages/google-cloud-secretmanager/synth.metadata @@ -1,12 +1,13 @@ { - "updateTime": "2020-02-28T19:35:16.408237Z", + "updateTime": "2020-02-29T12:40:05.062073Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e9e90a787703ec5d388902e2cb796aaed3a385b4", - "internalRef": "297671458" + "sha": "83c6f84035ee0f80eaa44d8b688a010461cc4080", + "internalRef": "297918498", + "log": "83c6f84035ee0f80eaa44d8b688a010461cc4080\nUpdate google/api/auth.proto to make AuthProvider to have JwtLocation\n\nPiperOrigin-RevId: 297918498\n\n" } }, {