google-cloud-os_login-v1 0.1.0 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a639f40cff873bfb322f9e02d4c6875d4b233c588f5666e1a5a0431e6bba7b4b
4
- data.tar.gz: e0e812dc18f2f0a83835e062f67ad0ab73da53c09817ba383258e5a49167ef51
3
+ metadata.gz: 389414ac480b673b4256dd7b9c30d72f942dd741a88c40b14caad83b88050dc3
4
+ data.tar.gz: 7f9e7465c89a0bc17ea48050f658ec84b5cc96ab8be76be0cd220ac516c9df21
5
5
  SHA512:
6
- metadata.gz: e7a8275d6e69da4724b91e286cea35cbabf2b8ce1ec98b03fdc03b0c01cff268b513185295619f542c23e3cc27a875556afb7935089072fdbd47c7061ae42588
7
- data.tar.gz: 4ef50d2d9d5b8407b5fa9173e4bd5bfa71fc31360dc1477a91df4061a9f04ae85f3a5d4c8d08d511e10141958746cf7e2dcdd062a0dbaece57a57bb480f215c7
6
+ metadata.gz: ff21f1e6ded42203badc74e70f89e4b39d841e9099fbc06bf2cb9ce7f702812d1c4da459d7d0a5de1919a9adccc2e23377669e94eec091c3eb4e74c32a646fb6
7
+ data.tar.gz: 6c02ffc1e918f84d9d22d7b75e95d50358ea3130fa8c5faf9aa1fd0bca3bbf37015df1a733cf0d86cff56e268820b41a4ba78b569cf90acd7b906f36f61f5479
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/oslogin.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.delete_posix_account request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-os_login-v1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/compute/docs/oslogin)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -73,7 +73,7 @@ module Google
73
73
  initial_delay: 0.1,
74
74
  max_delay: 60.0,
75
75
  multiplier: 1.3,
76
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
76
+ retry_codes: [14, 4]
77
77
  }
78
78
 
79
79
  default_config.rpcs.delete_ssh_public_key.timeout = 10.0
@@ -81,7 +81,7 @@ module Google
81
81
  initial_delay: 0.1,
82
82
  max_delay: 60.0,
83
83
  multiplier: 1.3,
84
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
84
+ retry_codes: [14, 4]
85
85
  }
86
86
 
87
87
  default_config.rpcs.get_login_profile.timeout = 10.0
@@ -89,7 +89,7 @@ module Google
89
89
  initial_delay: 0.1,
90
90
  max_delay: 60.0,
91
91
  multiplier: 1.3,
92
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
92
+ retry_codes: [14, 4]
93
93
  }
94
94
 
95
95
  default_config.rpcs.get_ssh_public_key.timeout = 10.0
@@ -97,7 +97,7 @@ module Google
97
97
  initial_delay: 0.1,
98
98
  max_delay: 60.0,
99
99
  multiplier: 1.3,
100
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
100
+ retry_codes: [14, 4]
101
101
  }
102
102
 
103
103
  default_config.rpcs.import_ssh_public_key.timeout = 10.0
@@ -105,7 +105,7 @@ module Google
105
105
  initial_delay: 0.1,
106
106
  max_delay: 60.0,
107
107
  multiplier: 1.3,
108
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
108
+ retry_codes: [14, 4]
109
109
  }
110
110
 
111
111
  default_config.rpcs.update_ssh_public_key.timeout = 10.0
@@ -113,7 +113,7 @@ module Google
113
113
  initial_delay: 0.1,
114
114
  max_delay: 60.0,
115
115
  multiplier: 1.3,
116
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
116
+ retry_codes: [14, 4]
117
117
  }
118
118
 
119
119
  default_config
@@ -181,7 +181,8 @@ module Google
181
181
  if credentials.is_a?(String) || credentials.is_a?(Hash)
182
182
  credentials = Credentials.new credentials, scope: @config.scope
183
183
  end
184
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
184
+ @quota_project_id = @config.quota_project
185
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
185
186
 
186
187
  @os_login_service_stub = ::Gapic::ServiceStub.new(
187
188
  ::Google::Cloud::OsLogin::V1::OsLoginService::Stub,
@@ -690,24 +691,28 @@ module Google
690
691
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
691
692
  # trigger a retry.
692
693
  # @return [::Hash]
694
+ # @!attribute [rw] quota_project
695
+ # A separate project against which to charge quota.
696
+ # @return [::String]
693
697
  #
694
698
  class Configuration
695
699
  extend ::Gapic::Config
696
700
 
697
- config_attr :endpoint, "oslogin.googleapis.com", String
698
- config_attr :credentials, nil do |value|
701
+ config_attr :endpoint, "oslogin.googleapis.com", ::String
702
+ config_attr :credentials, nil do |value|
699
703
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
700
704
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
701
705
  allowed.any? { |klass| klass === value }
702
706
  end
703
- config_attr :scope, nil, ::String, ::Array, nil
704
- config_attr :lib_name, nil, ::String, nil
705
- config_attr :lib_version, nil, ::String, nil
706
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
707
- config_attr :interceptors, nil, ::Array, nil
708
- config_attr :timeout, nil, ::Numeric, nil
709
- config_attr :metadata, nil, ::Hash, nil
710
- config_attr :retry_policy, nil, ::Hash, Proc, nil
707
+ config_attr :scope, nil, ::String, ::Array, nil
708
+ config_attr :lib_name, nil, ::String, nil
709
+ config_attr :lib_version, nil, ::String, nil
710
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
711
+ config_attr :interceptors, nil, ::Array, nil
712
+ config_attr :timeout, nil, ::Numeric, nil
713
+ config_attr :metadata, nil, ::Hash, nil
714
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
715
+ config_attr :quota_project, nil, ::String, nil
711
716
 
712
717
  # @private
713
718
  def initialize parent_config = nil
@@ -723,7 +728,7 @@ module Google
723
728
  def rpcs
724
729
  @rpcs ||= begin
725
730
  parent_rpcs = nil
726
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
731
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
727
732
  Rpcs.new parent_rpcs
728
733
  end
729
734
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsLogin
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_login-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-06 00:00:00.000000000 Z
11
+ date: 2020-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +164,6 @@ files:
136
164
  - LICENSE.md
137
165
  - README.md
138
166
  - lib/google-cloud-os_login-v1.rb
139
- - lib/google/cloud/common_resources_pb.rb
140
167
  - lib/google/cloud/os_login/v1.rb
141
168
  - lib/google/cloud/os_login/v1/os_login_service.rb
142
169
  - lib/google/cloud/os_login/v1/os_login_service/client.rb
@@ -172,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
199
  - !ruby/object:Gem::Version
173
200
  version: '0'
174
201
  requirements: []
175
- rubygems_version: 3.0.6
202
+ rubygems_version: 3.1.3
176
203
  signing_key:
177
204
  specification_version: 4
178
205
  summary: API Client library for the Cloud OS Login V1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end