Skip to content

Commit

Permalink
feat: [cloudcontrolspartner] A new method CreateCustomer is added t…
Browse files Browse the repository at this point in the history
…o service `CloudControlsPartnerCore` (#5980)

* feat: A new method `CreateCustomer` is added to service `CloudControlsPartnerCore`
feat: A new method `UpdateCustomer` is added to service `CloudControlsPartnerCore`
feat: A new method `DeleteCustomer` is added to service `CloudControlsPartnerCore`
feat: A new field `organization_domain` is added to message `.google.cloud.cloudcontrolspartner.v1beta.Customer`
feat: A new message `CreateCustomerRequest` is added
feat: A new message `UpdateCustomerRequest` is added
feat: A new message `DeleteCustomerRequest` is added
docs: A comment for field `requested_cancellation` in message `.google.cloud.cloudcontrolspartner.v1beta.OperationMetadata` is changed
docs: A comment for enum value `VIRTRU` in enum `EkmSolution` is changed

PiperOrigin-RevId: 719291894

Source-Link: googleapis/googleapis@4d82148

Source-Link: googleapis/googleapis-gen@41b559f
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNsb3VkY29udHJvbHNwYXJ0bmVyLy5Pd2xCb3QueWFtbCIsImgiOiI0MWI1NTlmZDhlODc5OWZlY2I5N2QyZjAwNTYwYTQwOGU5NzdjMzMyIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 28, 2025
1 parent b65c794 commit e5e13cb
Show file tree
Hide file tree
Showing 16 changed files with 8,433 additions and 5,275 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-cloudcontrolspartner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
| Cloud_controls_partner_core.list_workloads | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1/cloud_controls_partner_core.list_workloads.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1/cloud_controls_partner_core.list_workloads.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_monitoring.get_violation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1/cloud_controls_partner_monitoring.get_violation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1/cloud_controls_partner_monitoring.get_violation.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_monitoring.list_violations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1/cloud_controls_partner_monitoring.list_violations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1/cloud_controls_partner_monitoring.list_violations.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.create_customer | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.create_customer.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.create_customer.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.delete_customer | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.delete_customer.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.delete_customer.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.get_customer | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.get_customer.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.get_customer.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.get_ekm_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.get_ekm_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.get_ekm_connections.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.get_partner | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.get_partner.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.get_partner.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
Expand All @@ -80,6 +82,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
| Cloud_controls_partner_core.list_access_approval_requests | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.list_access_approval_requests.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.list_access_approval_requests.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.list_customers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.list_customers.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.list_customers.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.list_workloads | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.list_workloads.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.list_workloads.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_core.update_customer | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.update_customer.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_core.update_customer.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_monitoring.get_violation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_monitoring.get_violation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_monitoring.get_violation.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Cloud_controls_partner_monitoring.list_violations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_monitoring.list_violations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/cloud_controls_partner_monitoring.list_violations.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-cloudcontrolspartner/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-cloudcontrolspartner/samples/quickstart.js,packages/google-cloud-cloudcontrolspartner/samples/README.md) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import "google/cloud/cloudcontrolspartner/v1beta/customers.proto";
import "google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto";
import "google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto";
import "google/cloud/cloudcontrolspartner/v1beta/partners.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.CloudControlsPartner.V1Beta";
Expand Down Expand Up @@ -113,6 +114,32 @@ service CloudControlsPartnerCore {
};
option (google.api.method_signature) = "name";
}

// Creates a new customer.
rpc CreateCustomer(CreateCustomerRequest) returns (Customer) {
option (google.api.http) = {
post: "/v1beta/{parent=organizations/*/locations/*}/customers"
body: "customer"
};
option (google.api.method_signature) = "parent,customer,customer_id";
}

// Update details of a single customer
rpc UpdateCustomer(UpdateCustomerRequest) returns (Customer) {
option (google.api.http) = {
patch: "/v1beta/{customer.name=organizations/*/locations/*/customers/*}"
body: "customer"
};
option (google.api.method_signature) = "customer,update_mask";
}

// Delete details of a single customer
rpc DeleteCustomer(DeleteCustomerRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1beta/{name=organizations/*/locations/*/customers/*}"
};
option (google.api.method_signature) = "name";
}
}

// Represents the metadata of the long-running operation.
Expand All @@ -136,7 +163,7 @@ message OperationMetadata {

// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have been cancelled successfully
// have [Operation.error][] value with a
// have [Operation.error][google.longrunning.Operation.error] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package google.cloud.cloudcontrolspartner.v1beta;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/cloudcontrolspartner/v1beta/completion_state.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.CloudControlsPartner.V1Beta";
Expand Down Expand Up @@ -51,6 +52,10 @@ message Customer {

// Output only. Indicates whether a customer is fully onboarded
bool is_onboarded = 4 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The customer organization domain, extracted from
// CRM Organization’s display_name field. e.g. "google.com"
string organization_domain = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Request to list customers
Expand Down Expand Up @@ -92,6 +97,26 @@ message ListCustomersResponse {
repeated string unreachable = 3;
}

// Request to create a customer
message CreateCustomerRequest {
// Required. Parent resource
// Format: `organizations/{organization}/locations/{location}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "cloudcontrolspartner.googleapis.com/Customer"
}
];

// Required. The customer to create.
Customer customer = 2 [(google.api.field_behavior) = REQUIRED];

// Required. The customer id to use for the customer, which will become the
// final component of the customer's resource name. The specified value must
// be a valid Google cloud organization id.
string customer_id = 3 [(google.api.field_behavior) = REQUIRED];
}

// Message for getting a customer
message GetCustomerRequest {
// Required. Format:
Expand Down Expand Up @@ -137,3 +162,27 @@ message CustomerOnboardingStep {
CompletionState completion_state = 4
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// Request to update a customer
message UpdateCustomerRequest {
// Required. The customer to update
// Format:
// `organizations/{organization}/locations/{location}/customers/{customer}`
Customer customer = 1 [(google.api.field_behavior) = REQUIRED];

// Optional. The list of fields to update
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = OPTIONAL];
}

// Message for deleting customer
message DeleteCustomerRequest {
// Required. name of the resource to be deleted
// format: name=organizations/*/locations/*/customers/*
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "cloudcontrolspartner.googleapis.com/Customer"
}
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ message EkmMetadata {
// EKM Partner Thales
THALES = 3;

// EKM Partner Virtu
VIRTRU = 4;
// This enum value is never used.
VIRTRU = 4 [deprecated = true];
}

// The Cloud EKM partner.
Expand Down
Loading

0 comments on commit e5e13cb

Please sign in to comment.