google-cloud-cloud_controls_partner-v1beta 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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::V1beta::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::V1beta::Customer]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Cloud::CloudControlsPartner::V1beta::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::V1beta::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::V1beta::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::V1beta::Customer]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Cloud::CloudControlsPartner::V1beta::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::V1beta::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::V1beta::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::V1beta::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: "/v1beta/{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::V1beta::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: "/v1beta/{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::V1beta::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: "/v1beta/{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
@@ -436,6 +436,13 @@ module Google
436
436
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
437
437
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
438
438
  # * (`nil`) indicating no credentials
439
+ #
440
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
441
+ # external source for authentication to Google Cloud, you must validate it before
442
+ # providing it to a Google API client library. Providing an unvalidated credential
443
+ # configuration to Google APIs can compromise the security of your systems and data.
444
+ # For more information, refer to [Validate credential configurations from external
445
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
439
446
  # @return [::Object]
440
447
  # @!attribute [rw] scope
441
448
  # The OAuth scopes
@@ -411,6 +411,13 @@ module Google
411
411
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
412
412
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
413
413
  # * (`nil`) indicating no credentials
414
+ #
415
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
416
+ # external source for authentication to Google Cloud, you must validate it before
417
+ # providing it to a Google API client library. Providing an unvalidated credential
418
+ # configuration to Google APIs can compromise the security of your systems and data.
419
+ # For more information, refer to [Validate credential configurations from external
420
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
414
421
  # @return [::Object]
415
422
  # @!attribute [rw] scope
416
423
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudControlsPartner
23
23
  module V1beta
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -14,10 +14,11 @@ require 'google/cloud/cloudcontrolspartner/v1beta/customers_pb'
14
14
  require 'google/cloud/cloudcontrolspartner/v1beta/ekm_connections_pb'
15
15
  require 'google/cloud/cloudcontrolspartner/v1beta/partner_permissions_pb'
16
16
  require 'google/cloud/cloudcontrolspartner/v1beta/partners_pb'
17
+ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/timestamp_pb'
18
19
 
19
20
 
20
- descriptor_data = "\n3google/cloud/cloudcontrolspartner/v1beta/core.proto\x12(google.cloud.cloudcontrolspartner.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aGgoogle/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto\x1a\x41google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto\x1a\x38google/cloud/cloudcontrolspartner/v1beta/customers.proto\x1a>google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto\x1a\x42google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto\x1a\x37google/cloud/cloudcontrolspartner/v1beta/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\xbe\x0f\n\x18\x43loudControlsPartnerCore\x12\xd2\x01\n\x0bGetWorkload\x12<.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest\x1a\x32.google.cloud.cloudcontrolspartner.v1beta.Workload\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}\x12\xe5\x01\n\rListWorkloads\x12>.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest\x1a?.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads\x12\xc6\x01\n\x0bGetCustomer\x12<.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest\x1a\x32.google.cloud.cloudcontrolspartner.v1beta.Customer\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta/{name=organizations/*/locations/*/customers/*}\x12\xd9\x01\n\rListCustomers\x12>.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest\x1a?.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta/{parent=organizations/*/locations/*}/customers\x12\xf3\x01\n\x11GetEkmConnections\x12\x42.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest\x1a\x38.google.cloud.cloudcontrolspartner.v1beta.EkmConnections\"`\xda\x41\x04name\x82\xd3\xe4\x93\x02S\x12Q/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}\x12\x83\x02\n\x15GetPartnerPermissions\x12\x46.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest\x1a<.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions\"d\xda\x41\x04name\x82\xd3\xe4\x93\x02W\x12U/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}\x12\xa8\x02\n\x1aListAccessApprovalRequests\x12K.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest\x1aL.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse\"o\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02]\x12[/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests\x12\xbf\x01\n\nGetPartner\x12;.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest\x1a\x31.google.cloud.cloudcontrolspartner.v1beta.Partner\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{name=organizations/*/locations/*/partner}\x1aW\xca\x41#cloudcontrolspartner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x91\x03\n,com.google.cloud.cloudcontrolspartner.v1betaB\tCoreProtoP\x01Z`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02(Google.Cloud.CloudControlsPartner.V1Beta\xca\x02(Google\\Cloud\\CloudControlsPartner\\V1beta\xea\x02+Google::Cloud::CloudControlsPartner::V1beta\xea\x41m\n8cloudcontrolspartner.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}b\x06proto3"
21
+ descriptor_data = "\n3google/cloud/cloudcontrolspartner/v1beta/core.proto\x12(google.cloud.cloudcontrolspartner.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aGgoogle/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto\x1a\x41google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto\x1a\x38google/cloud/cloudcontrolspartner/v1beta/customers.proto\x1a>google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto\x1a\x42google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto\x1a\x37google/cloud/cloudcontrolspartner/v1beta/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\x14\n\x18\x43loudControlsPartnerCore\x12\xd2\x01\n\x0bGetWorkload\x12<.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest\x1a\x32.google.cloud.cloudcontrolspartner.v1beta.Workload\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}\x12\xe5\x01\n\rListWorkloads\x12>.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest\x1a?.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads\x12\xc6\x01\n\x0bGetCustomer\x12<.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest\x1a\x32.google.cloud.cloudcontrolspartner.v1beta.Customer\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta/{name=organizations/*/locations/*/customers/*}\x12\xd9\x01\n\rListCustomers\x12>.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest\x1a?.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta/{parent=organizations/*/locations/*}/customers\x12\xf3\x01\n\x11GetEkmConnections\x12\x42.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest\x1a\x38.google.cloud.cloudcontrolspartner.v1beta.EkmConnections\"`\xda\x41\x04name\x82\xd3\xe4\x93\x02S\x12Q/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}\x12\x83\x02\n\x15GetPartnerPermissions\x12\x46.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest\x1a<.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions\"d\xda\x41\x04name\x82\xd3\xe4\x93\x02W\x12U/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}\x12\xa8\x02\n\x1aListAccessApprovalRequests\x12K.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest\x1aL.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse\"o\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02]\x12[/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests\x12\xbf\x01\n\nGetPartner\x12;.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest\x1a\x31.google.cloud.cloudcontrolspartner.v1beta.Partner\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{name=organizations/*/locations/*/partner}\x12\xed\x01\n\x0e\x43reateCustomer\x12?.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest\x1a\x32.google.cloud.cloudcontrolspartner.v1beta.Customer\"f\xda\x41\x1bparent,customer,customer_id\x82\xd3\xe4\x93\x02\x42\"6/v1beta/{parent=organizations/*/locations/*}/customers:\x08\x63ustomer\x12\xef\x01\n\x0eUpdateCustomer\x12?.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest\x1a\x32.google.cloud.cloudcontrolspartner.v1beta.Customer\"h\xda\x41\x14\x63ustomer,update_mask\x82\xd3\xe4\x93\x02K2?/v1beta/{customer.name=organizations/*/locations/*/customers/*}:\x08\x63ustomer\x12\xb0\x01\n\x0e\x44\x65leteCustomer\x12?.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest\x1a\x16.google.protobuf.Empty\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1beta/{name=organizations/*/locations/*/customers/*}\x1aW\xca\x41#cloudcontrolspartner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x91\x03\n,com.google.cloud.cloudcontrolspartner.v1betaB\tCoreProtoP\x01Z`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02(Google.Cloud.CloudControlsPartner.V1Beta\xca\x02(Google\\Cloud\\CloudControlsPartner\\V1beta\xea\x02+Google::Cloud::CloudControlsPartner::V1beta\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::V1beta::ListAccessApprovalRequestsRequest, ::Google::Cloud::CloudControlsPartner::V1beta::ListAccessApprovalRequestsResponse
51
51
  # Get details of a Partner.
52
52
  rpc :GetPartner, ::Google::Cloud::CloudControlsPartner::V1beta::GetPartnerRequest, ::Google::Cloud::CloudControlsPartner::V1beta::Partner
53
+ # Creates a new customer.
54
+ rpc :CreateCustomer, ::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1beta::Customer
55
+ # Update details of a single customer
56
+ rpc :UpdateCustomer, ::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1beta::Customer
57
+ # Delete details of a single customer
58
+ rpc :DeleteCustomer, ::Google::Cloud::CloudControlsPartner::V1beta::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/v1beta/completion_state_pb'
10
+ require 'google/protobuf/field_mask_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
13
 
13
- descriptor_data = "\n8google/cloud/cloudcontrolspartner/v1beta/customers.proto\x12(google.cloud.cloudcontrolspartner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a?google/cloud/cloudcontrolspartner/v1beta/completion_state.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\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\x12i\n\x19\x63ustomer_onboarding_state\x18\x03 \x01(\x0b\x32\x41.google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStateB\x03\xe0\x41\x03\x12\x19\n\x0cis_onboarded\x18\x04 \x01(\x08\x42\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\"\x8c\x01\n\x15ListCustomersResponse\x12\x45\n\tcustomers\x18\x01 \x03(\x0b\x32\x32.google.cloud.cloudcontrolspartner.v1beta.Customer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x12GetCustomerRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,cloudcontrolspartner.googleapis.com/Customer\"u\n\x17\x43ustomerOnboardingState\x12Z\n\x10onboarding_steps\x18\x01 \x03(\x0b\x32@.google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep\"\xf8\x02\n\x16\x43ustomerOnboardingStep\x12S\n\x04step\x18\x01 \x01(\x0e\x32\x45.google.cloud.cloudcontrolspartner.v1beta.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\x12X\n\x10\x63ompletion_state\x18\x04 \x01(\x0e\x32\x39.google.cloud.cloudcontrolspartner.v1beta.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\x42\xa6\x02\n,com.google.cloud.cloudcontrolspartner.v1betaB\x0e\x43ustomersProtoP\x01Z`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02(Google.Cloud.CloudControlsPartner.V1Beta\xca\x02(Google\\Cloud\\CloudControlsPartner\\V1beta\xea\x02+Google::Cloud::CloudControlsPartner::V1betab\x06proto3"
14
+ descriptor_data = "\n8google/cloud/cloudcontrolspartner/v1beta/customers.proto\x12(google.cloud.cloudcontrolspartner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a?google/cloud/cloudcontrolspartner/v1beta/completion_state.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf2\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\x12i\n\x19\x63ustomer_onboarding_state\x18\x03 \x01(\x0b\x32\x41.google.cloud.cloudcontrolspartner.v1beta.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\"\x8c\x01\n\x15ListCustomersResponse\x12\x45\n\tcustomers\x18\x01 \x03(\x0b\x32\x32.google.cloud.cloudcontrolspartner.v1beta.Customer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xc2\x01\n\x15\x43reateCustomerRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,cloudcontrolspartner.googleapis.com/Customer\x12I\n\x08\x63ustomer\x18\x02 \x01(\x0b\x32\x32.google.cloud.cloudcontrolspartner.v1beta.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\"u\n\x17\x43ustomerOnboardingState\x12Z\n\x10onboarding_steps\x18\x01 \x03(\x0b\x32@.google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep\"\xf8\x02\n\x16\x43ustomerOnboardingStep\x12S\n\x04step\x18\x01 \x01(\x0e\x32\x45.google.cloud.cloudcontrolspartner.v1beta.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\x12X\n\x10\x63ompletion_state\x18\x04 \x01(\x0e\x32\x39.google.cloud.cloudcontrolspartner.v1beta.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\"\x98\x01\n\x15UpdateCustomerRequest\x12I\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32\x32.google.cloud.cloudcontrolspartner.v1beta.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\xa6\x02\n,com.google.cloud.cloudcontrolspartner.v1betaB\x0e\x43ustomersProtoP\x01Z`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02(Google.Cloud.CloudControlsPartner.V1Beta\xca\x02(Google\\Cloud\\CloudControlsPartner\\V1beta\xea\x02+Google::Cloud::CloudControlsPartner::V1betab\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.v1beta.Customer").msgclass
45
47
  ListCustomersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest").msgclass
