google-apis-oslogin_v1 0.25.0 → 0.27.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: 3cb2497aee6f1b82554a8a4bee27624c18015a545c76a27024725f7c243bd79b
4
- data.tar.gz: bb1b27e047cbc61d461bdc4d61b89e7fb5704d2a63e1bd7e5a0e8a4d28dfe3fb
3
+ metadata.gz: 799c8d5e5f7a72fc67a617e2dbcf6a554e6292134ed05b758d207edfd11f93ad
4
+ data.tar.gz: 77c00edd3483ef460559ac63275fe28433c4f42bfea497f0589a4b2dfa6c9031
5
5
  SHA512:
6
- metadata.gz: 875e22eb8f9c6eea50979e67b62842bae89d87345068df56b2c4c82a8210ba37fbbe3e9d53f2d88307638a7d824d328d2b7ea454766d6d124eb18be2ae21e172
7
- data.tar.gz: 64ff9a29d90b5d4f34fa3077016497b9b47be082df360380ed4b4e2a8cc17438f541078634b8c1d64ceb6f36481e2d5a2aeb15967e481f38c1c8e41ea9d1fa60
6
+ metadata.gz: c5afd6cd772d20883284f3528aafde87a93727a9905de89ae3bd1567ab9131e79d0fd15f8eb3f6c6a187d27b6c07c911bf7981998f12d0f57ebb3601cfe4f76f
7
+ data.tar.gz: e48c2917837cb09dccc6ce30ea290eaed676b809c0ad682fd1d14f4b1ee1afbe6e3213ebe0fe18857e2169e1e2ffaf2fc53d21f3a374276033c6723495321b46
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-oslogin_v1
2
2
 
3
+ ### v0.27.0 (2025-09-28)
4
+
5
+ * Regenerated from discovery document revision 20250921
6
+
7
+ ### v0.26.0 (2025-05-25)
8
+
9
+ * Regenerated from discovery document revision 20250518
10
+ * Regenerated using generator version 0.18.0
11
+
3
12
  ### v0.25.0 (2025-05-04)
4
13
 
5
14
  * Regenerated using generator version 0.17.0
@@ -177,6 +177,67 @@ module Google
177
177
  end
178
178
  end
179
179
 
180
+ # A request message for signing an SSH public key.
181
+ class SignSshPublicKeyRequest
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # The App Engine instance to sign the SSH public key for. Expected format: apps/`
185
+ # app`/services/`service`/versions/`version`/instances/`instance`
186
+ # Corresponds to the JSON property `appEngineInstance`
187
+ # @return [String]
188
+ attr_accessor :app_engine_instance
189
+
190
+ # The Compute instance to sign the SSH public key for. Expected format: projects/
191
+ # `project`/zones/`zone`/instances/`numeric_instance_id`
192
+ # Corresponds to the JSON property `computeInstance`
193
+ # @return [String]
194
+ attr_accessor :compute_instance
195
+
196
+ # Optional. The service account for the instance. If the instance in question
197
+ # does not have a service account, this field should be left empty. If the wrong
198
+ # service account is provided, this operation will return a signed certificate
199
+ # that will not be accepted by the VM.
200
+ # Corresponds to the JSON property `serviceAccount`
201
+ # @return [String]
202
+ attr_accessor :service_account
203
+
204
+ # Required. The SSH public key to sign.
205
+ # Corresponds to the JSON property `sshPublicKey`
206
+ # @return [String]
207
+ attr_accessor :ssh_public_key
208
+
209
+ def initialize(**args)
210
+ update!(**args)
211
+ end
212
+
213
+ # Update properties of this object
214
+ def update!(**args)
215
+ @app_engine_instance = args[:app_engine_instance] if args.key?(:app_engine_instance)
216
+ @compute_instance = args[:compute_instance] if args.key?(:compute_instance)
217
+ @service_account = args[:service_account] if args.key?(:service_account)
218
+ @ssh_public_key = args[:ssh_public_key] if args.key?(:ssh_public_key)
219
+ end
220
+ end
221
+
222
+ # The response message for signing an SSH public key.
223
+ class SignSshPublicKeyResponse
224
+ include Google::Apis::Core::Hashable
225
+
226
+ # The signed SSH public key to use in the SSH handshake.
227
+ # Corresponds to the JSON property `signedSshPublicKey`
228
+ # @return [String]
229
+ attr_accessor :signed_ssh_public_key
230
+
231
+ def initialize(**args)
232
+ update!(**args)
233
+ end
234
+
235
+ # Update properties of this object
236
+ def update!(**args)
237
+ @signed_ssh_public_key = args[:signed_ssh_public_key] if args.key?(:signed_ssh_public_key)
238
+ end
239
+ end
240
+
180
241
  # The SSH public key information associated with a Google account.
181
242
  class SshPublicKey
182
243
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsloginV1
18
18
  # Version of the google-apis-oslogin_v1 gem
19
- GEM_VERSION = "0.25.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250317"
25
+ REVISION = "20250921"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,18 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class SignSshPublicKeyRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class SignSshPublicKeyResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class SshPublicKey
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -95,6 +107,23 @@ module Google
95
107
  end
96
108
  end
97
109
 
110
+ class SignSshPublicKeyRequest
111
+ # @private
112
+ class Representation < Google::Apis::Core::JsonRepresentation
113
+ property :app_engine_instance, as: 'appEngineInstance'
114
+ property :compute_instance, as: 'computeInstance'
115
+ property :service_account, as: 'serviceAccount'
116
+ property :ssh_public_key, as: 'sshPublicKey'
117
+ end
118
+ end
119
+
120
+ class SignSshPublicKeyResponse
121
+ # @private
122
+ class Representation < Google::Apis::Core::JsonRepresentation
123
+ property :signed_ssh_public_key, as: 'signedSshPublicKey'
124
+ end
125
+ end
126
+
98
127
  class SshPublicKey
99
128
  # @private
100
129
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,14 +51,49 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Signs an SSH public key for a user to authenticate to a virtual machine on
55
+ # Google Compute Engine.
56
+ # @param [String] parent
57
+ # Required. The parent for the signing request. Format: projects/`project`/
58
+ # locations/`location`
59
+ # @param [Google::Apis::OsloginV1::SignSshPublicKeyRequest] sign_ssh_public_key_request_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::OsloginV1::SignSshPublicKeyResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::OsloginV1::SignSshPublicKeyResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def sign_location_ssh_public_key(parent, sign_ssh_public_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'v1/{+parent}:signSshPublicKey', options)
79
+ command.request_representation = Google::Apis::OsloginV1::SignSshPublicKeyRequest::Representation
80
+ command.request_object = sign_ssh_public_key_request_object
81
+ command.response_representation = Google::Apis::OsloginV1::SignSshPublicKeyResponse::Representation
82
+ command.response_class = Google::Apis::OsloginV1::SignSshPublicKeyResponse
83
+ command.params['parent'] = parent unless parent.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
54
89
  # Retrieves the profile information used for logging in to a virtual machine on
55
90
  # Google Compute Engine.
56
91
  # @param [String] name
57
92
  # Required. The unique ID for the user in format `users/`user``.
58
93
  # @param [String] project_id
59
- # The project ID of the Google Cloud Platform project.
94
+ # Required. The project ID of the Google Cloud Platform project.
60
95
  # @param [String] system_id
61
- # A system ID for filtering the results of the request.
96
+ # Optional. A system ID for filtering the results of the request.
62
97
  # @param [String] fields
63
98
  # Selector specifying which fields to include in a partial response.
64
99
  # @param [String] quota_user
@@ -268,7 +303,7 @@ module Google
268
303
  # in format `users/`user`/sshPublicKeys/`fingerprint``.
269
304
  # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object
270
305
  # @param [String] update_mask
271
- # Mask to control which fields get updated. Updates all if not present.
306
+ # Optional. Mask to control which fields get updated. Updates all if not present.
272
307
  # @param [String] fields
273
308
  # Selector specifying which fields to include in a partial response.
274
309
  # @param [String] quota_user
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-oslogin_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1/v0.25.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1/v0.27.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Cloud OS Login API V1
79
79
  test_files: []