Skip to content

Commit ed2491e

Browse files
Google APIscopybara-github
authored andcommitted
docs: Mark the accessApprovalRequests.list method as deprecated
PiperOrigin-RevId: 645007312
1 parent 6f90365 commit ed2491e

10 files changed

Lines changed: 37 additions & 26 deletions

google/cloud/cloudcontrolspartner/v1beta/BUILD.bazel

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# buildifier: disable=load-on-top
13+
1214
# This is an API workspace, having public visibility by default makes perfect sense.
1315
package(default_visibility = ["//visibility:public"])
1416

1517
##############################################################################
1618
# Common
1719
##############################################################################
18-
load("@rules_proto//proto:defs.bzl", "proto_library")
20+
# buildifier: disable=same-origin-load
1921
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
2023

2124
proto_library(
2225
name = "cloudcontrolspartner_proto",
@@ -53,6 +56,7 @@ proto_library_with_info(
5356
##############################################################################
5457
# Java
5558
##############################################################################
59+
# buildifier: disable=same-origin-load
5660
load(
5761
"@com_google_googleapis_imports//:imports.bzl",
5862
"java_gapic_assembly_gradle_pkg",
@@ -117,6 +121,7 @@ java_gapic_assembly_gradle_pkg(
117121
##############################################################################
118122
# Go
119123
##############################################################################
124+
# buildifier: disable=same-origin-load
120125
load(
121126
"@com_google_googleapis_imports//:imports.bzl",
122127
"go_gapic_assembly_pkg",
@@ -165,6 +170,7 @@ go_gapic_assembly_pkg(
165170
##############################################################################
166171
# Python
167172
##############################################################################
173+
# buildifier: disable=same-origin-load
168174
load(
169175
"@com_google_googleapis_imports//:imports.bzl",
170176
"py_gapic_assembly_pkg",
@@ -204,6 +210,7 @@ py_gapic_assembly_pkg(
204210
##############################################################################
205211
# PHP
206212
##############################################################################
213+
# buildifier: disable=same-origin-load
207214
load(
208215
"@com_google_googleapis_imports//:imports.bzl",
209216
"php_gapic_assembly_pkg",
@@ -241,6 +248,7 @@ php_gapic_assembly_pkg(
241248
##############################################################################
242249
# Node.js
243250
##############################################################################
251+
# buildifier: disable=same-origin-load
244252
load(
245253
"@com_google_googleapis_imports//:imports.bzl",
246254
"nodejs_gapic_assembly_pkg",
@@ -271,6 +279,7 @@ nodejs_gapic_assembly_pkg(
271279
##############################################################################
272280
# Ruby
273281
##############################################################################
282+
# buildifier: disable=same-origin-load
274283
load(
275284
"@com_google_googleapis_imports//:imports.bzl",
276285
"ruby_cloud_gapic_library",
@@ -317,6 +326,7 @@ ruby_gapic_assembly_pkg(
317326
##############################################################################
318327
# C#
319328
##############################################################################
329+
# buildifier: disable=same-origin-load
320330
load(
321331
"@com_google_googleapis_imports//:imports.bzl",
322332
"csharp_gapic_assembly_pkg",
@@ -327,6 +337,7 @@ load(
327337

328338
csharp_proto_library(
329339
name = "cloudcontrolspartner_csharp_proto",
340+
extra_opts = [],
330341
deps = [":cloudcontrolspartner_proto"],
331342
)
332343

@@ -363,6 +374,7 @@ csharp_gapic_assembly_pkg(
363374
##############################################################################
364375
# C++
365376
##############################################################################
377+
# buildifier: disable=same-origin-load
366378
load(
367379
"@com_google_googleapis_imports//:imports.bzl",
368380
"cc_grpc_library",

google/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ message AccessApprovalRequest {
3838
};
3939

4040
// Identifier. Format:
41-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
41+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
4242
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4343

4444
// The time at which approval was requested.
@@ -56,7 +56,7 @@ message AccessApprovalRequest {
5656
message ListAccessApprovalRequestsRequest {
5757
// Required. Parent resource
5858
// Format:
59-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
59+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
6060
string parent = 1 [
6161
(google.api.field_behavior) = REQUIRED,
6262
(google.api.resource_reference) = {

google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartner_v1beta.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ publishing:
4444
common:
4545
destinations:
4646
- PACKAGE_MANAGER
47-
cpp_settings:
48-
common:
49-
destinations:
50-
- PACKAGE_MANAGER
5147
php_settings:
5248
common:
5349
destinations:

google/cloud/cloudcontrolspartner/v1beta/core.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ service CloudControlsPartnerCore {
9595
option (google.api.method_signature) = "name";
9696
}
9797

98-
// Lists access requests associated with a workload
98+
// Deprecated: Only returns access approval requests directly associated with
99+
// an assured workload folder.
99100
rpc ListAccessApprovalRequests(ListAccessApprovalRequestsRequest)
100101
returns (ListAccessApprovalRequestsResponse) {
102+
option deprecated = true;
101103
option (google.api.http) = {
102104
get: "/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests"
103105
};

google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ message Workload {
6666
}
6767

6868
// Identifier. Format:
69-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
69+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
7070
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
7171

7272
// Output only. Folder id this workload is associated with
@@ -99,7 +99,7 @@ message Workload {
9999
message ListWorkloadsRequest {
100100
// Required. Parent resource
101101
// Format:
102-
// organizations/{organization}/locations/{location}/customers/{customer}
102+
// `organizations/{organization}/locations/{location}/customers/{customer}`
103103
string parent = 1 [
104104
(google.api.field_behavior) = REQUIRED,
105105
(google.api.resource_reference) = {
@@ -138,7 +138,7 @@ message ListWorkloadsResponse {
138138
// Message for getting a customer workload.
139139
message GetWorkloadRequest {
140140
// Required. Format:
141-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
141+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
142142
string name = 1 [
143143
(google.api.field_behavior) = REQUIRED,
144144
(google.api.resource_reference) = {

google/cloud/cloudcontrolspartner/v1beta/customers.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ message Customer {
3939
};
4040

4141
// Identifier. Format:
42-
// organizations/{organization}/locations/{location}/customers/{customer}
42+
// `organizations/{organization}/locations/{location}/customers/{customer}`
4343
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4444

4545
// The customer organization's display name. E.g. "google.com".
@@ -55,7 +55,7 @@ message Customer {
5555
// Request to list customers
5656
message ListCustomersRequest {
5757
// Required. Parent resource
58-
// Format: organizations/{organization}/locations/{location}
58+
// Format: `organizations/{organization}/locations/{location}`
5959
string parent = 1 [
6060
(google.api.field_behavior) = REQUIRED,
6161
(google.api.resource_reference) = {
@@ -94,7 +94,7 @@ message ListCustomersResponse {
9494
// Message for getting a customer
9595
message GetCustomerRequest {
9696
// Required. Format:
97-
// organizations/{organization}/locations/{location}/customers/{customer}
97+
// `organizations/{organization}/locations/{location}/customers/{customer}`
9898
string name = 1 [
9999
(google.api.field_behavior) = REQUIRED,
100100
(google.api.resource_reference) = {

google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ message EkmConnections {
3535
};
3636

3737
// Identifier. Format:
38-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
38+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
3939
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4040

4141
// The EKM connections associated with the workload
@@ -45,7 +45,7 @@ message EkmConnections {
4545
// Request for getting the EKM connections associated with a workload
4646
message GetEkmConnectionsRequest {
4747
// Required. Format:
48-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
48+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
4949
string name = 1 [
5050
(google.api.field_behavior) = REQUIRED,
5151
(google.api.resource_reference) = {

google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ message PartnerPermissions {
5252
}
5353

5454
// Identifier. Format:
55-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
55+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
5656
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
5757

5858
// The partner permissions granted for the workload
@@ -62,7 +62,7 @@ message PartnerPermissions {
6262
// Request for getting the partner permissions granted for a workload
6363
message GetPartnerPermissionsRequest {
6464
// Required. Name of the resource to get in the format:
65-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
65+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
6666
string name = 1 [
6767
(google.api.field_behavior) = REQUIRED,
6868
(google.api.resource_reference) = {

google/cloud/cloudcontrolspartner/v1beta/partners.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ message Partner {
3737
};
3838

3939
// Identifier. The resource name of the partner.
40-
// Format: organizations/{organization}/locations/{location}/partner
40+
// Format: `organizations/{organization}/locations/{location}/partner`
4141
// Example: "organizations/123456/locations/us-central1/partner"
4242
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4343

@@ -67,7 +67,8 @@ message Partner {
6767

6868
// Message for getting a Partner
6969
message GetPartnerRequest {
70-
// Required. Format: organizations/{organization}/locations/{location}/partner
70+
// Required. Format:
71+
// `organizations/{organization}/locations/{location}/partner`
7172
string name = 1 [
7273
(google.api.field_behavior) = REQUIRED,
7374
(google.api.resource_reference) = {

google/cloud/cloudcontrolspartner/v1beta/violations.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ message Violation {
130130
}
131131

132132
// Identifier. Format:
133-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
133+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
134134
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
135135

136136
// Output only. Description for the Violation.
@@ -159,9 +159,9 @@ message Violation {
159159

160160
// Output only. Immutable. Name of the OrgPolicy which was modified with
161161
// non-compliant change and resulted this violation. Format:
162-
// projects/{project_number}/policies/{constraint_name}
163-
// folders/{folder_id}/policies/{constraint_name}
164-
// organizations/{organization_id}/policies/{constraint_name}
162+
// `projects/{project_number}/policies/{constraint_name}`
163+
// `folders/{folder_id}/policies/{constraint_name}`
164+
// `organizations/{organization_id}/policies/{constraint_name}`
165165
string non_compliant_org_policy = 8 [
166166
(google.api.field_behavior) = OUTPUT_ONLY,
167167
(google.api.field_behavior) = IMMUTABLE
@@ -178,7 +178,7 @@ message Violation {
178178
message ListViolationsRequest {
179179
// Required. Parent resource
180180
// Format
181-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
181+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
182182
string parent = 1 [
183183
(google.api.field_behavior) = REQUIRED,
184184
(google.api.resource_reference) = {
@@ -223,7 +223,7 @@ message ListViolationsResponse {
223223
// Message for getting a Violation
224224
message GetViolationRequest {
225225
// Required. Format:
226-
// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
226+
// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
227227
string name = 1 [
228228
(google.api.field_behavior) = REQUIRED,
229229
(google.api.resource_reference) = {

0 commit comments

Comments
 (0)