google-cloud-cloud_controls_partner-v1 2.0.1 → 2.1.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/cloud_controls_partner/v1/cloud_controls_partner_core/client.rb +288 -0
- data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/rest/client.rb +267 -0
- data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/rest/service_stub.rb +185 -0
- data/lib/google/cloud/cloud_controls_partner/v1/version.rb +1 -1
- data/lib/google/cloud/cloudcontrolspartner/v1/core_pb.rb +2 -1
- data/lib/google/cloud/cloudcontrolspartner/v1/core_services_pb.rb +6 -0
- data/lib/google/cloud/cloudcontrolspartner/v1/customers_pb.rb +6 -1
- data/lib/google/cloud/cloudcontrolspartner/v1/partners_pb.rb +1 -1
- data/proto_docs/google/cloud/cloudcontrolspartner/v1/core.rb +1 -1
- data/proto_docs/google/cloud/cloudcontrolspartner/v1/customers.rb +46 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1/partners.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +8 -12
data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/rest/service_stub.rb
CHANGED
@@ -393,6 +393,126 @@ module Google
|
|
393
393
|
end
|
394
394
|
end
|
395
395
|
|
396
|
+
##
|
397
|
+
# Baseline implementation for the create_customer REST call
|
398
|
+
#
|
399
|
+
# @param request_pb [::Google::Cloud::CloudControlsPartner::V1::CreateCustomerRequest]
|
400
|
+
# A request object representing the call parameters. Required.
|
401
|
+
# @param options [::Gapic::CallOptions]
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
403
|
+
#
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
405
|
+
# @yieldparam result [::Google::Cloud::CloudControlsPartner::V1::Customer]
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
407
|
+
#
|
408
|
+
# @return [::Google::Cloud::CloudControlsPartner::V1::Customer]
|
409
|
+
# A result object deserialized from the server's reply
|
410
|
+
def create_customer request_pb, options = nil
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
412
|
+
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_customer_request request_pb
|
414
|
+
query_string_params = if query_string_params.any?
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
416
|
+
else
|
417
|
+
{}
|
418
|
+
end
|
419
|
+
|
420
|
+
response = @client_stub.make_http_request(
|
421
|
+
verb,
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "create_customer",
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
429
|
+
result = ::Google::Cloud::CloudControlsPartner::V1::Customer.decode_json response.body, ignore_unknown_fields: true
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
##
|
437
|
+
# Baseline implementation for the update_customer REST call
|
438
|
+
#
|
439
|
+
# @param request_pb [::Google::Cloud::CloudControlsPartner::V1::UpdateCustomerRequest]
|
440
|
+
# A request object representing the call parameters. Required.
|
441
|
+
# @param options [::Gapic::CallOptions]
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
443
|
+
#
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
445
|
+
# @yieldparam result [::Google::Cloud::CloudControlsPartner::V1::Customer]
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
447
|
+
#
|
448
|
+
# @return [::Google::Cloud::CloudControlsPartner::V1::Customer]
|
449
|
+
# A result object deserialized from the server's reply
|
450
|
+
def update_customer request_pb, options = nil
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
452
|
+
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_request request_pb
|
454
|
+
query_string_params = if query_string_params.any?
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
456
|
+
else
|
457
|
+
{}
|
458
|
+
end
|
459
|
+
|
460
|
+
response = @client_stub.make_http_request(
|
461
|
+
verb,
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "update_customer",
|
466
|
+
options: options
|
467
|
+
)
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
469
|
+
result = ::Google::Cloud::CloudControlsPartner::V1::Customer.decode_json response.body, ignore_unknown_fields: true
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
##
|
477
|
+
# Baseline implementation for the delete_customer REST call
|
478
|
+
#
|
479
|
+
# @param request_pb [::Google::Cloud::CloudControlsPartner::V1::DeleteCustomerRequest]
|
480
|
+
# A request object representing the call parameters. Required.
|
481
|
+
# @param options [::Gapic::CallOptions]
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
483
|
+
#
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
485
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
487
|
+
#
|
488
|
+
# @return [::Google::Protobuf::Empty]
|
489
|
+
# A result object deserialized from the server's reply
|
490
|
+
def delete_customer request_pb, options = nil
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
492
|
+
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_request request_pb
|
494
|
+
query_string_params = if query_string_params.any?
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
496
|
+
else
|
497
|
+
{}
|
498
|
+
end
|
499
|
+
|
500
|
+
response = @client_stub.make_http_request(
|
501
|
+
verb,
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "delete_customer",
|
506
|
+
options: options
|
507
|
+
)
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
509
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
396
516
|
##
|
397
517
|
# @private
|
398
518
|
#
|
@@ -560,6 +680,71 @@ module Google
|
|
560
680
|
)
|
561
681
|
transcoder.transcode request_pb
|
562
682
|
end
|
683
|
+
|
684
|
+
##
|
685
|
+
# @private
|
686
|
+
#
|
687
|
+
# GRPC transcoding helper method for the create_customer REST call
|
688
|
+
#
|
689
|
+
# @param request_pb [::Google::Cloud::CloudControlsPartner::V1::CreateCustomerRequest]
|
690
|
+
# A request object representing the call parameters. Required.
|
691
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
692
|
+
# Uri, Body, Query string parameters
|
693
|
+
def self.transcode_create_customer_request request_pb
|
694
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
695
|
+
.with_bindings(
|
696
|
+
uri_method: :post,
|
697
|
+
uri_template: "/v1/{parent}/customers",
|
698
|
+
body: "customer",
|
699
|
+
matches: [
|
700
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
701
|
+
]
|
702
|
+
)
|
703
|
+
transcoder.transcode request_pb
|
704
|
+
end
|
705
|
+
|
706
|
+
##
|
707
|
+
# @private
|
708
|
+
#
|
709
|
+
# GRPC transcoding helper method for the update_customer REST call
|
710
|
+
#
|
711
|
+
# @param request_pb [::Google::Cloud::CloudControlsPartner::V1::UpdateCustomerRequest]
|
712
|
+
# A request object representing the call parameters. Required.
|
713
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
714
|
+
# Uri, Body, Query string parameters
|
715
|
+
def self.transcode_update_customer_request request_pb
|
716
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
717
|
+
.with_bindings(
|
718
|
+
uri_method: :patch,
|
719
|
+
uri_template: "/v1/{customer.name}",
|
720
|
+
body: "customer",
|
721
|
+
matches: [
|
722
|
+
["customer.name", %r{^organizations/[^/]+/locations/[^/]+/customers/[^/]+/?$}, false]
|
723
|
+
]
|
724
|
+
)
|
725
|
+
transcoder.transcode request_pb
|
726
|
+
end
|
727
|
+
|
728
|
+
##
|
729
|
+
# @private
|
730
|
+
#
|
731
|
+
# GRPC transcoding helper method for the delete_customer REST call
|
732
|
+
#
|
733
|
+
# @param request_pb [::Google::Cloud::CloudControlsPartner::V1::DeleteCustomerRequest]
|
734
|
+
# A request object representing the call parameters. Required.
|
735
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
736
|
+
# Uri, Body, Query string parameters
|
737
|
+
def self.transcode_delete_customer_request request_pb
|
738
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
739
|
+
.with_bindings(
|
740
|
+
uri_method: :delete,
|
741
|
+
uri_template: "/v1/{name}",
|
742
|
+
matches: [
|
743
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/customers/[^/]+/?$}, false]
|
744
|
+
]
|
745
|
+
)
|
746
|
+
transcoder.transcode request_pb
|
747
|
+
end
|
563
748
|
end
|
564
749
|
end
|
565
750
|
end
|
@@ -14,10 +14,11 @@ require 'google/cloud/cloudcontrolspartner/v1/customers_pb'
|
|
14
14
|
require 'google/cloud/cloudcontrolspartner/v1/ekm_connections_pb'
|
15
15
|
require 'google/cloud/cloudcontrolspartner/v1/partner_permissions_pb'
|
16
16
|
require 'google/cloud/cloudcontrolspartner/v1/partners_pb'
|
17
|
+
require 'google/protobuf/empty_pb'
|
17
18
|
require 'google/protobuf/timestamp_pb'
|
18
19
|
|
19
20
|
|
20
|
-
descriptor_data = "\n/google/cloud/cloudcontrolspartner/v1/core.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x43google/cloud/cloudcontrolspartner/v1/access_approval_requests.proto\x1a=google/cloud/cloudcontrolspartner/v1/customer_workloads.proto\x1a\x34google/cloud/cloudcontrolspartner/v1/customers.proto\x1a:google/cloud/cloudcontrolspartner/v1/ekm_connections.proto\x1a>google/cloud/cloudcontrolspartner/v1/partner_permissions.proto\x1a\x33google/cloud/cloudcontrolspartner/v1/partners.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\
|
21
|
+
descriptor_data = "\n/google/cloud/cloudcontrolspartner/v1/core.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x43google/cloud/cloudcontrolspartner/v1/access_approval_requests.proto\x1a=google/cloud/cloudcontrolspartner/v1/customer_workloads.proto\x1a\x34google/cloud/cloudcontrolspartner/v1/customers.proto\x1a:google/cloud/cloudcontrolspartner/v1/ekm_connections.proto\x1a>google/cloud/cloudcontrolspartner/v1/partner_permissions.proto\x1a\x33google/cloud/cloudcontrolspartner/v1/partners.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xd3\x13\n\x18\x43loudControlsPartnerCore\x12\xc6\x01\n\x0bGetWorkload\x12\x38.google.cloud.cloudcontrolspartner.v1.GetWorkloadRequest\x1a..google.cloud.cloudcontrolspartner.v1.Workload\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=organizations/*/locations/*/customers/*/workloads/*}\x12\xd9\x01\n\rListWorkloads\x12:.google.cloud.cloudcontrolspartner.v1.ListWorkloadsRequest\x1a;.google.cloud.cloudcontrolspartner.v1.ListWorkloadsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=organizations/*/locations/*/customers/*}/workloads\x12\xba\x01\n\x0bGetCustomer\x12\x38.google.cloud.cloudcontrolspartner.v1.GetCustomerRequest\x1a..google.cloud.cloudcontrolspartner.v1.Customer\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=organizations/*/locations/*/customers/*}\x12\xcd\x01\n\rListCustomers\x12:.google.cloud.cloudcontrolspartner.v1.ListCustomersRequest\x1a;.google.cloud.cloudcontrolspartner.v1.ListCustomersResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=organizations/*/locations/*}/customers\x12\xe7\x01\n\x11GetEkmConnections\x12>.google.cloud.cloudcontrolspartner.v1.GetEkmConnectionsRequest\x1a\x34.google.cloud.cloudcontrolspartner.v1.EkmConnections\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O\x12M/v1/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}\x12\xf7\x01\n\x15GetPartnerPermissions\x12\x42.google.cloud.cloudcontrolspartner.v1.GetPartnerPermissionsRequest\x1a\x38.google.cloud.cloudcontrolspartner.v1.PartnerPermissions\"`\xda\x41\x04name\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}\x12\x9c\x02\n\x1aListAccessApprovalRequests\x12G.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest\x1aH.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsResponse\"k\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02Y\x12W/v1/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests\x12\xb3\x01\n\nGetPartner\x12\x37.google.cloud.cloudcontrolspartner.v1.GetPartnerRequest\x1a-.google.cloud.cloudcontrolspartner.v1.Partner\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=organizations/*/locations/*/partner}\x12\xe1\x01\n\x0e\x43reateCustomer\x12;.google.cloud.cloudcontrolspartner.v1.CreateCustomerRequest\x1a..google.cloud.cloudcontrolspartner.v1.Customer\"b\xda\x41\x1bparent,customer,customer_id\x82\xd3\xe4\x93\x02>\"2/v1/{parent=organizations/*/locations/*}/customers:\x08\x63ustomer\x12\xe3\x01\n\x0eUpdateCustomer\x12;.google.cloud.cloudcontrolspartner.v1.UpdateCustomerRequest\x1a..google.cloud.cloudcontrolspartner.v1.Customer\"d\xda\x41\x14\x63ustomer,update_mask\x82\xd3\xe4\x93\x02G2;/v1/{customer.name=organizations/*/locations/*/customers/*}:\x08\x63ustomer\x12\xa8\x01\n\x0e\x44\x65leteCustomer\x12;.google.cloud.cloudcontrolspartner.v1.DeleteCustomerRequest\x1a\x16.google.protobuf.Empty\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1/{name=organizations/*/locations/*/customers/*}\x1aW\xca\x41#cloudcontrolspartner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfd\x02\n(com.google.cloud.cloudcontrolspartner.v1B\tCoreProtoP\x01Z\\cloud.google.com/go/cloudcontrolspartner/apiv1/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02$Google.Cloud.CloudControlsPartner.V1\xca\x02$Google\\Cloud\\CloudControlsPartner\\V1\xea\x02\'Google::Cloud::CloudControlsPartner::V1\xea\x41m\n8cloudcontrolspartner.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}b\x06proto3"
|
21
22
|
|
22
23
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
24
|
|
@@ -50,6 +50,12 @@ module Google
|
|
50
50
|
rpc :ListAccessApprovalRequests, ::Google::Cloud::CloudControlsPartner::V1::ListAccessApprovalRequestsRequest, ::Google::Cloud::CloudControlsPartner::V1::ListAccessApprovalRequestsResponse
|
51
51
|
# Get details of a Partner.
|
52
52
|
rpc :GetPartner, ::Google::Cloud::CloudControlsPartner::V1::GetPartnerRequest, ::Google::Cloud::CloudControlsPartner::V1::Partner
|
53
|
+
# Creates a new customer.
|
54
|
+
rpc :CreateCustomer, ::Google::Cloud::CloudControlsPartner::V1::CreateCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1::Customer
|
55
|
+
# Update details of a single customer
|
56
|
+
rpc :UpdateCustomer, ::Google::Cloud::CloudControlsPartner::V1::UpdateCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1::Customer
|
57
|
+
# Delete details of a single customer
|
58
|
+
rpc :DeleteCustomer, ::Google::Cloud::CloudControlsPartner::V1::DeleteCustomerRequest, ::Google::Protobuf::Empty
|
53
59
|
end
|
54
60
|
|
55
61
|
Stub = Service.rpc_stub_class
|
@@ -7,10 +7,11 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
require 'google/cloud/cloudcontrolspartner/v1/completion_state_pb'
|
10
|
+
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n4google/cloud/cloudcontrolspartner/v1/customers.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a;google/cloud/cloudcontrolspartner/v1/completion_state.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
14
|
+
descriptor_data = "\n4google/cloud/cloudcontrolspartner/v1/customers.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a;google/cloud/cloudcontrolspartner/v1/completion_state.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xee\x02\n\x08\x43ustomer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x19\x63ustomer_onboarding_state\x18\x03 \x01(\x0b\x32=.google.cloud.cloudcontrolspartner.v1.CustomerOnboardingStateB\x03\xe0\x41\x03\x12\x19\n\x0cis_onboarded\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12 \n\x13organization_domain\x18\x05 \x01(\tB\x03\xe0\x41\x03:\x8f\x01\xea\x41\x8b\x01\n,cloudcontrolspartner.googleapis.com/Customer\x12\x46organizations/{organization}/locations/{location}/customers/{customer}*\tcustomers2\x08\x63ustomer\"\xaf\x01\n\x14ListCustomersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,cloudcontrolspartner.googleapis.com/Customer\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n\x15ListCustomersResponse\x12\x41\n\tcustomers\x18\x01 \x03(\x0b\x32..google.cloud.cloudcontrolspartner.v1.Customer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xbe\x01\n\x15\x43reateCustomerRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,cloudcontrolspartner.googleapis.com/Customer\x12\x45\n\x08\x63ustomer\x18\x02 \x01(\x0b\x32..google.cloud.cloudcontrolspartner.v1.CustomerB\x03\xe0\x41\x02\x12\x18\n\x0b\x63ustomer_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"X\n\x12GetCustomerRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,cloudcontrolspartner.googleapis.com/Customer\"q\n\x17\x43ustomerOnboardingState\x12V\n\x10onboarding_steps\x18\x01 \x03(\x0b\x32<.google.cloud.cloudcontrolspartner.v1.CustomerOnboardingStep\"\xf0\x02\n\x16\x43ustomerOnboardingStep\x12O\n\x04step\x18\x01 \x01(\x0e\x32\x41.google.cloud.cloudcontrolspartner.v1.CustomerOnboardingStep.Step\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x63ompletion_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x10\x63ompletion_state\x18\x04 \x01(\x0e\x32\x35.google.cloud.cloudcontrolspartner.v1.CompletionStateB\x03\xe0\x41\x03\"J\n\x04Step\x12\x14\n\x10STEP_UNSPECIFIED\x10\x00\x12\x12\n\x0eKAJ_ENROLLMENT\x10\x01\x12\x18\n\x14\x43USTOMER_ENVIRONMENT\x10\x02\"\x94\x01\n\x15UpdateCustomerRequest\x12\x45\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32..google.cloud.cloudcontrolspartner.v1.CustomerB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"[\n\x15\x44\x65leteCustomerRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,cloudcontrolspartner.googleapis.com/CustomerB\x92\x02\n(com.google.cloud.cloudcontrolspartner.v1B\x0e\x43ustomersProtoP\x01Z\\cloud.google.com/go/cloudcontrolspartner/apiv1/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02$Google.Cloud.CloudControlsPartner.V1\xca\x02$Google\\Cloud\\CloudControlsPartner\\V1\xea\x02\'Google::Cloud::CloudControlsPartner::V1b\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -26,6 +27,7 @@ rescue TypeError
|
|
26
27
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
28
|
imports = [
|
28
29
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
29
31
|
]
|
30
32
|
imports.each do |type_name, expected_filename|
|
31
33
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -44,10 +46,13 @@ module Google
|
|
44
46
|
Customer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.Customer").msgclass
|
45
47
|
ListCustomersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.ListCustomersRequest").msgclass
|
46
48
|
ListCustomersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.ListCustomersResponse").msgclass
|
49
|
+
CreateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.CreateCustomerRequest").msgclass
|
47
50
|
GetCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.GetCustomerRequest").msgclass
|
48
51
|
CustomerOnboardingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.CustomerOnboardingState").msgclass
|
49
52
|
CustomerOnboardingStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.CustomerOnboardingStep").msgclass
|
50
53
|
CustomerOnboardingStep::Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.CustomerOnboardingStep.Step").enummodule
|
54
|
+
UpdateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.UpdateCustomerRequest").msgclass
|
55
|
+
DeleteCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.DeleteCustomerRequest").msgclass
|
51
56
|
end
|
52
57
|
end
|
53
58
|
end
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n3google/cloud/cloudcontrolspartner/v1/partners.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x03\n\x07Partner\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x37\n\x04skus\x18\x03 \x03(\x0b\x32).google.cloud.cloudcontrolspartner.v1.Sku\x12H\n\rekm_solutions\x18\x04 \x03(\x0b\x32\x31.google.cloud.cloudcontrolspartner.v1.EkmMetadata\x12\x1e\n\x16operated_cloud_regions\x18\x05 \x03(\t\x12\x1a\n\x12partner_project_id\x18\x07 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:t\xea\x41q\n+cloudcontrolspartner.googleapis.com/Partner\x12\x39organizations/{organization}/locations/{location}/partner2\x07partner\"V\n\x11GetPartnerRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudcontrolspartner.googleapis.com/Partner\"\'\n\x03Sku\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\
|
12
|
+
descriptor_data = "\n3google/cloud/cloudcontrolspartner/v1/partners.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x03\n\x07Partner\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x37\n\x04skus\x18\x03 \x03(\x0b\x32).google.cloud.cloudcontrolspartner.v1.Sku\x12H\n\rekm_solutions\x18\x04 \x03(\x0b\x32\x31.google.cloud.cloudcontrolspartner.v1.EkmMetadata\x12\x1e\n\x16operated_cloud_regions\x18\x05 \x03(\t\x12\x1a\n\x12partner_project_id\x18\x07 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:t\xea\x41q\n+cloudcontrolspartner.googleapis.com/Partner\x12\x39organizations/{organization}/locations/{location}/partner2\x07partner\"V\n\x11GetPartnerRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudcontrolspartner.googleapis.com/Partner\"\'\n\x03Sku\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xe0\x01\n\x0b\x45kmMetadata\x12S\n\x0c\x65km_solution\x18\x01 \x01(\x0e\x32=.google.cloud.cloudcontrolspartner.v1.EkmMetadata.EkmSolution\x12\x18\n\x10\x65km_endpoint_uri\x18\x02 \x01(\t\"b\n\x0b\x45kmSolution\x12\x1c\n\x18\x45KM_SOLUTION_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46ORTANIX\x10\x01\x12\x0b\n\x07\x46UTUREX\x10\x02\x12\n\n\x06THALES\x10\x03\x12\x0e\n\x06VIRTRU\x10\x04\x1a\x02\x08\x01\x42\x91\x02\n(com.google.cloud.cloudcontrolspartner.v1B\rPartnersProtoP\x01Z\\cloud.google.com/go/cloudcontrolspartner/apiv1/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02$Google.Cloud.CloudControlsPartner.V1\xca\x02$Google\\Cloud\\CloudControlsPartner\\V1\xea\x02\'Google::Cloud::CloudControlsPartner::V1b\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# @return [::Boolean]
|
42
42
|
# Output only. Identifies whether the user has requested cancellation
|
43
43
|
# of the operation. Operations that have been cancelled successfully
|
44
|
-
# have [Operation.error][] value with a
|
44
|
+
# have [Operation.error][google.longrunning.Operation.error] value with a
|
45
45
|
# [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
|
46
46
|
# `Code.CANCELLED`.
|
47
47
|
# @!attribute [r] api_version
|
@@ -35,6 +35,10 @@ module Google
|
|
35
35
|
# @!attribute [r] is_onboarded
|
36
36
|
# @return [::Boolean]
|
37
37
|
# Output only. Indicates whether a customer is fully onboarded
|
38
|
+
# @!attribute [r] organization_domain
|
39
|
+
# @return [::String]
|
40
|
+
# Output only. The customer organization domain, extracted from
|
41
|
+
# CRM Organization’s display_name field. e.g. "google.com"
|
38
42
|
class Customer
|
39
43
|
include ::Google::Protobuf::MessageExts
|
40
44
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -80,6 +84,24 @@ module Google
|
|
80
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
81
85
|
end
|
82
86
|
|
87
|
+
# Request to create a customer
|
88
|
+
# @!attribute [rw] parent
|
89
|
+
# @return [::String]
|
90
|
+
# Required. Parent resource
|
91
|
+
# Format: `organizations/{organization}/locations/{location}`
|
92
|
+
# @!attribute [rw] customer
|
93
|
+
# @return [::Google::Cloud::CloudControlsPartner::V1::Customer]
|
94
|
+
# Required. The customer to create.
|
95
|
+
# @!attribute [rw] customer_id
|
96
|
+
# @return [::String]
|
97
|
+
# Required. The customer id to use for the customer, which will become the
|
98
|
+
# final component of the customer's resource name. The specified value must
|
99
|
+
# be a valid Google cloud organization id.
|
100
|
+
class CreateCustomerRequest
|
101
|
+
include ::Google::Protobuf::MessageExts
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
end
|
104
|
+
|
83
105
|
# Message for getting a customer
|
84
106
|
# @!attribute [rw] name
|
85
107
|
# @return [::String]
|
@@ -128,6 +150,30 @@ module Google
|
|
128
150
|
CUSTOMER_ENVIRONMENT = 2
|
129
151
|
end
|
130
152
|
end
|
153
|
+
|
154
|
+
# Request to update a customer
|
155
|
+
# @!attribute [rw] customer
|
156
|
+
# @return [::Google::Cloud::CloudControlsPartner::V1::Customer]
|
157
|
+
# Required. The customer to update
|
158
|
+
# Format:
|
159
|
+
# `organizations/{organization}/locations/{location}/customers/{customer}`
|
160
|
+
# @!attribute [rw] update_mask
|
161
|
+
# @return [::Google::Protobuf::FieldMask]
|
162
|
+
# Optional. The list of fields to update
|
163
|
+
class UpdateCustomerRequest
|
164
|
+
include ::Google::Protobuf::MessageExts
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
166
|
+
end
|
167
|
+
|
168
|
+
# Message for deleting customer
|
169
|
+
# @!attribute [rw] name
|
170
|
+
# @return [::String]
|
171
|
+
# Required. name of the resource to be deleted
|
172
|
+
# format: name=organizations/*/locations/*/customers/*
|
173
|
+
class DeleteCustomerRequest
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
end
|
131
177
|
end
|
132
178
|
end
|
133
179
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
23
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
24
|
+
# or the response type of an API method. For instance:
|
25
|
+
#
|
26
|
+
# service Foo {
|
27
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
|
+
# }
|
29
|
+
class Empty
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|