Skip to content

Commit

Permalink
fix: proper enum types; updated .jsdoc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Feb 29, 2020
1 parent eb2ec4a commit d4a169c
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
29 changes: 14 additions & 15 deletions packages/google-cloud-secretmanager/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
72 changes: 36 additions & 36 deletions packages/google-cloud-secretmanager/protos/protos.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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.
Expand Down Expand Up @@ -626,7 +626,7 @@ export namespace google {
interface ISecretPayload {

/** SecretPayload data */
data?: (Uint8Array|null);
data?: (Uint8Array|string|null);
}

/** Represents a SecretPayload. */
Expand All @@ -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.
Expand Down Expand Up @@ -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. */
Expand All @@ -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.
Expand Down Expand Up @@ -3087,7 +3087,7 @@ export namespace google {
interface ISecretPayload {

/** SecretPayload data */
data?: (Uint8Array|null);
data?: (Uint8Array|string|null);
}

/** Represents a SecretPayload. */
Expand All @@ -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.
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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[];
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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. */
Expand All @@ -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.
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down
7 changes: 4 additions & 3 deletions packages/google-cloud-secretmanager/synth.metadata
Original file line number Diff line number Diff line change
@@ -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"
}
},
{
Expand Down

0 comments on commit d4a169c

Please sign in to comment.