Skip to content

Commit

Permalink
add comments for class (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhenliu-gg5 authored and alexander-fenster committed Oct 21, 2019
1 parent b172087 commit 963d118
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
27 changes: 27 additions & 0 deletions templates/typescript_gapic/src/$version/$service_client.ts.njk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,33 @@ export interface PaginationResponse<
}
{% endif %}
export class {{ service.name }}Client {
/**
* Construct an instance of {{ service.name }}Client.
*
* @@param {object} [options] - The configuration object. See the subsequent
* parameters for more details.
* @@param {object} [options.credentials] - Credentials object.
* @@param {string} [options.credentials.client_email]
* @@param {string} [options.credentials.private_key]
* @@param {string} [options.email] - Account email address. Required when
* using a .pem or .p12 keyFilename.
* @@param {string} [options.keyFilename] - Full path to the a .json, .pem, or
* .p12 key downloaded from the Google Developers Console. If you provide
* a path to a JSON file, the projectId option below is not necessary.
* NOTE: .pem and .p12 require you to specify options.email as well.
* @@param {number} [options.port] - The port on which to connect to
* the remote host.
* @@param {string} [options.projectId] - The project ID from the Google
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
* the environment variable GCLOUD_PROJECT for your project ID. If your
* app is running in an environment which supports
* {@@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
* your project ID will be detected automatically.
* @@param {function} [options.promise] - Custom promise module to use instead
* of native Promises.
* @@param {string} [options.apiEndpoint] - The domain name of the
* API remote host.
*/
private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}};
private _innerApiCalls: {[name: string]: Function};
auth: gax.GoogleAuth;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,33 @@ export interface PaginationResponse<
}

export class KeyManagementServiceClient {
/**
* Construct an instance of KeyManagementServiceClient.
*
* @@param {object} [options] - The configuration object. See the subsequent
* parameters for more details.
* @@param {object} [options.credentials] - Credentials object.
* @@param {string} [options.credentials.client_email]
* @@param {string} [options.credentials.private_key]
* @@param {string} [options.email] - Account email address. Required when
* using a .pem or .p12 keyFilename.
* @@param {string} [options.keyFilename] - Full path to the a .json, .pem, or
* .p12 key downloaded from the Google Developers Console. If you provide
* a path to a JSON file, the projectId option below is not necessary.
* NOTE: .pem and .p12 require you to specify options.email as well.
* @@param {number} [options.port] - The port on which to connect to
* the remote host.
* @@param {string} [options.projectId] - The project ID from the Google
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
* the environment variable GCLOUD_PROJECT for your project ID. If your
* app is running in an environment which supports
* {@@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
* your project ID will be detected automatically.
* @@param {function} [options.promise] - Custom promise module to use instead
* of native Promises.
* @@param {string} [options.apiEndpoint] - The domain name of the
* API remote host.
*/
private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}};
private _innerApiCalls: {[name: string]: Function};
auth: gax.GoogleAuth;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,33 @@ export interface PaginationResponse<
}

export class EchoClient {
/**
* Construct an instance of EchoClient.
*
* @@param {object} [options] - The configuration object. See the subsequent
* parameters for more details.
* @@param {object} [options.credentials] - Credentials object.
* @@param {string} [options.credentials.client_email]
* @@param {string} [options.credentials.private_key]
* @@param {string} [options.email] - Account email address. Required when
* using a .pem or .p12 keyFilename.
* @@param {string} [options.keyFilename] - Full path to the a .json, .pem, or
* .p12 key downloaded from the Google Developers Console. If you provide
* a path to a JSON file, the projectId option below is not necessary.
* NOTE: .pem and .p12 require you to specify options.email as well.
* @@param {number} [options.port] - The port on which to connect to
* the remote host.
* @@param {string} [options.projectId] - The project ID from the Google
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
* the environment variable GCLOUD_PROJECT for your project ID. If your
* app is running in an environment which supports
* {@@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
* your project ID will be detected automatically.
* @@param {function} [options.promise] - Custom promise module to use instead
* of native Promises.
* @@param {string} [options.apiEndpoint] - The domain name of the
* API remote host.
*/
private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}};
private _innerApiCalls: {[name: string]: Function};
auth: gax.GoogleAuth;
Expand Down

0 comments on commit 963d118

Please sign in to comment.