46
48
  ListCustomersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse").msgclass
49
+ CreateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest").msgclass
47
50
  GetCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest").msgclass
48
51
  CustomerOnboardingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState").msgclass
49
52
  CustomerOnboardingStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep").msgclass
50
53
  CustomerOnboardingStep::Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step").enummodule
54
+ UpdateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest").msgclass
55
+ DeleteCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1beta.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 = "\n7google/cloud/cloudcontrolspartner/v1beta/partners.proto\x12(google.cloud.cloudcontrolspartner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc5\x03\n\x07Partner\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12;\n\x04skus\x18\x03 \x03(\x0b\x32-.google.cloud.cloudcontrolspartner.v1beta.Sku\x12L\n\rekm_solutions\x18\x04 \x03(\x0b\x32\x35.google.cloud.cloudcontrolspartner.v1beta.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\x12W\n\x0c\x65km_solution\x18\x01 \x01(\x0e\x32\x41.google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution\x12\x18\n\x10\x65km_endpoint_uri\x18\x02 \x01(\t\"^\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\n\n\x06VIRTRU\x10\x04\x42\xa5\x02\n,com.google.cloud.cloudcontrolspartner.v1betaB\rPartnersProtoP\x01Z`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02(Google.Cloud.CloudControlsPartner.V1Beta\xca\x02(Google\\Cloud\\CloudControlsPartner\\V1beta\xea\x02+Google::Cloud::CloudControlsPartner::V1betab\x06proto3"
12
+ descriptor_data = "\n7google/cloud/cloudcontrolspartner/v1beta/partners.proto\x12(google.cloud.cloudcontrolspartner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc5\x03\n\x07Partner\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12;\n\x04skus\x18\x03 \x03(\x0b\x32-.google.cloud.cloudcontrolspartner.v1beta.Sku\x12L\n\rekm_solutions\x18\x04 \x03(\x0b\x32\x35.google.cloud.cloudcontrolspartner.v1beta.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\"\xe4\x01\n\x0b\x45kmMetadata\x12W\n\x0c\x65km_solution\x18\x01 \x01(\x0e\x32\x41.google.cloud.cloudcontrolspartner.v1beta.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\xa5\x02\n,com.google.cloud.cloudcontrolspartner.v1betaB\rPartnersProtoP\x01Z`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02(Google.Cloud.CloudControlsPartner.V1Beta\xca\x02(Google\\Cloud\\CloudControlsPartner\\V1beta\xea\x02+Google::Cloud::CloudControlsPartner::V1betab\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::V1beta::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::V1beta::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
@@ -107,7 +107,7 @@ module Google
107
107
  # EKM Partner Thales
108
108
  THALES = 3
109
109
 
110
- # EKM Partner Virtu
110
+ # This enum value is never used.
111
111
  VIRTRU = 4
112
112
  end
113
113
  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