-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add synth.py and update google-gax (#36)
- Loading branch information
1 parent
8fb7d31
commit 5fa4ea8
Showing
13 changed files
with
1,927 additions
and
1,571 deletions.
There are no files selected for viewing
3,263 changes: 1,741 additions & 1,522 deletions
3,263
packages/google-cloud-oslogin/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
packages/google-cloud-oslogin/protos/google/cloud/oslogin/common/common.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Copyright 2017 Google Inc. | ||
// | ||
// 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. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.oslogin.common; | ||
|
||
import "google/api/annotations.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.OsLogin.Common"; | ||
option go_package = "google.golang.org/genproto/googleapis/cloud/oslogin/common;common"; | ||
option java_outer_classname = "OsLoginProto"; | ||
option java_package = "com.google.cloud.oslogin.common"; | ||
option php_namespace = "Google\\Cloud\\OsLogin\\Common"; | ||
|
||
|
||
// The POSIX account information associated with a Google account. | ||
message PosixAccount { | ||
// Only one POSIX account can be marked as primary. | ||
bool primary = 1; | ||
|
||
// The username of the POSIX account. | ||
string username = 2; | ||
|
||
// The user ID. | ||
int64 uid = 3; | ||
|
||
// The default group ID. | ||
int64 gid = 4; | ||
|
||
// The path to the home directory for this account. | ||
string home_directory = 5; | ||
|
||
// The path to the logic shell for this account. | ||
string shell = 6; | ||
|
||
// The GECOS (user information) entry for this account. | ||
string gecos = 7; | ||
|
||
// System identifier for which account the username or uid applies to. | ||
// By default, the empty value is used. | ||
string system_id = 8; | ||
|
||
// Output only. A POSIX account identifier. | ||
string account_id = 9; | ||
} | ||
|
||
// The SSH public key information associated with a Google account. | ||
message SshPublicKey { | ||
// Public key text in SSH format, defined by | ||
// <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a> | ||
// section 6.6. | ||
string key = 1; | ||
|
||
// An expiration time in microseconds since epoch. | ||
int64 expiration_time_usec = 2; | ||
|
||
// Output only. The SHA-256 fingerprint of the SSH public key. | ||
string fingerprint = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/google-cloud-oslogin/src/v1beta/doc/google/cloud/oslogin/v1beta/doc_oslogin.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/google-cloud-oslogin/src/v1beta/doc/google/protobuf/doc_empty.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2018 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. | ||
|
||
// Note: this file is purely for documentation. Any contents are not expected | ||
// to be loaded as the JS file. | ||
|
||
/** | ||
* A generic empty message that you can re-use to avoid defining duplicated | ||
* empty messages in your APIs. A typical example is to use it as the request | ||
* or the response type of an API method. For instance: | ||
* | ||
* service Foo { | ||
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | ||
* } | ||
* | ||
* The JSON representation for `Empty` is empty JSON object `{}`. | ||
* @typedef Empty | ||
* @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 = { | ||
// This is for documentation. Actual contents will be loaded by gRPC. | ||
}; |
4 changes: 2 additions & 2 deletions
4
packages/google-cloud-oslogin/src/v1beta/doc/google/protobuf/doc_field_mask.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import synthtool as s | ||
import synthtool.gcp as gcp | ||
import logging | ||
from pathlib import Path | ||
import subprocess | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
gapic = gcp.GAPICGenerator() | ||
|
||
versions = ['v1beta'] | ||
|
||
for version in versions: | ||
library = gapic.node_library( | ||
'os-login', version, | ||
config_path="/google/cloud/oslogin/" | ||
f"artman_oslogin_{version}.yaml") | ||
|
||
# skip index, protos, package.json, and README.md | ||
s.copy( | ||
library, | ||
excludes=['package.json', 'README.md', 'src/index.js'], | ||
) | ||
|
||
# | ||
# Node.js specific cleanup | ||
# | ||
subprocess.run(['npm', 'ci']) | ||
subprocess.run(['npm', 'run', 'prettier']) | ||
subprocess.run(['npm', 'run', 'lint']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.warn('no system tests yet'); |
Oops, something went wrong.