Skip to content

Commit c8b9195

Browse files
feat: Automated regeneration of oslogin v1alpha client (googleapis#22095)
Auto-created at 2025-03-16 10:02:34 +0000 using the toys pull request generator.
1 parent a1a7163 commit c8b9195

File tree

6 files changed

+142
-2
lines changed

6 files changed

+142
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288561,6 +288561,13 @@
288561288561
"/oslogin:v1/oslogin.users.sshPublicKeys.patch/updateMask": update_mask
288562288562
"/oslogin:v1/quotaUser": quota_user
288563288563
"/oslogin:v1alpha/Empty": empty
288564+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest": google_cloud_oslogin_controlplane_regional_v1alpha_sign_ssh_public_key_request
288565+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest/appEngineInstance": app_engine_instance
288566+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest/computeInstance": compute_instance
288567+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest/serviceAccount": service_account
288568+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest/sshPublicKey": ssh_public_key
288569+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse": google_cloud_oslogin_controlplane_regional_v1alpha_sign_ssh_public_key_response
288570+
"/oslogin:v1alpha/GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse/signedSshPublicKey": signed_ssh_public_key
288564288571
"/oslogin:v1alpha/ImportSshPublicKeyResponse": import_ssh_public_key_response
288565288572
"/oslogin:v1alpha/ImportSshPublicKeyResponse/details": details
288566288573
"/oslogin:v1alpha/ImportSshPublicKeyResponse/loginProfile": login_profile
@@ -288609,6 +288616,8 @@
288609288616
"/oslogin:v1alpha/WebAuthn/rpId": rp_id
288610288617
"/oslogin:v1alpha/fields": fields
288611288618
"/oslogin:v1alpha/key": key
288619+
"/oslogin:v1alpha/oslogin.projects.locations.signSshPublicKey": sign_project_location_ssh_public_key
288620+
"/oslogin:v1alpha/oslogin.projects.locations.signSshPublicKey/parent": parent
288612288621
"/oslogin:v1alpha/oslogin.users.getLoginProfile": get_user_login_profile
288613288622
"/oslogin:v1alpha/oslogin.users.getLoginProfile/name": name
288614288623
"/oslogin:v1alpha/oslogin.users.getLoginProfile/operatingSystemType": operating_system_type

generated/google-apis-oslogin_v1alpha/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-oslogin_v1alpha
22

3+
### v0.30.0 (2025-03-16)
4+
5+
* Regenerated from discovery document revision 20250302
6+
37
### v0.29.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250209

generated/google-apis-oslogin_v1alpha/lib/google/apis/oslogin_v1alpha/classes.rb

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,69 @@ def update!(**args)
3838
end
3939
end
4040

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+
41104
# A response message for importing an SSH public key.
42105
class ImportSshPublicKeyResponse
43106
include Google::Apis::Core::Hashable

generated/google-apis-oslogin_v1alpha/lib/google/apis/oslogin_v1alpha/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OsloginV1alpha
1818
# Version of the google-apis-oslogin_v1alpha gem
19-
GEM_VERSION = "0.29.0"
19+
GEM_VERSION = "0.30.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250209"
25+
REVISION = "20250302"
2626
end
2727
end
2828
end

generated/google-apis-oslogin_v1alpha/lib/google/apis/oslogin_v1alpha/representations.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
2828
include Google::Apis::Core::JsonObjectSupport
2929
end
3030

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+
3143
class ImportSshPublicKeyResponse
3244
class Representation < Google::Apis::Core::JsonRepresentation; end
3345

@@ -94,6 +106,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
94106
end
95107
end
96108

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+
97126
class ImportSshPublicKeyResponse
98127
# @private
99128
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-oslogin_v1alpha/lib/google/apis/oslogin_v1alpha/service.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,41 @@ def initialize
5151
@batch_path = 'batch'
5252
end
5353

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+
5489
# Retrieves the profile information used for logging in to a virtual machine on
5590
# Google Compute Engine.
5691
# @param [String] name

0 commit comments

Comments
 (0)