google-cloud-os_login-v1beta 0.8.0 → 0.9.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 +4 -4
- data/lib/google/cloud/os_login/v1beta/os_login_service/client.rb +97 -0
- data/lib/google/cloud/os_login/v1beta/os_login_service/rest/client.rb +74 -0
- data/lib/google/cloud/os_login/v1beta/os_login_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/os_login/v1beta/version.rb +1 -1
- data/lib/google/cloud/oslogin/v1beta/oslogin_pb.rb +3 -1
- data/lib/google/cloud/oslogin/v1beta/oslogin_services_pb.rb +2 -0
- data/proto_docs/google/cloud/oslogin/v1beta/oslogin.rb +22 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecb4a2f00ab958a104c7ab31ab21388d959e21826da63974c1f7a538e36479c0
|
|
4
|
+
data.tar.gz: 4677899c89dbda131f23f89bb77199012be4e53fc61ea80a72873248ad2e8c62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 860291e98db85a019580d375477664c4057111dcd9029452e4ceefc767ed85d5dc49555abc6d7f428dc4b329317ac189b280d527b58e430e0974f899c45b18b6
|
|
7
|
+
data.tar.gz: aacd08b8680ba20ca2e9cc044b3a7778d99932a0a2407e92418bb28a45dac9262a34fb59fdb4ddfe4d42a72954c603839376fc588ad75f440aec73ca0f2e95e5
|
|
@@ -802,6 +802,96 @@ module Google
|
|
|
802
802
|
raise ::Google::Cloud::Error.from_error(e)
|
|
803
803
|
end
|
|
804
804
|
|
|
805
|
+
##
|
|
806
|
+
# Signs an SSH public key for a user to authenticate to an instance.
|
|
807
|
+
#
|
|
808
|
+
# @overload sign_ssh_public_key(request, options = nil)
|
|
809
|
+
# Pass arguments to `sign_ssh_public_key` via a request object, either of type
|
|
810
|
+
# {::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest} or an equivalent Hash.
|
|
811
|
+
#
|
|
812
|
+
# @param request [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest, ::Hash]
|
|
813
|
+
# A request object representing the call parameters. Required. To specify no
|
|
814
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
815
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
816
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
817
|
+
#
|
|
818
|
+
# @overload sign_ssh_public_key(ssh_public_key: nil, parent: nil)
|
|
819
|
+
# Pass arguments to `sign_ssh_public_key` via keyword arguments. Note that at
|
|
820
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
821
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
822
|
+
#
|
|
823
|
+
# @param ssh_public_key [::String]
|
|
824
|
+
# The SSH public key to sign.
|
|
825
|
+
# @param parent [::String]
|
|
826
|
+
# The parent project and zone for the signing request. This is needed to
|
|
827
|
+
# properly ensure per-organization ISS processing and potentially to provide
|
|
828
|
+
# for the possibility of zone-specific certificates used in the signing
|
|
829
|
+
# process.
|
|
830
|
+
#
|
|
831
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
832
|
+
# @yieldparam response [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse]
|
|
833
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
834
|
+
#
|
|
835
|
+
# @return [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse]
|
|
836
|
+
#
|
|
837
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
838
|
+
#
|
|
839
|
+
# @example Basic example
|
|
840
|
+
# require "google/cloud/os_login/v1beta"
|
|
841
|
+
#
|
|
842
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
843
|
+
# client = Google::Cloud::OsLogin::V1beta::OsLoginService::Client.new
|
|
844
|
+
#
|
|
845
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
846
|
+
# request = Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest.new
|
|
847
|
+
#
|
|
848
|
+
# # Call the sign_ssh_public_key method.
|
|
849
|
+
# result = client.sign_ssh_public_key request
|
|
850
|
+
#
|
|
851
|
+
# # The returned object is of type Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse.
|
|
852
|
+
# p result
|
|
853
|
+
#
|
|
854
|
+
def sign_ssh_public_key request, options = nil
|
|
855
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
856
|
+
|
|
857
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest
|
|
858
|
+
|
|
859
|
+
# Converts hash and nil to an options object
|
|
860
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
861
|
+
|
|
862
|
+
# Customize the options with defaults
|
|
863
|
+
metadata = @config.rpcs.sign_ssh_public_key.metadata.to_h
|
|
864
|
+
|
|
865
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
866
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
867
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
868
|
+
gapic_version: ::Google::Cloud::OsLogin::V1beta::VERSION
|
|
869
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
870
|
+
|
|
871
|
+
header_params = {}
|
|
872
|
+
if request.parent
|
|
873
|
+
header_params["parent"] = request.parent
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
877
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
878
|
+
|
|
879
|
+
options.apply_defaults timeout: @config.rpcs.sign_ssh_public_key.timeout,
|
|
880
|
+
metadata: metadata,
|
|
881
|
+
retry_policy: @config.rpcs.sign_ssh_public_key.retry_policy
|
|
882
|
+
|
|
883
|
+
options.apply_defaults timeout: @config.timeout,
|
|
884
|
+
metadata: @config.metadata,
|
|
885
|
+
retry_policy: @config.retry_policy
|
|
886
|
+
|
|
887
|
+
@os_login_service_stub.call_rpc :sign_ssh_public_key, request, options: options do |response, operation|
|
|
888
|
+
yield response, operation if block_given?
|
|
889
|
+
return response
|
|
890
|
+
end
|
|
891
|
+
rescue ::GRPC::BadStatus => e
|
|
892
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
893
|
+
end
|
|
894
|
+
|
|
805
895
|
##
|
|
806
896
|
# Configuration class for the OsLoginService API.
|
|
807
897
|
#
|
|
@@ -974,6 +1064,11 @@ module Google
|
|
|
974
1064
|
# @return [::Gapic::Config::Method]
|
|
975
1065
|
#
|
|
976
1066
|
attr_reader :update_ssh_public_key
|
|
1067
|
+
##
|
|
1068
|
+
# RPC-specific configuration for `sign_ssh_public_key`
|
|
1069
|
+
# @return [::Gapic::Config::Method]
|
|
1070
|
+
#
|
|
1071
|
+
attr_reader :sign_ssh_public_key
|
|
977
1072
|
|
|
978
1073
|
# @private
|
|
979
1074
|
def initialize parent_rpcs = nil
|
|
@@ -991,6 +1086,8 @@ module Google
|
|
|
991
1086
|
@import_ssh_public_key = ::Gapic::Config::Method.new import_ssh_public_key_config
|
|
992
1087
|
update_ssh_public_key_config = parent_rpcs.update_ssh_public_key if parent_rpcs.respond_to? :update_ssh_public_key
|
|
993
1088
|
@update_ssh_public_key = ::Gapic::Config::Method.new update_ssh_public_key_config
|
|
1089
|
+
sign_ssh_public_key_config = parent_rpcs.sign_ssh_public_key if parent_rpcs.respond_to? :sign_ssh_public_key
|
|
1090
|
+
@sign_ssh_public_key = ::Gapic::Config::Method.new sign_ssh_public_key_config
|
|
994
1091
|
|
|
995
1092
|
yield self if block_given?
|
|
996
1093
|
end
|
|
@@ -632,6 +632,73 @@ module Google
|
|
|
632
632
|
raise ::Google::Cloud::Error.from_error(e)
|
|
633
633
|
end
|
|
634
634
|
|
|
635
|
+
##
|
|
636
|
+
# Signs an SSH public key for a user to authenticate to an instance.
|
|
637
|
+
#
|
|
638
|
+
# @overload sign_ssh_public_key(request, options = nil)
|
|
639
|
+
# Pass arguments to `sign_ssh_public_key` via a request object, either of type
|
|
640
|
+
# {::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest} or an equivalent Hash.
|
|
641
|
+
#
|
|
642
|
+
# @param request [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest, ::Hash]
|
|
643
|
+
# A request object representing the call parameters. Required. To specify no
|
|
644
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
645
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
646
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
647
|
+
#
|
|
648
|
+
# @overload sign_ssh_public_key(ssh_public_key: nil, parent: nil)
|
|
649
|
+
# Pass arguments to `sign_ssh_public_key` via keyword arguments. Note that at
|
|
650
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
651
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
652
|
+
#
|
|
653
|
+
# @param ssh_public_key [::String]
|
|
654
|
+
# The SSH public key to sign.
|
|
655
|
+
# @param parent [::String]
|
|
656
|
+
# The parent project and zone for the signing request. This is needed to
|
|
657
|
+
# properly ensure per-organization ISS processing and potentially to provide
|
|
658
|
+
# for the possibility of zone-specific certificates used in the signing
|
|
659
|
+
# process.
|
|
660
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
661
|
+
# @yieldparam result [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse]
|
|
662
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
663
|
+
#
|
|
664
|
+
# @return [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse]
|
|
665
|
+
#
|
|
666
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
667
|
+
def sign_ssh_public_key request, options = nil
|
|
668
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
669
|
+
|
|
670
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest
|
|
671
|
+
|
|
672
|
+
# Converts hash and nil to an options object
|
|
673
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
674
|
+
|
|
675
|
+
# Customize the options with defaults
|
|
676
|
+
call_metadata = @config.rpcs.sign_ssh_public_key.metadata.to_h
|
|
677
|
+
|
|
678
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
679
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
680
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
681
|
+
gapic_version: ::Google::Cloud::OsLogin::V1beta::VERSION,
|
|
682
|
+
transports_version_send: [:rest]
|
|
683
|
+
|
|
684
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
685
|
+
|
|
686
|
+
options.apply_defaults timeout: @config.rpcs.sign_ssh_public_key.timeout,
|
|
687
|
+
metadata: call_metadata,
|
|
688
|
+
retry_policy: @config.rpcs.sign_ssh_public_key.retry_policy
|
|
689
|
+
|
|
690
|
+
options.apply_defaults timeout: @config.timeout,
|
|
691
|
+
metadata: @config.metadata,
|
|
692
|
+
retry_policy: @config.retry_policy
|
|
693
|
+
|
|
694
|
+
@os_login_service_stub.sign_ssh_public_key request, options do |result, operation|
|
|
695
|
+
yield result, operation if block_given?
|
|
696
|
+
return result
|
|
697
|
+
end
|
|
698
|
+
rescue ::Gapic::Rest::Error => e
|
|
699
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
700
|
+
end
|
|
701
|
+
|
|
635
702
|
##
|
|
636
703
|
# Configuration class for the OsLoginService REST API.
|
|
637
704
|
#
|
|
@@ -792,6 +859,11 @@ module Google
|
|
|
792
859
|
# @return [::Gapic::Config::Method]
|
|
793
860
|
#
|
|
794
861
|
attr_reader :update_ssh_public_key
|
|
862
|
+
##
|
|
863
|
+
# RPC-specific configuration for `sign_ssh_public_key`
|
|
864
|
+
# @return [::Gapic::Config::Method]
|
|
865
|
+
#
|
|
866
|
+
attr_reader :sign_ssh_public_key
|
|
795
867
|
|
|
796
868
|
# @private
|
|
797
869
|
def initialize parent_rpcs = nil
|
|
@@ -809,6 +881,8 @@ module Google
|
|
|
809
881
|
@import_ssh_public_key = ::Gapic::Config::Method.new import_ssh_public_key_config
|
|
810
882
|
update_ssh_public_key_config = parent_rpcs.update_ssh_public_key if parent_rpcs.respond_to? :update_ssh_public_key
|
|
811
883
|
@update_ssh_public_key = ::Gapic::Config::Method.new update_ssh_public_key_config
|
|
884
|
+
sign_ssh_public_key_config = parent_rpcs.sign_ssh_public_key if parent_rpcs.respond_to? :sign_ssh_public_key
|
|
885
|
+
@sign_ssh_public_key = ::Gapic::Config::Method.new sign_ssh_public_key_config
|
|
812
886
|
|
|
813
887
|
yield self if block_given?
|
|
814
888
|
end
|
|
@@ -306,6 +306,44 @@ module Google
|
|
|
306
306
|
result
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
##
|
|
310
|
+
# Baseline implementation for the sign_ssh_public_key REST call
|
|
311
|
+
#
|
|
312
|
+
# @param request_pb [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest]
|
|
313
|
+
# A request object representing the call parameters. Required.
|
|
314
|
+
# @param options [::Gapic::CallOptions]
|
|
315
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
316
|
+
#
|
|
317
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
318
|
+
# @yieldparam result [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse]
|
|
319
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
320
|
+
#
|
|
321
|
+
# @return [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse]
|
|
322
|
+
# A result object deserialized from the server's reply
|
|
323
|
+
def sign_ssh_public_key request_pb, options = nil
|
|
324
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
325
|
+
|
|
326
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_sign_ssh_public_key_request request_pb
|
|
327
|
+
query_string_params = if query_string_params.any?
|
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
329
|
+
else
|
|
330
|
+
{}
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
response = @client_stub.make_http_request(
|
|
334
|
+
verb,
|
|
335
|
+
uri: uri,
|
|
336
|
+
body: body || "",
|
|
337
|
+
params: query_string_params,
|
|
338
|
+
options: options
|
|
339
|
+
)
|
|
340
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
341
|
+
result = ::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse.decode_json response.body, ignore_unknown_fields: true
|
|
342
|
+
|
|
343
|
+
yield result, operation if block_given?
|
|
344
|
+
result
|
|
345
|
+
end
|
|
346
|
+
|
|
309
347
|
##
|
|
310
348
|
# @private
|
|
311
349
|
#
|
|
@@ -455,6 +493,28 @@ module Google
|
|
|
455
493
|
)
|
|
456
494
|
transcoder.transcode request_pb
|
|
457
495
|
end
|
|
496
|
+
|
|
497
|
+
##
|
|
498
|
+
# @private
|
|
499
|
+
#
|
|
500
|
+
# GRPC transcoding helper method for the sign_ssh_public_key REST call
|
|
501
|
+
#
|
|
502
|
+
# @param request_pb [::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest]
|
|
503
|
+
# A request object representing the call parameters. Required.
|
|
504
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
505
|
+
# Uri, Body, Query string parameters
|
|
506
|
+
def self.transcode_sign_ssh_public_key_request request_pb
|
|
507
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
508
|
+
.with_bindings(
|
|
509
|
+
uri_method: :post,
|
|
510
|
+
uri_template: "/v1beta/{parent}:signSshPublicKey",
|
|
511
|
+
body: "*",
|
|
512
|
+
matches: [
|
|
513
|
+
["parent", %r{^users/[^/]+/projects/[^/]+/zones/[^/]+/?$}, false]
|
|
514
|
+
]
|
|
515
|
+
)
|
|
516
|
+
transcoder.transcode request_pb
|
|
517
|
+
end
|
|
458
518
|
end
|
|
459
519
|
end
|
|
460
520
|
end
|
|
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
|
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
descriptor_data = "\n)google/cloud/oslogin/v1beta/oslogin.proto\x12\x1bgoogle.cloud.oslogin.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xdd\x02\n\x0cLoginProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12U\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32<.google.cloud.oslogin.v1beta.LoginProfile.SshPublicKeysEntry\x12?\n\rsecurity_keys\x18\x05 \x03(\x0b\x32(.google.cloud.oslogin.v1beta.SecurityKey\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01\"\xa0\x01\n\x19\x43reateSshPublicKeyRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\"V\n\x19\x44\x65letePosixAccountRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/PosixAccount\"V\n\x19\x44\x65leteSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\"\xaf\x01\n\x16GetLoginProfileRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1boslogin.googleapis.com/User\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\tsystem_id\x18\x03 \x01(\t\x12;\n\x04view\x18\x04 \x01(\x0e\x32-.google.cloud.oslogin.v1beta.LoginProfileView\"S\n\x16GetSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\"\xee\x01\n\x19ImportSshPublicKeyRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xfa\x41%\x12#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12;\n\x04view\x18\x04 \x01(\x0e\x32-.google.cloud.oslogin.v1beta.LoginProfileView\"o\n\x1aImportSshPublicKeyResponse\x12@\n\rlogin_profile\x18\x01 \x01(\x0b\x32).google.cloud.oslogin.v1beta.LoginProfile\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\"\xcf\x01\n\x19UpdateSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xd4\x01\n\x0bSecurityKey\x12\x12\n\npublic_key\x18\x01 \x01(\t\x12\x13\n\x0bprivate_key\x18\x02 \x01(\t\x12O\n\x14universal_two_factor\x18\x03 \x01(\x0b\x32/.google.cloud.oslogin.v1beta.UniversalTwoFactorH\x00\x12:\n\tweb_authn\x18\x04 \x01(\x0b\x32%.google.cloud.oslogin.v1beta.WebAuthnH\x00\x42\x0f\n\rprotocol_type\"$\n\x12UniversalTwoFactor\x12\x0e\n\x06\x61pp_id\x18\x01 \x01(\t\"\x19\n\x08WebAuthn\x12\r\n\x05rp_id\x18\x01 \x01(\t*S\n\x10LoginProfileView\x12\"\n\x1eLOGIN_PROFILE_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x10\n\x0cSECURITY_KEY\x10\x02\x32\
|
|
16
|
+
descriptor_data = "\n)google/cloud/oslogin/v1beta/oslogin.proto\x12\x1bgoogle.cloud.oslogin.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xdd\x02\n\x0cLoginProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12U\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32<.google.cloud.oslogin.v1beta.LoginProfile.SshPublicKeysEntry\x12?\n\rsecurity_keys\x18\x05 \x03(\x0b\x32(.google.cloud.oslogin.v1beta.SecurityKey\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01\"\xa0\x01\n\x19\x43reateSshPublicKeyRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\"V\n\x19\x44\x65letePosixAccountRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/PosixAccount\"V\n\x19\x44\x65leteSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\"\xaf\x01\n\x16GetLoginProfileRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1boslogin.googleapis.com/User\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\tsystem_id\x18\x03 \x01(\t\x12;\n\x04view\x18\x04 \x01(\x0e\x32-.google.cloud.oslogin.v1beta.LoginProfileView\"S\n\x16GetSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\"\xee\x01\n\x19ImportSshPublicKeyRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xfa\x41%\x12#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12;\n\x04view\x18\x04 \x01(\x0e\x32-.google.cloud.oslogin.v1beta.LoginProfileView\"o\n\x1aImportSshPublicKeyResponse\x12@\n\rlogin_profile\x18\x01 \x01(\x0b\x32).google.cloud.oslogin.v1beta.LoginProfile\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\"\xcf\x01\n\x19UpdateSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xd4\x01\n\x0bSecurityKey\x12\x12\n\npublic_key\x18\x01 \x01(\t\x12\x13\n\x0bprivate_key\x18\x02 \x01(\t\x12O\n\x14universal_two_factor\x18\x03 \x01(\x0b\x32/.google.cloud.oslogin.v1beta.UniversalTwoFactorH\x00\x12:\n\tweb_authn\x18\x04 \x01(\x0b\x32%.google.cloud.oslogin.v1beta.WebAuthnH\x00\x42\x0f\n\rprotocol_type\"$\n\x12UniversalTwoFactor\x12\x0e\n\x06\x61pp_id\x18\x01 \x01(\t\"\x19\n\x08WebAuthn\x12\r\n\x05rp_id\x18\x01 \x01(\t\"A\n\x17SignSshPublicKeyRequest\x12\x16\n\x0essh_public_key\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\"9\n\x18SignSshPublicKeyResponse\x12\x1d\n\x15signed_ssh_public_key\x18\x01 \x01(\t*S\n\x10LoginProfileView\x12\"\n\x1eLOGIN_PROFILE_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x10\n\x0cSECURITY_KEY\x10\x02\x32\xa9\x0e\n\x0eOsLoginService\x12\xcf\x01\n\x12\x43reateSshPublicKey\x12\x36.google.cloud.oslogin.v1beta.CreateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\"V\x82\xd3\xe4\x93\x02\x38\"&/v1beta/{parent=users/*}/sshPublicKeys:\x0essh_public_key\xda\x41\x15parent,ssh_public_key\x12\x96\x01\n\x12\x44\x65letePosixAccount\x12\x36.google.cloud.oslogin.v1beta.DeletePosixAccountRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1beta/{name=users/*/projects/*}\xda\x41\x04name\x12\x9b\x01\n\x12\x44\x65leteSshPublicKey\x12\x36.google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02(*&/v1beta/{name=users/*/sshPublicKeys/*}\xda\x41\x04name\x12\xa5\x01\n\x0fGetLoginProfile\x12\x33.google.cloud.oslogin.v1beta.GetLoginProfileRequest\x1a).google.cloud.oslogin.v1beta.LoginProfile\"2\x82\xd3\xe4\x93\x02%\x12#/v1beta/{name=users/*}/loginProfile\xda\x41\x04name\x12\xa8\x01\n\x0fGetSshPublicKey\x12\x33.google.cloud.oslogin.v1beta.GetSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\"5\x82\xd3\xe4\x93\x02(\x12&/v1beta/{name=users/*/sshPublicKeys/*}\xda\x41\x04name\x12\x85\x02\n\x12ImportSshPublicKey\x12\x36.google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest\x1a\x37.google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse\"~\x82\xd3\xe4\x93\x02=\"+/v1beta/{parent=users/*}:importSshPublicKey:\x0essh_public_key\xda\x41\x15parent,ssh_public_key\xda\x41 parent,ssh_public_key,project_id\x12\xef\x01\n\x12UpdateSshPublicKey\x12\x36.google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\"v\x82\xd3\xe4\x93\x02\x38\x32&/v1beta/{name=users/*/sshPublicKeys/*}:\x0essh_public_key\xda\x41\x13name,ssh_public_key\xda\x41\x1fname,ssh_public_key,update_mask\x12\xe0\x01\n\x10SignSshPublicKey\x12\x34.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest\x1a\x35.google.cloud.oslogin.v1beta.SignSshPublicKeyResponse\"_\x82\xd3\xe4\x93\x02\x41\"</v1beta/{parent=users/*/projects/*/zones/*}:signSshPublicKey:\x01*\xda\x41\x15parent,ssh_public_key\x1a\xdd\x01\xca\x41\x16oslogin.googleapis.com\xd2\x41\xc0\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/compute.readonlyB\xc9\x01\n\x1f\x63om.google.cloud.oslogin.v1betaB\x0cOsLoginProtoP\x01Z9cloud.google.com/go/oslogin/apiv1beta/osloginpb;osloginpb\xaa\x02\x1bGoogle.Cloud.OsLogin.V1Beta\xca\x02\x1bGoogle\\Cloud\\OsLogin\\V1beta\xea\x02\x1eGoogle::Cloud::OsLogin::V1betab\x06proto3"
|
|
17
17
|
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
19
|
|
|
@@ -57,6 +57,8 @@ module Google
|
|
|
57
57
|
SecurityKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.SecurityKey").msgclass
|
|
58
58
|
UniversalTwoFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.UniversalTwoFactor").msgclass
|
|
59
59
|
WebAuthn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.WebAuthn").msgclass
|
|
60
|
+
SignSshPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.SignSshPublicKeyRequest").msgclass
|
|
61
|
+
SignSshPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.SignSshPublicKeyResponse").msgclass
|
|
60
62
|
LoginProfileView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.LoginProfileView").enummodule
|
|
61
63
|
end
|
|
62
64
|
end
|
|
@@ -54,6 +54,8 @@ module Google
|
|
|
54
54
|
# Updates an SSH public key and returns the profile information. This method
|
|
55
55
|
# supports patch semantics.
|
|
56
56
|
rpc :UpdateSshPublicKey, ::Google::Cloud::OsLogin::V1beta::UpdateSshPublicKeyRequest, ::Google::Cloud::OsLogin::Common::SshPublicKey
|
|
57
|
+
# Signs an SSH public key for a user to authenticate to an instance.
|
|
58
|
+
rpc :SignSshPublicKey, ::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyRequest, ::Google::Cloud::OsLogin::V1beta::SignSshPublicKeyResponse
|
|
57
59
|
end
|
|
58
60
|
|
|
59
61
|
Stub = Service.rpc_stub_class
|
|
@@ -196,6 +196,28 @@ module Google
|
|
|
196
196
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
+
# @!attribute [rw] ssh_public_key
|
|
200
|
+
# @return [::String]
|
|
201
|
+
# The SSH public key to sign.
|
|
202
|
+
# @!attribute [rw] parent
|
|
203
|
+
# @return [::String]
|
|
204
|
+
# The parent project and zone for the signing request. This is needed to
|
|
205
|
+
# properly ensure per-organization ISS processing and potentially to provide
|
|
206
|
+
# for the possibility of zone-specific certificates used in the signing
|
|
207
|
+
# process.
|
|
208
|
+
class SignSshPublicKeyRequest
|
|
209
|
+
include ::Google::Protobuf::MessageExts
|
|
210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# @!attribute [rw] signed_ssh_public_key
|
|
214
|
+
# @return [::String]
|
|
215
|
+
# The signed SSH public key to use in the SSH handshake.
|
|
216
|
+
class SignSshPublicKeyResponse
|
|
217
|
+
include ::Google::Protobuf::MessageExts
|
|
218
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
219
|
+
end
|
|
220
|
+
|
|
199
221
|
# The login profile view limits the user content retrieved.
|
|
200
222
|
module LoginProfileView
|
|
201
223
|
# The default login profile view. The API defaults to the BASIC view.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-os_login-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|