google-apis-oslogin_v1beta 0.20.0 → 0.21.0

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: a12f7884637f2efee0abe21238983452e4bbb4a8da6baecebbeacee0f15f8737
4
- data.tar.gz: 79a986ea5fce9f83f511ddcfaf698024e89773a9201fa5950b362c111ad85735
3
+ metadata.gz: 7c2e81cf4a08f26338edd76b36b970a997d30fe46d893f6495442a304e3e0c61
4
+ data.tar.gz: b92558a0aa438becb5f63851663e3bc2e38226a3d49d56baf9f3c725e52d2b28
5
5
  SHA512:
6
- metadata.gz: bdb44c4e15ea1dc4ca7af6a58a6175fc25d190938f3333e302781301eef89e7b21b3f5dc3d07c4acaf387168c3254feedd554676bcee69793de7837e046c84f6
7
- data.tar.gz: 722d61d06ceac17d77595154eecf4000c51c71dcd28c4bb6856256dd63acf8b9f6ffd230e5bc73a8f830d669d89501b82ba9a4e6cdbd085222f82544c57d881e
6
+ metadata.gz: 8e89bb459809ece716c1bf775f1f6152d7c0b775e8b35002f9b29ab9af7e244cf5f2277a1c2dde1194453897e1a31789765d9c12991ba1271bdf97d35f340cf7
7
+ data.tar.gz: ce300b2f2864fee9807f436d55a6cd5d544ee66b12ca0e30f14f1d5f6c0811cce074545fab0e6537b3bd137732c9797e1cecf3aaee29ce21cd092cb02f9ab5e0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-oslogin_v1beta
2
2
 
3
+ ### v0.21.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230729
6
+
3
7
  ### v0.20.0 (2023-02-19)
4
8
 
5
9
  * Regenerated using generator version 0.12.0
@@ -221,6 +221,44 @@ module Google
221
221
  end
222
222
  end
223
223
 
224
+ #
225
+ class SignSshPublicKeyRequest
226
+ include Google::Apis::Core::Hashable
227
+
228
+ # The SSH public key to sign.
229
+ # Corresponds to the JSON property `sshPublicKey`
230
+ # @return [String]
231
+ attr_accessor :ssh_public_key
232
+
233
+ def initialize(**args)
234
+ update!(**args)
235
+ end
236
+
237
+ # Update properties of this object
238
+ def update!(**args)
239
+ @ssh_public_key = args[:ssh_public_key] if args.key?(:ssh_public_key)
240
+ end
241
+ end
242
+
243
+ #
244
+ class SignSshPublicKeyResponse
245
+ include Google::Apis::Core::Hashable
246
+
247
+ # The signed SSH public key to use in the SSH handshake.
248
+ # Corresponds to the JSON property `signedSshPublicKey`
249
+ # @return [String]
250
+ attr_accessor :signed_ssh_public_key
251
+
252
+ def initialize(**args)
253
+ update!(**args)
254
+ end
255
+
256
+ # Update properties of this object
257
+ def update!(**args)
258
+ @signed_ssh_public_key = args[:signed_ssh_public_key] if args.key?(:signed_ssh_public_key)
259
+ end
260
+ end
261
+
224
262
  # The SSH public key information associated with a Google account.
225
263
  class SshPublicKey
226
264
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsloginV1beta
18
18
  # Version of the google-apis-oslogin_v1beta gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220319"
25
+ REVISION = "20230729"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,18 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class SignSshPublicKeyRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class SignSshPublicKeyResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class SshPublicKey
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -127,6 +139,20 @@ module Google
127
139
  end
128
140
  end
129
141
 
142
+ class SignSshPublicKeyRequest
143
+ # @private
144
+ class Representation < Google::Apis::Core::JsonRepresentation
145
+ property :ssh_public_key, as: 'sshPublicKey'
146
+ end
147
+ end
148
+
149
+ class SignSshPublicKeyResponse
150
+ # @private
151
+ class Representation < Google::Apis::Core::JsonRepresentation
152
+ property :signed_ssh_public_key, as: 'signedSshPublicKey'
153
+ end
154
+ end
155
+
130
156
  class SshPublicKey
131
157
  # @private
132
158
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -162,6 +162,41 @@ module Google
162
162
  execute_or_queue_command(command, &block)
163
163
  end
164
164
 
165
+ # Signs an SSH public key for a user to authenticate to an instance.
166
+ # @param [String] parent
167
+ # The parent project and zone for the signing request. This is needed to
168
+ # properly ensure per-organization ISS processing and potentially to provide for
169
+ # the possibility of zone-specific certificates used in the signing process.
170
+ # @param [Google::Apis::OsloginV1beta::SignSshPublicKeyRequest] sign_ssh_public_key_request_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # @param [Google::Apis::RequestOptions] options
177
+ # Request-specific options
178
+ #
179
+ # @yield [result, err] Result & error if block supplied
180
+ # @yieldparam result [Google::Apis::OsloginV1beta::SignSshPublicKeyResponse] parsed result object
181
+ # @yieldparam err [StandardError] error object if request failed
182
+ #
183
+ # @return [Google::Apis::OsloginV1beta::SignSshPublicKeyResponse]
184
+ #
185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
188
+ def sign_zone_ssh_public_key(parent, sign_ssh_public_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
189
+ command = make_simple_command(:post, 'v1beta/{+parent}:signSshPublicKey', options)
190
+ command.request_representation = Google::Apis::OsloginV1beta::SignSshPublicKeyRequest::Representation
191
+ command.request_object = sign_ssh_public_key_request_object
192
+ command.response_representation = Google::Apis::OsloginV1beta::SignSshPublicKeyResponse::Representation
193
+ command.response_class = Google::Apis::OsloginV1beta::SignSshPublicKeyResponse
194
+ command.params['parent'] = parent unless parent.nil?
195
+ command.query['fields'] = fields unless fields.nil?
196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
197
+ execute_or_queue_command(command, &block)
198
+ end
199
+
165
200
  # Create an SSH public key
166
201
  # @param [String] parent
167
202
  # Required. The unique ID for the user in format `users/`user``.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-oslogin_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1beta/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1beta/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []