google-apis-oslogin_v1alpha 0.28.0 → 0.30.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: dfa1241d7cdc923fa639fe4ce5a1c2eef5582ec54b75dfd8acbb9b112634c4af
4
- data.tar.gz: be5d27abc7a1090332220401e933e7f2300f8c2b137a228c85ed18dd22ebf99c
3
+ metadata.gz: 92db10613ed53b704957039cf679ff23f4b907e64fcecee152e89a950555cd23
4
+ data.tar.gz: 74d159cfc9566325f1c3bf10b3ac1b1d1fdaa9faa835cda33d28be2fa02c4d85
5
5
  SHA512:
6
- metadata.gz: 99d4c266688add35263bbe75250b2534117c85df02a567580c91bcadd83d015869cc8655cbb9dfd2d92119965104fd4e5aa1b1a66a8c2a3bfa7cb71d7ab2cda9
7
- data.tar.gz: 5a179253382664800e7500d3dbb72f0f7c6a038608f6a8652e014b02ecc2997bd47932a19c22263dd77b4aa4aecc28959635cbdcaa4e83a424ebf001579b9b85
6
+ metadata.gz: 72ce882292104990f9199c37f1a68aee190f1a2e0b577be027b8536586428e592fa1920bf95efb40d40e36296e22378134becf461f0abf1c8d534c9cb7fb5dcf
7
+ data.tar.gz: da0c1b313468b5a997f1daf74779a9308cb11a7ddc92cab2b1c4234a86f0271ef38c062d40b314d5a0ffb7cdcf798ba57078de59c980adcfe977994a9eea2f5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-oslogin_v1alpha
2
2
 
3
+ ### v0.30.0 (2025-03-16)
4
+
5
+ * Regenerated from discovery document revision 20250302
6
+
7
+ ### v0.29.0 (2025-02-26)
8
+
9
+ * Regenerated from discovery document revision 20250209
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.28.0 (2024-12-15)
4
13
 
5
14
  * Regenerated from discovery document revision 20241208
@@ -38,6 +38,69 @@ module Google
38
38
  end
39
39
  end
40
40
 
41
+ # A request message for signing an SSH public key.
42
+ class GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest
43
+ include Google::Apis::Core::Hashable
44
+
45
+ # The App Engine instance to sign the SSH public key for. Expected format:
46
+ # services/`service`/versions/`version`/instances/`instance`
47
+ # Corresponds to the JSON property `appEngineInstance`
48
+ # @return [String]
49
+ attr_accessor :app_engine_instance
50
+
51
+ # The compute instance to sign the SSH public key for. Expected format: projects/
52
+ # `project`/zones/`zone`/instances/`numeric_instance_id`
53
+ # Corresponds to the JSON property `computeInstance`
54
+ # @return [String]
55
+ attr_accessor :compute_instance
56
+
57
+ # Optional. The service account for the Compute instance. If the instance in
58
+ # question does not have a service account, this field should be left empty. If
59
+ # the wrong service account is provided, this operation will return a signed
60
+ # certificate that will not be accepted by the VM. During rollout of the new
61
+ # regionalized SignSshPublicKey API, this field will be required for all
62
+ # requests, but the VM will not initially carry out the
63
+ # Corresponds to the JSON property `serviceAccount`
64
+ # @return [String]
65
+ attr_accessor :service_account
66
+
67
+ # Required. The SSH public key to sign.
68
+ # Corresponds to the JSON property `sshPublicKey`
69
+ # @return [String]
70
+ attr_accessor :ssh_public_key
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @app_engine_instance = args[:app_engine_instance] if args.key?(:app_engine_instance)
79
+ @compute_instance = args[:compute_instance] if args.key?(:compute_instance)
80
+ @service_account = args[:service_account] if args.key?(:service_account)
81
+ @ssh_public_key = args[:ssh_public_key] if args.key?(:ssh_public_key)
82
+ end
83
+ end
84
+
85
+ # The response message for signing an SSH public key.
86
+ class GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse
87
+ include Google::Apis::Core::Hashable
88
+
89
+ # The signed SSH public key to use in the SSH handshake.
90
+ # Corresponds to the JSON property `signedSshPublicKey`
91
+ # @return [String]
92
+ attr_accessor :signed_ssh_public_key
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @signed_ssh_public_key = args[:signed_ssh_public_key] if args.key?(:signed_ssh_public_key)
101
+ end
102
+ end
103
+
41
104
  # A response message for importing an SSH public key.
42
105
  class ImportSshPublicKeyResponse
43
106
  include Google::Apis::Core::Hashable
