Skip to content

Commit efe421c

Browse files
authored
Update Google Compute Engine API to the latest ver (#136)
1 parent 21edabc commit efe421c

File tree

157 files changed

+7647
-1323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+7647
-1323
lines changed

gcloud-protos-generator/openapi/google/compute-v1/openapi.yaml

+2,919-1,040
Large diffs are not rendered by default.

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/accelerator_types_api.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ pub struct ComputePeriodAcceleratorTypesPeriodAggregatedListParams {
5252
pub order_by: Option<String>,
5353
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
5454
pub page_token: Option<String>,
55-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
55+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
5656
pub return_partial_success: Option<bool>,
57+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
5758
pub service_project_number: Option<String>,
5859
}
5960

@@ -131,7 +132,7 @@ pub struct ComputePeriodAcceleratorTypesPeriodListParams {
131132
pub order_by: Option<String>,
132133
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
133134
pub page_token: Option<String>,
134-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
135+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
135136
pub return_partial_success: Option<bool>,
136137
}
137138

@@ -156,7 +157,7 @@ pub enum ComputePeriodAcceleratorTypesPeriodListError {
156157
UnknownValue(serde_json::Value),
157158
}
158159

159-
/// Retrieves an aggregated list of accelerator types.
160+
/// Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
160161
pub async fn compute_accelerator_types_aggregated_list(
161162
configuration: &configuration::Configuration,
162163
params: ComputePeriodAcceleratorTypesPeriodAggregatedListParams,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/addresses_api.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ pub struct ComputePeriodAddressesPeriodAggregatedListParams {
5252
pub order_by: Option<String>,
5353
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
5454
pub page_token: Option<String>,
55-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
55+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
5656
pub return_partial_success: Option<bool>,
57+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
5758
pub service_project_number: Option<String>,
5859
}
5960

@@ -204,7 +205,7 @@ pub struct ComputePeriodAddressesPeriodListParams {
204205
pub order_by: Option<String>,
205206
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
206207
pub page_token: Option<String>,
207-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
208+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
208209
pub return_partial_success: Option<bool>,
209210
}
210211

@@ -335,7 +336,7 @@ pub enum ComputePeriodAddressesPeriodSetLabelsError {
335336
UnknownValue(serde_json::Value),
336337
}
337338

338-
/// Retrieves an aggregated list of addresses.
339+
/// Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
339340
pub async fn compute_addresses_aggregated_list(
340341
configuration: &configuration::Configuration,
341342
params: ComputePeriodAddressesPeriodAggregatedListParams,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/autoscalers_api.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ pub struct ComputePeriodAutoscalersPeriodAggregatedListParams {
5252
pub order_by: Option<String>,
5353
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
5454
pub page_token: Option<String>,
55-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
55+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
5656
pub return_partial_success: Option<bool>,
57+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
5758
pub service_project_number: Option<String>,
5859
}
5960

@@ -204,7 +205,7 @@ pub struct ComputePeriodAutoscalersPeriodListParams {
204205
pub order_by: Option<String>,
205206
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
206207
pub page_token: Option<String>,
207-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
208+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
208209
pub return_partial_success: Option<bool>,
209210
}
210211

@@ -333,7 +334,7 @@ pub enum ComputePeriodAutoscalersPeriodUpdateError {
333334
UnknownValue(serde_json::Value),
334335
}
335336

336-
/// Retrieves an aggregated list of autoscalers.
337+
/// Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
337338
pub async fn compute_autoscalers_aggregated_list(
338339
configuration: &configuration::Configuration,
339340
params: ComputePeriodAutoscalersPeriodAggregatedListParams,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/backend_buckets_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ pub struct ComputePeriodBackendBucketsPeriodListParams {
260260
pub order_by: Option<String>,
261261
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
262262
pub page_token: Option<String>,
263-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
263+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
264264
pub return_partial_success: Option<bool>,
265265
}
266266

@@ -305,7 +305,7 @@ pub struct ComputePeriodBackendBucketsPeriodPatchParams {
305305
pub struct ComputePeriodBackendBucketsPeriodSetEdgeSecurityPolicyParams {
306306
/// Project ID for this request.
307307
pub project: String,
308-
/// Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
308+
/// Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035.
309309
pub backend_bucket: String,
310310
/// V1 error format.
311311
pub dollar_xgafv: Option<String>,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/backend_services_api.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ pub struct ComputePeriodBackendServicesPeriodAggregatedListParams {
8888
pub order_by: Option<String>,
8989
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
9090
pub page_token: Option<String>,
91-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
91+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
9292
pub return_partial_success: Option<bool>,
93+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
9394
pub service_project_number: Option<String>,
9495
}
9596

@@ -338,7 +339,7 @@ pub struct ComputePeriodBackendServicesPeriodListParams {
338339
pub order_by: Option<String>,
339340
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
340341
pub page_token: Option<String>,
341-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
342+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
342343
pub return_partial_success: Option<bool>,
343344
}
344345

@@ -379,7 +380,7 @@ pub struct ComputePeriodBackendServicesPeriodListUsableParams {
379380
pub order_by: Option<String>,
380381
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
381382
pub page_token: Option<String>,
382-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
383+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
383384
pub return_partial_success: Option<bool>,
384385
}
385386

@@ -832,7 +833,7 @@ pub async fn compute_backend_services_add_signed_url_key(
832833
}
833834
}
834835

835-
/// Retrieves the list of all BackendService resources, regional and global, available to the specified project.
836+
/// Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
836837
pub async fn compute_backend_services_aggregated_list(
837838
configuration: &configuration::Configuration,
838839
params: ComputePeriodBackendServicesPeriodAggregatedListParams,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/disk_types_api.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ pub struct ComputePeriodDiskTypesPeriodAggregatedListParams {
5252
pub order_by: Option<String>,
5353
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
5454
pub page_token: Option<String>,
55-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
55+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
5656
pub return_partial_success: Option<bool>,
57+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
5758
pub service_project_number: Option<String>,
5859
}
5960

@@ -131,7 +132,7 @@ pub struct ComputePeriodDiskTypesPeriodListParams {
131132
pub order_by: Option<String>,
132133
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
133134
pub page_token: Option<String>,
134-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
135+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
135136
pub return_partial_success: Option<bool>,
136137
}
137138

@@ -156,7 +157,7 @@ pub enum ComputePeriodDiskTypesPeriodListError {
156157
UnknownValue(serde_json::Value),
157158
}
158159

159-
/// Retrieves an aggregated list of disk types.
160+
/// Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
160161
pub async fn compute_disk_types_aggregated_list(
161162
configuration: &configuration::Configuration,
162163
params: ComputePeriodDiskTypesPeriodAggregatedListParams,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/disks_api.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ pub struct ComputePeriodDisksPeriodAggregatedListParams {
9191
pub order_by: Option<String>,
9292
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
9393
pub page_token: Option<String>,
94-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
94+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
9595
pub return_partial_success: Option<bool>,
96+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
9697
pub service_project_number: Option<String>,
9798
}
9899

@@ -359,7 +360,7 @@ pub struct ComputePeriodDisksPeriodListParams {
359360
pub order_by: Option<String>,
360361
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
361362
pub page_token: Option<String>,
362-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
363+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
363364
pub return_partial_success: Option<bool>,
364365
}
365366

@@ -957,7 +958,7 @@ pub async fn compute_disks_add_resource_policies(
957958
}
958959
}
959960

960-
/// Retrieves an aggregated list of persistent disks.
961+
/// Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
961962
pub async fn compute_disks_aggregated_list(
962963
configuration: &configuration::Configuration,
963964
params: ComputePeriodDisksPeriodAggregatedListParams,

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/external_vpn_gateways_api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub struct ComputePeriodExternalVpnGatewaysPeriodListParams {
153153
pub order_by: Option<String>,
154154
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
155155
pub page_token: Option<String>,
156-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
156+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
157157
pub return_partial_success: Option<bool>,
158158
}
159159

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/firewall_policies_api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ pub struct ComputePeriodFirewallPoliciesPeriodListParams {
354354
pub page_token: Option<String>,
355355
/// 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.
356356
pub parent_id: Option<String>,
357-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
357+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
358358
pub return_partial_success: Option<bool>,
359359
}
360360

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/firewalls_api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub struct ComputePeriodFirewallsPeriodListParams {
152152
pub order_by: Option<String>,
153153
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
154154
pub page_token: Option<String>,
155-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
155+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
156156
pub return_partial_success: Option<bool>,
157157
}
158158

gcloud-sdk/src/rest_apis/google_rest_apis/compute_v1/apis/forwarding_rules_api.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ pub struct ComputePeriodForwardingRulesPeriodAggregatedListParams {
5252
pub order_by: Option<String>,
5353
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
5454
pub page_token: Option<String>,
55-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
55+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
5656
pub return_partial_success: Option<bool>,
57+
/// The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
5758
pub service_project_number: Option<String>,
5859
}
5960

@@ -204,7 +205,7 @@ pub struct ComputePeriodForwardingRulesPeriodListParams {
204205
pub order_by: Option<String>,
205206
/// Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
206207
pub page_token: Option<String>,
207-
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
208+
/// Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
208209
pub return_partial_success: Option<bool>,
209210
}
210211

@@ -379,7 +380,7 @@ pub enum ComputePeriodForwardingRulesPeriodSetTargetError {
379380
UnknownValue(serde_json::Value),
380381
}
381382

382-
/// Retrieves an aggregated list of forwarding rules.
383+
/// Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
383384
pub async fn compute_forwarding_rules_aggregated_list(
384385
configuration: &configuration::Configuration,
385386
params: ComputePeriodForwardingRulesPeriodAggregatedListParams,

0 commit comments

Comments
 (0)