google-cloud-os_login 0.7.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -54
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +323 -0
  6. data/README.md +36 -24
  7. data/lib/{google/cloud/os_login/v1/doc/google/protobuf/empty.rb → google-cloud-os_login.rb} +4 -14
  8. data/lib/google/cloud/os_login.rb +88 -117
  9. data/lib/google/cloud/os_login/version.rb +6 -2
  10. metadata +74 -61
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/os_login/v1.rb +0 -148
  13. data/lib/google/cloud/os_login/v1/credentials.rb +0 -42
  14. data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/common/common.rb +0 -89
  15. data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/v1/oslogin.rb +0 -103
  16. data/lib/google/cloud/os_login/v1/doc/google/protobuf/field_mask.rb +0 -222
  17. data/lib/google/cloud/os_login/v1/os_login_service_client.rb +0 -506
  18. data/lib/google/cloud/os_login/v1/os_login_service_client_config.json +0 -56
  19. data/lib/google/cloud/os_login/v1beta.rb +0 -148
  20. data/lib/google/cloud/os_login/v1beta/credentials.rb +0 -44
  21. data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/common.rb +0 -67
  22. data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/common/common.rb +0 -89
  23. data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/v1beta/oslogin.rb +0 -103
  24. data/lib/google/cloud/os_login/v1beta/doc/google/protobuf/empty.rb +0 -29
  25. data/lib/google/cloud/os_login/v1beta/doc/google/protobuf/field_mask.rb +0 -222
  26. data/lib/google/cloud/os_login/v1beta/os_login_service_client.rb +0 -511
  27. data/lib/google/cloud/os_login/v1beta/os_login_service_client_config.json +0 -56
  28. data/lib/google/cloud/oslogin/common/common_pb.rb +0 -40
  29. data/lib/google/cloud/oslogin/v1/oslogin_pb.rb +0 -65
  30. data/lib/google/cloud/oslogin/v1/oslogin_services_pb.rb +0 -65
  31. data/lib/google/cloud/oslogin/v1beta/oslogin_pb.rb +0 -65
  32. data/lib/google/cloud/oslogin/v1beta/oslogin_services_pb.rb +0 -65
@@ -1,56 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.cloud.oslogin.v1beta.OsLoginService": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 10000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 10000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "DeletePosixAccount": {
24
- "timeout_millis": 10000,
25
- "retry_codes_name": "idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "DeleteSshPublicKey": {
29
- "timeout_millis": 10000,
30
- "retry_codes_name": "idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "GetLoginProfile": {
34
- "timeout_millis": 10000,
35
- "retry_codes_name": "idempotent",
36
- "retry_params_name": "default"
37
- },
38
- "GetSshPublicKey": {
39
- "timeout_millis": 10000,
40
- "retry_codes_name": "idempotent",
41
- "retry_params_name": "default"
42
- },
43
- "ImportSshPublicKey": {
44
- "timeout_millis": 10000,
45
- "retry_codes_name": "idempotent",
46
- "retry_params_name": "default"
47
- },
48
- "UpdateSshPublicKey": {
49
- "timeout_millis": 10000,
50
- "retry_codes_name": "idempotent",
51
- "retry_params_name": "default"
52
- }
53
- }
54
- }
55
- }
56
- }
@@ -1,40 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/oslogin/common/common.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/field_behavior_pb'
8
- require 'google/api/resource_pb'
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_message "google.cloud.oslogin.common.PosixAccount" do
11
- optional :primary, :bool, 1
12
- optional :username, :string, 2
13
- optional :uid, :int64, 3
14
- optional :gid, :int64, 4
15
- optional :home_directory, :string, 5
16
- optional :shell, :string, 6
17
- optional :gecos, :string, 7
18
- optional :system_id, :string, 8
19
- optional :account_id, :string, 9
20
- optional :operating_system_type, :enum, 10, "google.cloud.oslogin.common.OperatingSystemType"
21
- optional :name, :string, 11
22
- end
23
- add_message "google.cloud.oslogin.common.SshPublicKey" do
24
- optional :key, :string, 1
25
- optional :expiration_time_usec, :int64, 2
26
- optional :fingerprint, :string, 3
27
- optional :name, :string, 4
28
- end
29
- add_enum "google.cloud.oslogin.common.OperatingSystemType" do
30
- value :OPERATING_SYSTEM_TYPE_UNSPECIFIED, 0
31
- value :LINUX, 1
32
- value :WINDOWS, 2
33
- end
34
- end
35
-
36
- module Google::Cloud::OsLogin::Common
37
- PosixAccount = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.PosixAccount").msgclass
38
- SshPublicKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.SshPublicKey").msgclass
39
- OperatingSystemType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.OperatingSystemType").enummodule
40
- end
@@ -1,65 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/oslogin/v1/oslogin.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/cloud/oslogin/common/common_pb'
12
- require 'google/protobuf/empty_pb'
13
- require 'google/protobuf/field_mask_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.cloud.oslogin.v1.LoginProfile" do
16
- optional :name, :string, 1
17
- repeated :posix_accounts, :message, 2, "google.cloud.oslogin.common.PosixAccount"
18
- map :ssh_public_keys, :string, :message, 3, "google.cloud.oslogin.common.SshPublicKey"
19
- end
20
- add_message "google.cloud.oslogin.v1.DeletePosixAccountRequest" do
21
- optional :name, :string, 1
22
- end
23
- add_message "google.cloud.oslogin.v1.DeleteSshPublicKeyRequest" do
24
- optional :name, :string, 1
25
- end
26
- add_message "google.cloud.oslogin.v1.GetLoginProfileRequest" do
27
- optional :name, :string, 1
28
- optional :project_id, :string, 2
29
- optional :system_id, :string, 3
30
- end
31
- add_message "google.cloud.oslogin.v1.GetSshPublicKeyRequest" do
32
- optional :name, :string, 1
33
- end
34
- add_message "google.cloud.oslogin.v1.ImportSshPublicKeyRequest" do
35
- optional :parent, :string, 1
36
- optional :ssh_public_key, :message, 2, "google.cloud.oslogin.common.SshPublicKey"
37
- optional :project_id, :string, 3
38
- end
39
- add_message "google.cloud.oslogin.v1.ImportSshPublicKeyResponse" do
40
- optional :login_profile, :message, 1, "google.cloud.oslogin.v1.LoginProfile"
41
- end
42
- add_message "google.cloud.oslogin.v1.UpdateSshPublicKeyRequest" do
43
- optional :name, :string, 1
44
- optional :ssh_public_key, :message, 2, "google.cloud.oslogin.common.SshPublicKey"
45
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
46
- end
47
- end
48
-
49
- module Google
50
- module Cloud
51
- module OsLogin
52
- end
53
- Oslogin = OsLogin unless const_defined? :Oslogin
54
- end
55
- end
56
- module Google::Cloud::OsLogin::V1
57
- LoginProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.LoginProfile").msgclass
58
- DeletePosixAccountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.DeletePosixAccountRequest").msgclass
59
- DeleteSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.DeleteSshPublicKeyRequest").msgclass
60
- GetLoginProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.GetLoginProfileRequest").msgclass
61
- GetSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.GetSshPublicKeyRequest").msgclass
62
- ImportSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.ImportSshPublicKeyRequest").msgclass
63
- ImportSshPublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.ImportSshPublicKeyResponse").msgclass
64
- UpdateSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.UpdateSshPublicKeyRequest").msgclass
65
- end
@@ -1,65 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/oslogin/v1/oslogin.proto for package 'Google::Cloud::OsLogin::V1'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- #
19
-
20
-
21
- require 'grpc'
22
- require 'google/cloud/oslogin/v1/oslogin_pb'
23
-
24
- module Google
25
- module Cloud
26
- module OsLogin
27
- end
28
- Oslogin = OsLogin unless const_defined? :Oslogin
29
- end
30
- end
31
- module Google::Cloud::OsLogin::V1
32
- module OsLoginService
33
- # Cloud OS Login API
34
- #
35
- # The Cloud OS Login API allows you to manage users and their associated SSH
36
- # public keys for logging into virtual machines on Google Cloud Platform.
37
- class Service
38
-
39
- include GRPC::GenericService
40
-
41
- self.marshal_class_method = :encode
42
- self.unmarshal_class_method = :decode
43
- self.service_name = 'google.cloud.oslogin.v1.OsLoginService'
44
-
45
- # Deletes a POSIX account.
46
- rpc :DeletePosixAccount, DeletePosixAccountRequest, Google::Protobuf::Empty
47
- # Deletes an SSH public key.
48
- rpc :DeleteSshPublicKey, DeleteSshPublicKeyRequest, Google::Protobuf::Empty
49
- # Retrieves the profile information used for logging in to a virtual machine
50
- # on Google Compute Engine.
51
- rpc :GetLoginProfile, GetLoginProfileRequest, LoginProfile
52
- # Retrieves an SSH public key.
53
- rpc :GetSshPublicKey, GetSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
54
- # Adds an SSH public key and returns the profile information. Default POSIX
55
- # account information is set when no username and UID exist as part of the
56
- # login profile.
57
- rpc :ImportSshPublicKey, ImportSshPublicKeyRequest, ImportSshPublicKeyResponse
58
- # Updates an SSH public key and returns the profile information. This method
59
- # supports patch semantics.
60
- rpc :UpdateSshPublicKey, UpdateSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
61
- end
62
-
63
- Stub = Service.rpc_stub_class
64
- end
65
- end
@@ -1,65 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/oslogin/v1beta/oslogin.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/cloud/oslogin/common/common_pb'
12
- require 'google/protobuf/empty_pb'
13
- require 'google/protobuf/field_mask_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.cloud.oslogin.v1beta.LoginProfile" do
16
- optional :name, :string, 1
17
- repeated :posix_accounts, :message, 2, "google.cloud.oslogin.common.PosixAccount"
18
- map :ssh_public_keys, :string, :message, 3, "google.cloud.oslogin.common.SshPublicKey"
19
- end
20
- add_message "google.cloud.oslogin.v1beta.DeletePosixAccountRequest" do
21
- optional :name, :string, 1
22
- end
23
- add_message "google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest" do
24
- optional :name, :string, 1
25
- end
26
- add_message "google.cloud.oslogin.v1beta.GetLoginProfileRequest" do
27
- optional :name, :string, 1
28
- optional :project_id, :string, 2
29
- optional :system_id, :string, 3
30
- end
31
- add_message "google.cloud.oslogin.v1beta.GetSshPublicKeyRequest" do
32
- optional :name, :string, 1
33
- end
34
- add_message "google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest" do
35
- optional :parent, :string, 1
36
- optional :ssh_public_key, :message, 2, "google.cloud.oslogin.common.SshPublicKey"
37
- optional :project_id, :string, 3
38
- end
39
- add_message "google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse" do
40
- optional :login_profile, :message, 1, "google.cloud.oslogin.v1beta.LoginProfile"
41
- end
42
- add_message "google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest" do
43
- optional :name, :string, 1
44
- optional :ssh_public_key, :message, 2, "google.cloud.oslogin.common.SshPublicKey"
45
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
46
- end
47
- end
48
-
49
- module Google
50
- module Cloud
51
- module OsLogin
52
- end
53
- Oslogin = OsLogin unless const_defined? :Oslogin
54
- end
55
- end
56
- module Google::Cloud::OsLogin::V1beta
57
- LoginProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.LoginProfile").msgclass
58
- DeletePosixAccountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.DeletePosixAccountRequest").msgclass
59
- DeleteSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest").msgclass
60
- GetLoginProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.GetLoginProfileRequest").msgclass
61
- GetSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.GetSshPublicKeyRequest").msgclass
62
- ImportSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest").msgclass
63
- ImportSshPublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse").msgclass
64
- UpdateSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest").msgclass
65
- end
@@ -1,65 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/oslogin/v1beta/oslogin.proto for package 'Google::Cloud::OsLogin::V1beta'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- #
19
-
20
-
21
- require 'grpc'
22
- require 'google/cloud/oslogin/v1beta/oslogin_pb'
23
-
24
- module Google
25
- module Cloud
26
- module OsLogin
27
- end
28
- Oslogin = OsLogin unless const_defined? :Oslogin
29
- end
30
- end
31
- module Google::Cloud::OsLogin::V1beta
32
- module OsLoginService
33
- # Cloud OS Login API
34
- #
35
- # The Cloud OS Login API allows you to manage users and their associated SSH
36
- # public keys for logging into virtual machines on Google Cloud Platform.
37
- class Service
38
-
39
- include GRPC::GenericService
40
-
41
- self.marshal_class_method = :encode
42
- self.unmarshal_class_method = :decode
43
- self.service_name = 'google.cloud.oslogin.v1beta.OsLoginService'
44
-
45
- # Deletes a POSIX account.
46
- rpc :DeletePosixAccount, DeletePosixAccountRequest, Google::Protobuf::Empty
47
- # Deletes an SSH public key.
48
- rpc :DeleteSshPublicKey, DeleteSshPublicKeyRequest, Google::Protobuf::Empty
49
- # Retrieves the profile information used for logging in to a virtual machine
50
- # on Google Compute Engine.
51
- rpc :GetLoginProfile, GetLoginProfileRequest, LoginProfile
52
- # Retrieves an SSH public key.
53
- rpc :GetSshPublicKey, GetSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
54
- # Adds an SSH public key and returns the profile information. Default POSIX
55
- # account information is set when no username and UID exist as part of the
56
- # login profile.
57
- rpc :ImportSshPublicKey, ImportSshPublicKeyRequest, ImportSshPublicKeyResponse
58
- # Updates an SSH public key and returns the profile information. This method
59
- # supports patch semantics.
60
- rpc :UpdateSshPublicKey, UpdateSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
61
- end
62
-
63
- Stub = Service.rpc_stub_class
64
- end
65
- end