Skip to content

Commit 02df998

Browse files
authored
fix: make parent_id fields required compute move and insert methods (#686)
1 parent 9a04fde commit 02df998

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

google/cloud/compute/v1/compute.proto

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8983,7 +8983,10 @@ message InsertFirewallPolicyRequest {
89838983
FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED];
89848984

89858985
// Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
8986-
optional string parent_id = 459714768 [(google.cloud.operation_request_field) = "parent_id"];
8986+
string parent_id = 459714768 [
8987+
(google.api.field_behavior) = REQUIRED,
8988+
(google.cloud.operation_request_field) = "parent_id"
8989+
];
89878990

89888991
// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
89898992
optional string request_id = 37109963;
@@ -14970,7 +14973,10 @@ message MoveFirewallPolicyRequest {
1497014973
string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED];
1497114974

1497214975
// The new parent of the firewall policy.
14973-
optional string parent_id = 459714768 [(google.cloud.operation_request_field) = "parent_id"];
14976+
string parent_id = 459714768 [
14977+
(google.api.field_behavior) = REQUIRED,
14978+
(google.cloud.operation_request_field) = "parent_id"
14979+
];
1497414980

1497514981
// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1497614982
optional string request_id = 37109963;
@@ -26620,7 +26626,7 @@ service FirewallPolicies {
2662026626
body: "firewall_policy_resource"
2662126627
post: "/compute/v1/locations/global/firewallPolicies"
2662226628
};
26623-
option (google.api.method_signature) = "firewall_policy_resource";
26629+
option (google.api.method_signature) = "parent_id,firewall_policy_resource";
2662426630
option (google.cloud.operation_service) = "GlobalOrganizationOperations";
2662526631
}
2662626632

@@ -26645,7 +26651,7 @@ service FirewallPolicies {
2664526651
option (google.api.http) = {
2664626652
post: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/move"
2664726653
};
26648-
option (google.api.method_signature) = "firewall_policy";
26654+
option (google.api.method_signature) = "firewall_policy,parent_id";
2664926655
option (google.cloud.operation_service) = "GlobalOrganizationOperations";
2665026656
}
2665126657

google/cloud/compute/v1/compute.v1.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16891,7 +16891,8 @@
1689116891
},
1689216892
"move": {
1689316893
"parameterOrder": [
16894-
"firewallPolicy"
16894+
"firewallPolicy",
16895+
"parentId"
1689516896
],
1689616897
"response": {
1689716898
"$ref": "Operation"
@@ -16914,7 +16915,8 @@
1691416915
"parentId": {
1691516916
"type": "string",
1691616917
"description": "The new parent of the firewall policy.",
16917-
"location": "query"
16918+
"location": "query",
16919+
"required": true
1691816920
},
1691916921
"requestId": {
1692016922
"description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
@@ -17265,6 +17267,9 @@
1726517267
}
1726617268
},
1726717269
"insert": {
17270+
"parameterOrder": [
17271+
"parentId"
17272+
],
1726817273
"response": {
1726917274
"$ref": "Operation"
1727017275
},
@@ -17284,7 +17289,8 @@
1728417289
"parentId": {
1728517290
"location": "query",
1728617291
"description": "Parent ID for this request. The ID can be either be \"folders/[FOLDER_ID]\" if the parent is a folder or \"organizations/[ORGANIZATION_ID]\" if the parent is an organization.",
17287-
"type": "string"
17292+
"type": "string",
17293+
"required": true
1728817294
}
1728917295
},
1729017296
"request": {

0 commit comments

Comments
 (0)