Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Re-generate library using /synth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot committed Sep 14, 2018
1 parent fa9f681 commit 987f444
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions src/v1beta/doc/google/cloud/oslogin/common/doc_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* @memberof google.cloud.oslogin.common
* @see [google.cloud.oslogin.common.PosixAccount definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/common/common.proto}
*/
var PosixAccount = {
const PosixAccount = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -72,6 +72,6 @@ var PosixAccount = {
* @memberof google.cloud.oslogin.common
* @see [google.cloud.oslogin.common.SshPublicKey definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/common/common.proto}
*/
var SshPublicKey = {
const SshPublicKey = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
16 changes: 8 additions & 8 deletions src/v1beta/doc/google/cloud/oslogin/v1beta/doc_oslogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.LoginProfile definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var LoginProfile = {
const LoginProfile = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -54,7 +54,7 @@ var LoginProfile = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.DeletePosixAccountRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var DeletePosixAccountRequest = {
const DeletePosixAccountRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -70,7 +70,7 @@ var DeletePosixAccountRequest = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var DeleteSshPublicKeyRequest = {
const DeleteSshPublicKeyRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -84,7 +84,7 @@ var DeleteSshPublicKeyRequest = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.GetLoginProfileRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var GetLoginProfileRequest = {
const GetLoginProfileRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -100,7 +100,7 @@ var GetLoginProfileRequest = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.GetSshPublicKeyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var GetSshPublicKeyRequest = {
const GetSshPublicKeyRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -122,7 +122,7 @@ var GetSshPublicKeyRequest = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var ImportSshPublicKeyRequest = {
const ImportSshPublicKeyRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -138,7 +138,7 @@ var ImportSshPublicKeyRequest = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var ImportSshPublicKeyResponse = {
const ImportSshPublicKeyResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -164,6 +164,6 @@ var ImportSshPublicKeyResponse = {
* @memberof google.cloud.oslogin.v1beta
* @see [google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/oslogin/v1beta/oslogin.proto}
*/
var UpdateSshPublicKeyRequest = {
const UpdateSshPublicKeyRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
2 changes: 1 addition & 1 deletion src/v1beta/doc/google/protobuf/doc_empty.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
* @memberof google.protobuf
* @see [google.protobuf.Empty definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/empty.proto}
*/
var Empty = {
const Empty = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
2 changes: 1 addition & 1 deletion src/v1beta/doc/google/protobuf/doc_field_mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,6 @@
* @memberof google.protobuf
* @see [google.protobuf.FieldMask definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/field_mask.proto}
*/
var FieldMask = {
const FieldMask = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
54 changes: 27 additions & 27 deletions src/v1beta/os_login_service_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ class OsLoginServiceClient {
// Create a `gaxGrpc` object, with any grpc-specific options
// sent to the client.
opts.scopes = this.constructor.scopes;
var gaxGrpc = new gax.GrpcClient(opts);
const gaxGrpc = new gax.GrpcClient(opts);

// Save the auth object to the client, for use by other methods.
this.auth = gaxGrpc.auth;

// Determine the client header string.
var clientHeader = [
const clientHeader = [
`gl-node/${process.version}`,
`grpc/${gaxGrpc.grpcVersion}`,
`gax/${gax.version}`,
Expand All @@ -91,7 +91,7 @@ class OsLoginServiceClient {
}

// Load the applicable protos.
var protos = merge(
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
Expand All @@ -113,7 +113,7 @@ class OsLoginServiceClient {
};

// Put together the default options sent with requests.
var defaults = gaxGrpc.constructSettings(
const defaults = gaxGrpc.constructSettings(
'google.cloud.oslogin.v1beta.OsLoginService',
gapicConfig,
opts.clientConfig,
Expand All @@ -127,14 +127,14 @@ class OsLoginServiceClient {

// Put together the "service stub" for
// google.cloud.oslogin.v1beta.OsLoginService.
var osLoginServiceStub = gaxGrpc.createStub(
const osLoginServiceStub = gaxGrpc.createStub(
protos.google.cloud.oslogin.v1beta.OsLoginService,
opts
);

// Iterate over each of the methods that the service provides
// and create an API call method for each.
var osLoginServiceStubMethods = [
const osLoginServiceStubMethods = [
'deletePosixAccount',
'deleteSshPublicKey',
'getLoginProfile',
Expand All @@ -147,7 +147,7 @@ class OsLoginServiceClient {
osLoginServiceStub.then(
stub =>
function() {
var args = Array.prototype.slice.call(arguments, 0);
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
}
),
Expand Down Expand Up @@ -218,11 +218,11 @@ class OsLoginServiceClient {
*
* const osLogin = require('@google-cloud/os-login');
*
* var client = new osLogin.v1beta.OsLoginServiceClient({
* const client = new osLogin.v1beta.OsLoginServiceClient({
* // optional auth parameters.
* });
*
* var formattedName = client.projectPath('[USER]', '[PROJECT]');
* const formattedName = client.projectPath('[USER]', '[PROJECT]');
* client.deletePosixAccount({name: formattedName}).catch(err => {
* console.error(err);
* });
Expand Down Expand Up @@ -258,11 +258,11 @@ class OsLoginServiceClient {
*
* const osLogin = require('@google-cloud/os-login');
*
* var client = new osLogin.v1beta.OsLoginServiceClient({
* const client = new osLogin.v1beta.OsLoginServiceClient({
* // optional auth parameters.
* });
*
* var formattedName = client.fingerprintPath('[USER]', '[FINGERPRINT]');
* const formattedName = client.fingerprintPath('[USER]', '[FINGERPRINT]');
* client.deleteSshPublicKey({name: formattedName}).catch(err => {
* console.error(err);
* });
Expand Down Expand Up @@ -300,14 +300,14 @@ class OsLoginServiceClient {
*
* const osLogin = require('@google-cloud/os-login');
*
* var client = new osLogin.v1beta.OsLoginServiceClient({
* const client = new osLogin.v1beta.OsLoginServiceClient({
* // optional auth parameters.
* });
*
* var formattedName = client.userPath('[USER]');
* const formattedName = client.userPath('[USER]');
* client.getLoginProfile({name: formattedName})
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down Expand Up @@ -348,14 +348,14 @@ class OsLoginServiceClient {
*
* const osLogin = require('@google-cloud/os-login');
*
* var client = new osLogin.v1beta.OsLoginServiceClient({
* const client = new osLogin.v1beta.OsLoginServiceClient({
* // optional auth parameters.
* });
*
* var formattedName = client.fingerprintPath('[USER]', '[FINGERPRINT]');
* const formattedName = client.fingerprintPath('[USER]', '[FINGERPRINT]');
* client.getSshPublicKey({name: formattedName})
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down Expand Up @@ -402,19 +402,19 @@ class OsLoginServiceClient {
*
* const osLogin = require('@google-cloud/os-login');
*
* var client = new osLogin.v1beta.OsLoginServiceClient({
* const client = new osLogin.v1beta.OsLoginServiceClient({
* // optional auth parameters.
* });
*
* var formattedParent = client.userPath('[USER]');
* var sshPublicKey = {};
* var request = {
* const formattedParent = client.userPath('[USER]');
* const sshPublicKey = {};
* const request = {
* parent: formattedParent,
* sshPublicKey: sshPublicKey,
* };
* client.importSshPublicKey(request)
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down Expand Up @@ -464,19 +464,19 @@ class OsLoginServiceClient {
*
* const osLogin = require('@google-cloud/os-login');
*
* var client = new osLogin.v1beta.OsLoginServiceClient({
* const client = new osLogin.v1beta.OsLoginServiceClient({
* // optional auth parameters.
* });
*
* var formattedName = client.fingerprintPath('[USER]', '[FINGERPRINT]');
* var sshPublicKey = {};
* var request = {
* const formattedName = client.fingerprintPath('[USER]', '[FINGERPRINT]');
* const sshPublicKey = {};
* const request = {
* name: formattedName,
* sshPublicKey: sshPublicKey,
* };
* client.updateSshPublicKey(request)
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down
Loading

0 comments on commit 987f444

Please sign in to comment.