@@ -183,6 +246,27 @@ module Google
183
246
  end
184
247
  end
185
248
 
249
+ # A request message for creating a POSIX account entry.
250
+ class ProvisionPosixAccountRequest
251
+ include Google::Apis::Core::Hashable
252
+
253
+ # Optional. The regions to wait for a POSIX account to be written to before
254
+ # returning a response. If unspecified, defaults to all regions. Regions are
255
+ # listed at https://cloud.google.com/about/locations#region.
256
+ # Corresponds to the JSON property `regions`
257
+ # @return [Array<String>]
258
+ attr_accessor :regions
259
+
260
+ def initialize(**args)
261
+ update!(**args)
262
+ end
263
+
264
+ # Update properties of this object
265
+ def update!(**args)
266
+ @regions = args[:regions] if args.key?(:regions)
267
+ end
268
+ end
269
+
186
270
  # The credential information for a Google registered security key.
187
271
  class SecurityKey
188
272
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsloginV1alpha
18
18
  # Version of the google-apis-oslogin_v1alpha gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241208"
25
+ REVISION = "20250302"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,18 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class ImportSshPublicKeyResponse
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -46,6 +58,12 @@ module Google
46
58
  include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
61
+ class ProvisionPosixAccountRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class SecurityKey
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
@@ -88,6 +106,23 @@ module Google
88
106
  end
89
107
  end
90
108
 
109
+ class GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :app_engine_instance, as: 'appEngineInstance'
113
+ property :compute_instance, as: 'computeInstance'
114
+ property :service_account, as: 'serviceAccount'
115
+ property :ssh_public_key, as: 'sshPublicKey'
116
+ end
117
+ end
118
+
119
+ class GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse
120
+ # @private
121
+ class Representation < Google::Apis::Core::JsonRepresentation
122
+ property :signed_ssh_public_key, as: 'signedSshPublicKey'
123
+ end
124
+ end
125
+
91
126
  class ImportSshPublicKeyResponse
92
127
  # @private
93
128
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -127,6 +162,13 @@ module Google
127
162
  end
128
163
  end
129
164
 
165
+ class ProvisionPosixAccountRequest
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ collection :regions, as: 'regions'
169
+ end
170
+ end
171
+
130
172
  class SecurityKey
131
173
  # @private
132
174
  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::OsloginV1alpha::GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest] google_cloud_oslogin_controlplane_regional_v1alpha_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::OsloginV1alpha::GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::OsloginV1alpha::GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse]
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_project_location_ssh_public_key(parent, google_cloud_oslogin_controlplane_regional_v1alpha_sign_ssh_public_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'v1alpha/{+parent}:signSshPublicKey', options)
79
+ command.request_representation = Google::Apis::OsloginV1alpha::GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest::Representation
80
+ command.request_object = google_cloud_oslogin_controlplane_regional_v1alpha_sign_ssh_public_key_request_object
81
+ command.response_representation = Google::Apis::OsloginV1alpha::GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse::Representation
82
+ command.response_class = Google::Apis::OsloginV1alpha::GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse
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
@@ -175,6 +210,40 @@ module Google
175
210
  execute_or_queue_command(command, &block)
176
211
  end
177
212
 
213
+ # Create a POSIX account if it doesn't exist.
214
+ # @param [String] name
215
+ # Required. The unique ID for the user in format `users/`user`/projects/`project`
216
+ # `.
217
+ # @param [Google::Apis::OsloginV1alpha::ProvisionPosixAccountRequest] provision_posix_account_request_object
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::OsloginV1alpha::PosixAccount] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::OsloginV1alpha::PosixAccount]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def provision_project_posix_account(name, provision_posix_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:post, 'v1alpha/{+name}', options)
237
+ command.request_representation = Google::Apis::OsloginV1alpha::ProvisionPosixAccountRequest::Representation
238
+ command.request_object = provision_posix_account_request_object
239
+ command.response_representation = Google::Apis::OsloginV1alpha::PosixAccount::Representation
240
+ command.response_class = Google::Apis::OsloginV1alpha::PosixAccount
241
+ command.params['name'] = name unless name.nil?
242
+ command.query['fields'] = fields unless fields.nil?
243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
244
+ execute_or_queue_command(command, &block)
245
+ end
246
+
178
247
  # Signs an SSH public key for a user to authenticate to a virtual machine on
179
248
  # Google Compute Engine.
180
249
  # @param [String] parent
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-oslogin_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-03-16 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1alpha/v0.28.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1alpha/v0.30.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1alpha
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Cloud OS Login API V1alpha
82
79
  test_files: []