google-apis-oslogin_v1 0.26.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: fde61b2c053e5170628e8e5b225349a653d2d7697272a3673d909bd606cd2223
4
- data.tar.gz: bdcda0c7137ee7228b17335c2d0b4f5cf3c735e32ed40410ce661f445f41cc20
3
+ metadata.gz: 799c8d5e5f7a72fc67a617e2dbcf6a554e6292134ed05b758d207edfd11f93ad
4
+ data.tar.gz: 77c00edd3483ef460559ac63275fe28433c4f42bfea497f0589a4b2dfa6c9031
5
5
  SHA512:
6
- metadata.gz: 585d7e878183fc5642094a29d555d067e715b3720808a549e142900a0d1c42bd72b708bed67ab72bd95fa26cfa97341019b521915ce40f8c025abc88944c4626
7
- data.tar.gz: 75b208d494e8a65724c6b8d82e3250236f0beb868eec029e3d288a09797bdd14e98c1aa0eae33ea7e7d3a501a888142f6fd977c7662dbc6cd3c08cea58534ce5
6
+ metadata.gz: c5afd6cd772d20883284f3528aafde87a93727a9905de89ae3bd1567ab9131e79d0fd15f8eb3f6c6a187d27b6c07c911bf7981998f12d0f57ebb3601cfe4f76f
7
+ data.tar.gz: e48c2917837cb09dccc6ce30ea290eaed676b809c0ad682fd1d14f4b1ee1afbe6e3213ebe0fe18857e2169e1e2ffaf2fc53d21f3a374276033c6723495321b46
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.26.0 (2025-05-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20250518
@@ -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.26.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250518"
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,6 +51,41 @@ 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
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.26.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.26.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: