diff --git a/api_names_out.yaml b/api_names_out.yaml index 41bf745ccbe..c50fde2f256 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -310372,6 +310372,13 @@ "/oslogin:v1/PosixAccount/systemId": system_id "/oslogin:v1/PosixAccount/uid": uid "/oslogin:v1/PosixAccount/username": username +"/oslogin:v1/SignSshPublicKeyRequest": sign_ssh_public_key_request +"/oslogin:v1/SignSshPublicKeyRequest/appEngineInstance": app_engine_instance +"/oslogin:v1/SignSshPublicKeyRequest/computeInstance": compute_instance +"/oslogin:v1/SignSshPublicKeyRequest/serviceAccount": service_account +"/oslogin:v1/SignSshPublicKeyRequest/sshPublicKey": ssh_public_key +"/oslogin:v1/SignSshPublicKeyResponse": sign_ssh_public_key_response +"/oslogin:v1/SignSshPublicKeyResponse/signedSshPublicKey": signed_ssh_public_key "/oslogin:v1/SshPublicKey": ssh_public_key "/oslogin:v1/SshPublicKey/expirationTimeUsec": expiration_time_usec "/oslogin:v1/SshPublicKey/fingerprint": fingerprint @@ -310379,6 +310386,8 @@ "/oslogin:v1/SshPublicKey/name": name "/oslogin:v1/fields": fields "/oslogin:v1/key": key +"/oslogin:v1/oslogin.projects.locations.signSshPublicKey": sign_location_ssh_public_key +"/oslogin:v1/oslogin.projects.locations.signSshPublicKey/parent": parent "/oslogin:v1/oslogin.users.getLoginProfile": get_user_login_profile "/oslogin:v1/oslogin.users.getLoginProfile/name": name "/oslogin:v1/oslogin.users.getLoginProfile/projectId": project_id diff --git a/generated/google-apis-oslogin_v1/CHANGELOG.md b/generated/google-apis-oslogin_v1/CHANGELOG.md index c95a6d8bb0b..eac524526b4 100644 --- a/generated/google-apis-oslogin_v1/CHANGELOG.md +++ b/generated/google-apis-oslogin_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-oslogin_v1 +### v0.27.0 (2025-09-28) + +* Regenerated from discovery document revision 20250921 + ### v0.26.0 (2025-05-25) * Regenerated from discovery document revision 20250518 diff --git a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/classes.rb b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/classes.rb index d2fe4441cf4..ca8e6abf038 100644 --- a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/classes.rb +++ b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/classes.rb @@ -177,6 +177,67 @@ def update!(**args) end end + # A request message for signing an SSH public key. + class SignSshPublicKeyRequest + include Google::Apis::Core::Hashable + + # The App Engine instance to sign the SSH public key for. Expected format: apps/` + # app`/services/`service`/versions/`version`/instances/`instance` + # Corresponds to the JSON property `appEngineInstance` + # @return [String] + attr_accessor :app_engine_instance + + # The Compute instance to sign the SSH public key for. Expected format: projects/ + # `project`/zones/`zone`/instances/`numeric_instance_id` + # Corresponds to the JSON property `computeInstance` + # @return [String] + attr_accessor :compute_instance + + # Optional. The service account for the instance. If the instance in question + # does not have a service account, this field should be left empty. If the wrong + # service account is provided, this operation will return a signed certificate + # that will not be accepted by the VM. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + # Required. The SSH public key to sign. + # Corresponds to the JSON property `sshPublicKey` + # @return [String] + attr_accessor :ssh_public_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_instance = args[:app_engine_instance] if args.key?(:app_engine_instance) + @compute_instance = args[:compute_instance] if args.key?(:compute_instance) + @service_account = args[:service_account] if args.key?(:service_account) + @ssh_public_key = args[:ssh_public_key] if args.key?(:ssh_public_key) + end + end + + # The response message for signing an SSH public key. + class SignSshPublicKeyResponse + include Google::Apis::Core::Hashable + + # The signed SSH public key to use in the SSH handshake. + # Corresponds to the JSON property `signedSshPublicKey` + # @return [String] + attr_accessor :signed_ssh_public_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @signed_ssh_public_key = args[:signed_ssh_public_key] if args.key?(:signed_ssh_public_key) + end + end + # The SSH public key information associated with a Google account. class SshPublicKey include Google::Apis::Core::Hashable diff --git a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/gem_version.rb b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/gem_version.rb index 0375c6046a5..6b8d59aac0f 100644 --- a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/gem_version.rb +++ b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module OsloginV1 # Version of the google-apis-oslogin_v1 gem - GEM_VERSION = "0.26.0" + GEM_VERSION = "0.27.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250518" + REVISION = "20250921" end end end diff --git a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/representations.rb b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/representations.rb index 43fa363b38d..e945dc508da 100644 --- a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/representations.rb +++ b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/representations.rb @@ -46,6 +46,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class SignSshPublicKeyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignSshPublicKeyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SshPublicKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -95,6 +107,23 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class SignSshPublicKeyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_instance, as: 'appEngineInstance' + property :compute_instance, as: 'computeInstance' + property :service_account, as: 'serviceAccount' + property :ssh_public_key, as: 'sshPublicKey' + end + end + + class SignSshPublicKeyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :signed_ssh_public_key, as: 'signedSshPublicKey' + end + end + class SshPublicKey # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/service.rb b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/service.rb index 99b85f54c9b..7a8c160b513 100644 --- a/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/service.rb +++ b/generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/service.rb @@ -51,6 +51,41 @@ def initialize @batch_path = 'batch' end + # Signs an SSH public key for a user to authenticate to a virtual machine on + # Google Compute Engine. + # @param [String] parent + # Required. The parent for the signing request. Format: projects/`project`/ + # locations/`location` + # @param [Google::Apis::OsloginV1::SignSshPublicKeyRequest] sign_ssh_public_key_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::SignSshPublicKeyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::SignSshPublicKeyResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def sign_location_ssh_public_key(parent, sign_ssh_public_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}:signSshPublicKey', options) + command.request_representation = Google::Apis::OsloginV1::SignSshPublicKeyRequest::Representation + command.request_object = sign_ssh_public_key_request_object + command.response_representation = Google::Apis::OsloginV1::SignSshPublicKeyResponse::Representation + command.response_class = Google::Apis::OsloginV1::SignSshPublicKeyResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the profile information used for logging in to a virtual machine on # Google Compute Engine. # @param [String] name