diff --git a/protos/protos.json b/protos/protos.json index 6109b56..6edf972 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -29,7 +29,17 @@ "options": { "(google.api.http).delete": "/v1/{name=users/*/projects/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=users/*/projects/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteSshPublicKey": { "requestType": "DeleteSshPublicKeyRequest", @@ -37,7 +47,17 @@ "options": { "(google.api.http).delete": "/v1/{name=users/*/sshPublicKeys/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=users/*/sshPublicKeys/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetLoginProfile": { "requestType": "GetLoginProfileRequest", @@ -45,7 +65,17 @@ "options": { "(google.api.http).get": "/v1/{name=users/*}/loginProfile", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=users/*}/loginProfile" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetSshPublicKey": { "requestType": "GetSshPublicKeyRequest", @@ -53,7 +83,17 @@ "options": { "(google.api.http).get": "/v1/{name=users/*/sshPublicKeys/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=users/*/sshPublicKeys/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ImportSshPublicKey": { "requestType": "ImportSshPublicKeyRequest", @@ -62,7 +102,21 @@ "(google.api.http).post": "/v1/{parent=users/*}:importSshPublicKey", "(google.api.http).body": "ssh_public_key", "(google.api.method_signature)": "parent,ssh_public_key,project_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=users/*}:importSshPublicKey", + "body": "ssh_public_key" + } + }, + { + "(google.api.method_signature)": "parent,ssh_public_key" + }, + { + "(google.api.method_signature)": "parent,ssh_public_key,project_id" + } + ] }, "UpdateSshPublicKey": { "requestType": "UpdateSshPublicKeyRequest", @@ -71,7 +125,21 @@ "(google.api.http).patch": "/v1/{name=users/*/sshPublicKeys/*}", "(google.api.http).body": "ssh_public_key", "(google.api.method_signature)": "name,ssh_public_key,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{name=users/*/sshPublicKeys/*}", + "body": "ssh_public_key" + } + }, + { + "(google.api.method_signature)": "name,ssh_public_key" + }, + { + "(google.api.method_signature)": "name,ssh_public_key,update_mask" + } + ] } } }, @@ -340,7 +408,17 @@ "options": { "(google.api.http).delete": "/v1beta/{name=users/*/projects/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=users/*/projects/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteSshPublicKey": { "requestType": "DeleteSshPublicKeyRequest", @@ -348,7 +426,17 @@ "options": { "(google.api.http).delete": "/v1beta/{name=users/*/sshPublicKeys/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=users/*/sshPublicKeys/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetLoginProfile": { "requestType": "GetLoginProfileRequest", @@ -356,7 +444,17 @@ "options": { "(google.api.http).get": "/v1beta/{name=users/*}/loginProfile", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=users/*}/loginProfile" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetSshPublicKey": { "requestType": "GetSshPublicKeyRequest", @@ -364,7 +462,17 @@ "options": { "(google.api.http).get": "/v1beta/{name=users/*/sshPublicKeys/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=users/*/sshPublicKeys/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ImportSshPublicKey": { "requestType": "ImportSshPublicKeyRequest", @@ -373,7 +481,21 @@ "(google.api.http).post": "/v1beta/{parent=users/*}:importSshPublicKey", "(google.api.http).body": "ssh_public_key", "(google.api.method_signature)": "parent,ssh_public_key,project_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=users/*}:importSshPublicKey", + "body": "ssh_public_key" + } + }, + { + "(google.api.method_signature)": "parent,ssh_public_key" + }, + { + "(google.api.method_signature)": "parent,ssh_public_key,project_id" + } + ] }, "UpdateSshPublicKey": { "requestType": "UpdateSshPublicKeyRequest", @@ -382,7 +504,21 @@ "(google.api.http).patch": "/v1beta/{name=users/*/sshPublicKeys/*}", "(google.api.http).body": "ssh_public_key", "(google.api.method_signature)": "name,ssh_public_key,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{name=users/*/sshPublicKeys/*}", + "body": "ssh_public_key" + } + }, + { + "(google.api.method_signature)": "name,ssh_public_key" + }, + { + "(google.api.method_signature)": "name,ssh_public_key,update_mask" + } + ] } } }, diff --git a/src/v1/os_login_service_client.ts b/src/v1/os_login_service_client.ts index 514ac26..0834f7d 100644 --- a/src/v1/os_login_service_client.ts +++ b/src/v1/os_login_service_client.ts @@ -16,11 +16,17 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1/os_login_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './os_login_service_client_config.json'; const version = require('../../../package.json').version; @@ -77,9 +83,9 @@ export class OsLoginServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -92,7 +98,9 @@ export class OsLoginServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -299,7 +307,7 @@ export class OsLoginServiceClient { // ------------------- deletePosixAccount( request: protos.google.cloud.oslogin.v1.IDeletePosixAccountRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -309,7 +317,7 @@ export class OsLoginServiceClient { >; deletePosixAccount( request: protos.google.cloud.oslogin.v1.IDeletePosixAccountRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1.IDeletePosixAccountRequest @@ -350,7 +358,7 @@ export class OsLoginServiceClient { deletePosixAccount( request: protos.google.cloud.oslogin.v1.IDeletePosixAccountRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1.IDeletePosixAccountRequest @@ -373,12 +381,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -393,7 +401,7 @@ export class OsLoginServiceClient { } deleteSshPublicKey( request: protos.google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -403,7 +411,7 @@ export class OsLoginServiceClient { >; deleteSshPublicKey( request: protos.google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest @@ -444,7 +452,7 @@ export class OsLoginServiceClient { deleteSshPublicKey( request: protos.google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest @@ -467,12 +475,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -487,7 +495,7 @@ export class OsLoginServiceClient { } getLoginProfile( request: protos.google.cloud.oslogin.v1.IGetLoginProfileRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.v1.ILoginProfile, @@ -497,7 +505,7 @@ export class OsLoginServiceClient { >; getLoginProfile( request: protos.google.cloud.oslogin.v1.IGetLoginProfileRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.v1.ILoginProfile, protos.google.cloud.oslogin.v1.IGetLoginProfileRequest | null | undefined, @@ -537,7 +545,7 @@ export class OsLoginServiceClient { getLoginProfile( request: protos.google.cloud.oslogin.v1.IGetLoginProfileRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.v1.ILoginProfile, | protos.google.cloud.oslogin.v1.IGetLoginProfileRequest @@ -558,12 +566,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -578,7 +586,7 @@ export class OsLoginServiceClient { } getSshPublicKey( request: protos.google.cloud.oslogin.v1.IGetSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.common.ISshPublicKey, @@ -588,7 +596,7 @@ export class OsLoginServiceClient { >; getSshPublicKey( request: protos.google.cloud.oslogin.v1.IGetSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.common.ISshPublicKey, protos.google.cloud.oslogin.v1.IGetSshPublicKeyRequest | null | undefined, @@ -625,7 +633,7 @@ export class OsLoginServiceClient { getSshPublicKey( request: protos.google.cloud.oslogin.v1.IGetSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1.IGetSshPublicKeyRequest @@ -646,12 +654,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -666,7 +674,7 @@ export class OsLoginServiceClient { } importSshPublicKey( request: protos.google.cloud.oslogin.v1.IImportSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.v1.IImportSshPublicKeyResponse, @@ -676,7 +684,7 @@ export class OsLoginServiceClient { >; importSshPublicKey( request: protos.google.cloud.oslogin.v1.IImportSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.v1.IImportSshPublicKeyResponse, | protos.google.cloud.oslogin.v1.IImportSshPublicKeyRequest @@ -721,7 +729,7 @@ export class OsLoginServiceClient { importSshPublicKey( request: protos.google.cloud.oslogin.v1.IImportSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.v1.IImportSshPublicKeyResponse, | protos.google.cloud.oslogin.v1.IImportSshPublicKeyRequest @@ -744,12 +752,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -764,7 +772,7 @@ export class OsLoginServiceClient { } updateSshPublicKey( request: protos.google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.common.ISshPublicKey, @@ -774,7 +782,7 @@ export class OsLoginServiceClient { >; updateSshPublicKey( request: protos.google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest @@ -820,7 +828,7 @@ export class OsLoginServiceClient { updateSshPublicKey( request: protos.google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest @@ -843,12 +851,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; diff --git a/src/v1beta/os_login_service_client.ts b/src/v1beta/os_login_service_client.ts index c75e905..ab88883 100644 --- a/src/v1beta/os_login_service_client.ts +++ b/src/v1beta/os_login_service_client.ts @@ -16,11 +16,17 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta/os_login_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './os_login_service_client_config.json'; const version = require('../../../package.json').version; @@ -77,9 +83,9 @@ export class OsLoginServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -92,7 +98,9 @@ export class OsLoginServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -301,7 +309,7 @@ export class OsLoginServiceClient { // ------------------- deletePosixAccount( request: protos.google.cloud.oslogin.v1beta.IDeletePosixAccountRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -311,7 +319,7 @@ export class OsLoginServiceClient { >; deletePosixAccount( request: protos.google.cloud.oslogin.v1beta.IDeletePosixAccountRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1beta.IDeletePosixAccountRequest @@ -352,7 +360,7 @@ export class OsLoginServiceClient { deletePosixAccount( request: protos.google.cloud.oslogin.v1beta.IDeletePosixAccountRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1beta.IDeletePosixAccountRequest @@ -375,12 +383,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -395,7 +403,7 @@ export class OsLoginServiceClient { } deleteSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IDeleteSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -405,7 +413,7 @@ export class OsLoginServiceClient { >; deleteSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IDeleteSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1beta.IDeleteSshPublicKeyRequest @@ -446,7 +454,7 @@ export class OsLoginServiceClient { deleteSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IDeleteSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.oslogin.v1beta.IDeleteSshPublicKeyRequest @@ -469,12 +477,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -489,7 +497,7 @@ export class OsLoginServiceClient { } getLoginProfile( request: protos.google.cloud.oslogin.v1beta.IGetLoginProfileRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.v1beta.ILoginProfile, @@ -499,7 +507,7 @@ export class OsLoginServiceClient { >; getLoginProfile( request: protos.google.cloud.oslogin.v1beta.IGetLoginProfileRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.v1beta.ILoginProfile, | protos.google.cloud.oslogin.v1beta.IGetLoginProfileRequest @@ -543,7 +551,7 @@ export class OsLoginServiceClient { getLoginProfile( request: protos.google.cloud.oslogin.v1beta.IGetLoginProfileRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.v1beta.ILoginProfile, | protos.google.cloud.oslogin.v1beta.IGetLoginProfileRequest @@ -566,12 +574,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -586,7 +594,7 @@ export class OsLoginServiceClient { } getSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IGetSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.common.ISshPublicKey, @@ -596,7 +604,7 @@ export class OsLoginServiceClient { >; getSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IGetSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1beta.IGetSshPublicKeyRequest @@ -637,7 +645,7 @@ export class OsLoginServiceClient { getSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IGetSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1beta.IGetSshPublicKeyRequest @@ -660,12 +668,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -680,7 +688,7 @@ export class OsLoginServiceClient { } importSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyResponse, @@ -690,7 +698,7 @@ export class OsLoginServiceClient { >; importSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyResponse, | protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyRequest @@ -735,7 +743,7 @@ export class OsLoginServiceClient { importSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyResponse, | protos.google.cloud.oslogin.v1beta.IImportSshPublicKeyRequest @@ -758,12 +766,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -778,7 +786,7 @@ export class OsLoginServiceClient { } updateSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IUpdateSshPublicKeyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.oslogin.common.ISshPublicKey, @@ -788,7 +796,7 @@ export class OsLoginServiceClient { >; updateSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IUpdateSshPublicKeyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1beta.IUpdateSshPublicKeyRequest @@ -834,7 +842,7 @@ export class OsLoginServiceClient { updateSshPublicKey( request: protos.google.cloud.oslogin.v1beta.IUpdateSshPublicKeyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.oslogin.common.ISshPublicKey, | protos.google.cloud.oslogin.v1beta.IUpdateSshPublicKeyRequest @@ -857,12 +865,12 @@ export class OsLoginServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; diff --git a/synth.metadata b/synth.metadata index 3b19098..90613cc 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-os-login.git", - "sha": "c16f65b890f6098e876ea059769a11e733f36ac7" + "sha": "51c5dd916f37f0d0975f0f53228d70b84764ddc9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4c5071b615d96ef9dfd6a63d8429090f1f2872bb", - "internalRef": "327369997" + "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", + "internalRef": "343187793" } }, { @@ -96,7 +96,6 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.1995042437", "protos/google/cloud/oslogin/common/common.proto", "protos/google/cloud/oslogin/v1/oslogin.proto", "protos/google/cloud/oslogin/v1beta/oslogin.proto", @@ -105,7 +104,6 @@ "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.1452749784", "src/index.ts", "src/v1/index.ts", "src/v1/os_login_service_client.ts",