google-apis-compute_alpha 0.106.0 → 0.108.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_alpha/classes.rb +1220 -277
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +502 -52
- data/lib/google/apis/compute_alpha/service.rb +495 -23
- metadata +4 -7
@@ -780,6 +780,47 @@ module Google
|
|
780
780
|
execute_or_queue_command(command, &block)
|
781
781
|
end
|
782
782
|
|
783
|
+
# Advise how, where and when to create the requested amount of instances with
|
784
|
+
# specified accelerators, within the specified time and location limits. The
|
785
|
+
# method recommends creating future reservations for the requested resources.
|
786
|
+
# @param [String] project
|
787
|
+
# Project ID for this request.
|
788
|
+
# @param [String] region
|
789
|
+
# Name of the region for this request.
|
790
|
+
# @param [Google::Apis::ComputeAlpha::CalendarModeAdviceRequest] calendar_mode_advice_request_object
|
791
|
+
# @param [String] fields
|
792
|
+
# Selector specifying which fields to include in a partial response.
|
793
|
+
# @param [String] quota_user
|
794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
796
|
+
# @param [String] user_ip
|
797
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
798
|
+
# @param [Google::Apis::RequestOptions] options
|
799
|
+
# Request-specific options
|
800
|
+
#
|
801
|
+
# @yield [result, err] Result & error if block supplied
|
802
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CalendarModeAdviceResponse] parsed result object
|
803
|
+
# @yieldparam err [StandardError] error object if request failed
|
804
|
+
#
|
805
|
+
# @return [Google::Apis::ComputeAlpha::CalendarModeAdviceResponse]
|
806
|
+
#
|
807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
810
|
+
def calendar_mode_advice(project, region, calendar_mode_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
811
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarMode', options)
|
812
|
+
command.request_representation = Google::Apis::ComputeAlpha::CalendarModeAdviceRequest::Representation
|
813
|
+
command.request_object = calendar_mode_advice_request_object
|
814
|
+
command.response_representation = Google::Apis::ComputeAlpha::CalendarModeAdviceResponse::Representation
|
815
|
+
command.response_class = Google::Apis::ComputeAlpha::CalendarModeAdviceResponse
|
816
|
+
command.params['project'] = project unless project.nil?
|
817
|
+
command.params['region'] = region unless region.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
821
|
+
execute_or_queue_command(command, &block)
|
822
|
+
end
|
823
|
+
|
783
824
|
# Retrieves an aggregated list of autoscalers. To prevent failure, Google
|
784
825
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
785
826
|
# @param [String] project
|
@@ -2249,6 +2290,42 @@ module Google
|
|
2249
2290
|
execute_or_queue_command(command, &block)
|
2250
2291
|
end
|
2251
2292
|
|
2293
|
+
# Returns effective security policies applied to this backend service.
|
2294
|
+
# @param [String] project
|
2295
|
+
# Project ID for this request.
|
2296
|
+
# @param [String] backend_service
|
2297
|
+
# Name of the Backend Service for this request.
|
2298
|
+
# @param [String] fields
|
2299
|
+
# Selector specifying which fields to include in a partial response.
|
2300
|
+
# @param [String] quota_user
|
2301
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2302
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2303
|
+
# @param [String] user_ip
|
2304
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2305
|
+
# @param [Google::Apis::RequestOptions] options
|
2306
|
+
# Request-specific options
|
2307
|
+
#
|
2308
|
+
# @yield [result, err] Result & error if block supplied
|
2309
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendServicesGetEffectiveSecurityPoliciesResponse] parsed result object
|
2310
|
+
# @yieldparam err [StandardError] error object if request failed
|
2311
|
+
#
|
2312
|
+
# @return [Google::Apis::ComputeAlpha::BackendServicesGetEffectiveSecurityPoliciesResponse]
|
2313
|
+
#
|
2314
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2315
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2316
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2317
|
+
def get_backend_service_effective_security_policies(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2318
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies', options)
|
2319
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendServicesGetEffectiveSecurityPoliciesResponse::Representation
|
2320
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendServicesGetEffectiveSecurityPoliciesResponse
|
2321
|
+
command.params['project'] = project unless project.nil?
|
2322
|
+
command.params['backendService'] = backend_service unless backend_service.nil?
|
2323
|
+
command.query['fields'] = fields unless fields.nil?
|
2324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2325
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2326
|
+
execute_or_queue_command(command, &block)
|
2327
|
+
end
|
2328
|
+
|
2252
2329
|
# Gets the most recent health check results for this BackendService. Example
|
2253
2330
|
# request body: ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example"
|
2254
2331
|
# `
|
@@ -2947,9 +3024,7 @@ module Google
|
|
2947
3024
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
2948
3025
|
# MixerMutationRequestBuilder
|
2949
3026
|
# @param [Boolean] validate_only
|
2950
|
-
# [Input Only] Validate the new configuration, but don't create it.
|
2951
|
-
# applicable, any configuration notices are returned in the `
|
2952
|
-
# configurationNotices` field.
|
3027
|
+
# [Input Only] Validate the new configuration, but don't create it.
|
2953
3028
|
# @param [String] fields
|
2954
3029
|
# Selector specifying which fields to include in a partial response.
|
2955
3030
|
# @param [String] quota_user
|
@@ -3094,10 +3169,10 @@ module Google
|
|
3094
3169
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
3095
3170
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
3096
3171
|
# MixerMutationRequestBuilder
|
3172
|
+
# @param [String] update_mask
|
3173
|
+
# update_mask indicates fields to be updated as part of this request.
|
3097
3174
|
# @param [Boolean] validate_only
|
3098
|
-
# [Input Only] Validate the new configuration, but don't update it.
|
3099
|
-
# applicable, any configuration notices are returned in the `
|
3100
|
-
# configurationNotices` field.
|
3175
|
+
# [Input Only] Validate the new configuration, but don't update it.
|
3101
3176
|
# @param [String] fields
|
3102
3177
|
# Selector specifying which fields to include in a partial response.
|
3103
3178
|
# @param [String] quota_user
|
@@ -3117,7 +3192,7 @@ module Google
|
|
3117
3192
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3118
3193
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3119
3194
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3120
|
-
def patch_cross_site_network(project, cross_site_network, cross_site_network_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3195
|
+
def patch_cross_site_network(project, cross_site_network, cross_site_network_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3121
3196
|
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
3122
3197
|
command.request_representation = Google::Apis::ComputeAlpha::CrossSiteNetwork::Representation
|
3123
3198
|
command.request_object = cross_site_network_object
|
@@ -3126,6 +3201,7 @@ module Google
|
|
3126
3201
|
command.params['project'] = project unless project.nil?
|
3127
3202
|
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
3128
3203
|
command.query['requestId'] = request_id unless request_id.nil?
|
3204
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3129
3205
|
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
3130
3206
|
command.query['fields'] = fields unless fields.nil?
|
3131
3207
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -14364,7 +14440,7 @@ module Google
|
|
14364
14440
|
execute_or_queue_command(command, &block)
|
14365
14441
|
end
|
14366
14442
|
|
14367
|
-
# Adds
|
14443
|
+
# Adds one dynamic network interface to an active instance.
|
14368
14444
|
# @param [String] project
|
14369
14445
|
# Project ID for this request.
|
14370
14446
|
# @param [String] zone
|
@@ -14701,7 +14777,7 @@ module Google
|
|
14701
14777
|
# @param [String] instance
|
14702
14778
|
# Name of the instance resource to delete.
|
14703
14779
|
# @param [Boolean] no_graceful_shutdown
|
14704
|
-
# If true,
|
14780
|
+
# If set to true, Graceful Shutdown is skipped.
|
14705
14781
|
# @param [String] request_id
|
14706
14782
|
# An optional request ID to identify requests. Specify a unique request ID so
|
14707
14783
|
# that if you must retry your request, the server will know to ignore the
|
@@ -14802,11 +14878,10 @@ module Google
|
|
14802
14878
|
execute_or_queue_command(command, &block)
|
14803
14879
|
end
|
14804
14880
|
|
14805
|
-
# Deletes one network interface from an active instance.
|
14881
|
+
# Deletes one dynamic network interface from an active instance.
|
14806
14882
|
# InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to
|
14807
|
-
# delete, using project+zone+resource_id fields; - network interface to
|
14808
|
-
# deleted, using network_interface_name field;
|
14809
|
-
# supported for now.
|
14883
|
+
# delete, using project+zone+resource_id fields; - dynamic network interface to
|
14884
|
+
# be deleted, using network_interface_name field;
|
14810
14885
|
# @param [String] project
|
14811
14886
|
# Project ID for this request.
|
14812
14887
|
# @param [String] zone
|
@@ -14815,8 +14890,7 @@ module Google
|
|
14815
14890
|
# The instance name for this request stored as resource_id. Name should conform
|
14816
14891
|
# to RFC1035 or be an unsigned long integer.
|
14817
14892
|
# @param [String] network_interface_name
|
14818
|
-
# The name of the network interface to be deleted from the instance.
|
14819
|
-
# network interface deletion is supported.
|
14893
|
+
# The name of the dynamic network interface to be deleted from the instance.
|
14820
14894
|
# @param [String] request_id
|
14821
14895
|
# An optional request ID to identify requests. Specify a unique request ID so
|
14822
14896
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15188,7 +15262,9 @@ module Google
|
|
15188
15262
|
# and the adjusted start position is returned as the `start` property value. You
|
15189
15263
|
# can also provide a negative start position, which translates to the most
|
15190
15264
|
# recent number of bytes written to the serial port. For example, -3 is
|
15191
|
-
# interpreted as the most recent 3 bytes written to the serial console.
|
15265
|
+
# interpreted as the most recent 3 bytes written to the serial console. Note
|
15266
|
+
# that the negative start is bounded by the retained buffer size, and the
|
15267
|
+
# returned serial console output will not exceed the max buffer size.
|
15192
15268
|
# @param [String] fields
|
15193
15269
|
# Selector specifying which fields to include in a partial response.
|
15194
15270
|
# @param [String] quota_user
|
@@ -16896,7 +16972,7 @@ module Google
|
|
16896
16972
|
# false, Local SSD data will be preserved when the instance is suspended. If
|
16897
16973
|
# true, the contents of any attached Local SSD disks will be discarded.
|
16898
16974
|
# @param [Boolean] no_graceful_shutdown
|
16899
|
-
# If true,
|
16975
|
+
# If set to true, Graceful Shutdown is skipped.
|
16900
16976
|
# @param [String] request_id
|
16901
16977
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16902
16978
|
# that if you must retry your request, the server will know to ignore the
|
@@ -18412,6 +18488,43 @@ module Google
|
|
18412
18488
|
execute_or_queue_command(command, &block)
|
18413
18489
|
end
|
18414
18490
|
|
18491
|
+
# Returns the InterconnectAttachmentStatuses for the specified
|
18492
|
+
# InterconnectAttachmentGroup resource.
|
18493
|
+
# @param [String] project
|
18494
|
+
# Project ID for this request.
|
18495
|
+
# @param [String] interconnect_attachment_group
|
18496
|
+
# Name of the interconnectAttachmentGroup resource to query.
|
18497
|
+
# @param [String] fields
|
18498
|
+
# Selector specifying which fields to include in a partial response.
|
18499
|
+
# @param [String] quota_user
|
18500
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18501
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18502
|
+
# @param [String] user_ip
|
18503
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18504
|
+
# @param [Google::Apis::RequestOptions] options
|
18505
|
+
# Request-specific options
|
18506
|
+
#
|
18507
|
+
# @yield [result, err] Result & error if block supplied
|
18508
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse] parsed result object
|
18509
|
+
# @yieldparam err [StandardError] error object if request failed
|
18510
|
+
#
|
18511
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse]
|
18512
|
+
#
|
18513
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18514
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18515
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18516
|
+
def get_interconnect_attachment_group_operational_status(project, interconnect_attachment_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18517
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus', options)
|
18518
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse::Representation
|
18519
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse
|
18520
|
+
command.params['project'] = project unless project.nil?
|
18521
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18522
|
+
command.query['fields'] = fields unless fields.nil?
|
18523
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18524
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18525
|
+
execute_or_queue_command(command, &block)
|
18526
|
+
end
|
18527
|
+
|
18415
18528
|
# Creates a InterconnectAttachmentGroup in the specified project in the given
|
18416
18529
|
# scope using the parameters that are included in the request.
|
18417
18530
|
# @param [String] project
|
@@ -19390,6 +19503,42 @@ module Google
|
|
19390
19503
|
execute_or_queue_command(command, &block)
|
19391
19504
|
end
|
19392
19505
|
|
19506
|
+
# Returns the interconnectStatuses for the specified InterconnectGroup.
|
19507
|
+
# @param [String] project
|
19508
|
+
# Project ID for this request.
|
19509
|
+
# @param [String] interconnect_group
|
19510
|
+
# Name of the interconnectGroup resource to query.
|
19511
|
+
# @param [String] fields
|
19512
|
+
# Selector specifying which fields to include in a partial response.
|
19513
|
+
# @param [String] quota_user
|
19514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19516
|
+
# @param [String] user_ip
|
19517
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19518
|
+
# @param [Google::Apis::RequestOptions] options
|
19519
|
+
# Request-specific options
|
19520
|
+
#
|
19521
|
+
# @yield [result, err] Result & error if block supplied
|
19522
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse] parsed result object
|
19523
|
+
# @yieldparam err [StandardError] error object if request failed
|
19524
|
+
#
|
19525
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse]
|
19526
|
+
#
|
19527
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19528
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19529
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19530
|
+
def get_interconnect_group_operational_status(project, interconnect_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19531
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus', options)
|
19532
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse::Representation
|
19533
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse
|
19534
|
+
command.params['project'] = project unless project.nil?
|
19535
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
19536
|
+
command.query['fields'] = fields unless fields.nil?
|
19537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19538
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19539
|
+
execute_or_queue_command(command, &block)
|
19540
|
+
end
|
19541
|
+
|
19393
19542
|
# Creates a InterconnectGroup in the specified project in the given scope using
|
19394
19543
|
# the parameters that are included in the request.
|
19395
19544
|
# @param [String] project
|
@@ -21028,6 +21177,61 @@ module Google
|
|
21028
21177
|
execute_or_queue_command(command, &block)
|
21029
21178
|
end
|
21030
21179
|
|
21180
|
+
# Updates a License resource in the specified project. *Caution* This resource
|
21181
|
+
# is intended for use only by third-party partners who are creating Cloud
|
21182
|
+
# Marketplace images.
|
21183
|
+
# @param [String] project
|
21184
|
+
# Project ID for this request.
|
21185
|
+
# @param [String] license
|
21186
|
+
# The license name for this request.
|
21187
|
+
# @param [Google::Apis::ComputeAlpha::License] license_object
|
21188
|
+
# @param [String] request_id
|
21189
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
21190
|
+
# that if you must retry your request, the server will know to ignore the
|
21191
|
+
# request if it has already been completed. For example, consider a situation
|
21192
|
+
# where you make an initial request and the request times out. If you make the
|
21193
|
+
# request again with the same request ID, the server can check if original
|
21194
|
+
# operation with the same request ID was received, and if so, will ignore the
|
21195
|
+
# second request. This prevents clients from accidentally creating duplicate
|
21196
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
21197
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
21198
|
+
# @param [String] update_mask
|
21199
|
+
# update_mask indicates fields to be updated as part of this request.
|
21200
|
+
# @param [String] fields
|
21201
|
+
# Selector specifying which fields to include in a partial response.
|
21202
|
+
# @param [String] quota_user
|
21203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21205
|
+
# @param [String] user_ip
|
21206
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21207
|
+
# @param [Google::Apis::RequestOptions] options
|
21208
|
+
# Request-specific options
|
21209
|
+
#
|
21210
|
+
# @yield [result, err] Result & error if block supplied
|
21211
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
21212
|
+
# @yieldparam err [StandardError] error object if request failed
|
21213
|
+
#
|
21214
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
21215
|
+
#
|
21216
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21217
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21218
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21219
|
+
def update_license(project, license, license_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21220
|
+
command = make_simple_command(:patch, 'projects/{project}/global/licenses/{license}', options)
|
21221
|
+
command.request_representation = Google::Apis::ComputeAlpha::License::Representation
|
21222
|
+
command.request_object = license_object
|
21223
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
21224
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
21225
|
+
command.params['project'] = project unless project.nil?
|
21226
|
+
command.params['license'] = license unless license.nil?
|
21227
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
21228
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
21229
|
+
command.query['fields'] = fields unless fields.nil?
|
21230
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21231
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21232
|
+
execute_or_queue_command(command, &block)
|
21233
|
+
end
|
21234
|
+
|
21031
21235
|
# Deletes the specified machine image. Deleting a machine image is permanent and
|
21032
21236
|
# cannot be undone.
|
21033
21237
|
# @param [String] project
|
@@ -23222,6 +23426,112 @@ module Google
|
|
23222
23426
|
execute_or_queue_command(command, &block)
|
23223
23427
|
end
|
23224
23428
|
|
23429
|
+
# Retrieves an aggregated list of network firewall policies, listing network
|
23430
|
+
# firewall policies from all applicable scopes (global and regional) and
|
23431
|
+
# grouping the results per scope. To prevent failure, Google recommends that you
|
23432
|
+
# set the `returnPartialSuccess` parameter to `true`.
|
23433
|
+
# @param [String] project
|
23434
|
+
# Project ID for this request.
|
23435
|
+
# @param [String] filter
|
23436
|
+
# A filter expression that filters resources listed in the response. Most
|
23437
|
+
# Compute resources support two types of filter expressions: expressions that
|
23438
|
+
# support regular expressions and expressions that follow API improvement
|
23439
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
23440
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
23441
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
23442
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
23443
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
23444
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
23445
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
23446
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
23447
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
23448
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
23449
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
23450
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
23451
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
23452
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
23453
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
23454
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
23455
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
23456
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
23457
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
23458
|
+
# un-parenthesized expression with or without quotes or against multiple
|
23459
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
23460
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
23461
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
23462
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
23463
|
+
# literal value must match the entire field. For example, to filter for
|
23464
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
23465
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
23466
|
+
# expressions.
|
23467
|
+
# @param [Boolean] include_all_scopes
|
23468
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
23469
|
+
# global) should be included in the response. For new resource types added after
|
23470
|
+
# this field, the flag has no effect as new resource types will always include
|
23471
|
+
# every visible scope for each scope type in response. For resource types which
|
23472
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
23473
|
+
# types where the resource type is expected to be found will be included.
|
23474
|
+
# @param [Fixnum] max_results
|
23475
|
+
# The maximum number of results per page that should be returned. If the number
|
23476
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
23477
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
23478
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
23479
|
+
# @param [String] order_by
|
23480
|
+
# Sorts list results by a certain order. By default, results are returned in
|
23481
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
23482
|
+
# descending order based on the creation timestamp using `orderBy="
|
23483
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
23484
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
23485
|
+
# resources like operations so that the newest operation is returned first.
|
23486
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
23487
|
+
# @param [String] page_token
|
23488
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
23489
|
+
# by a previous list request to get the next page of results.
|
23490
|
+
# @param [Boolean] return_partial_success
|
23491
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
23492
|
+
# failure. The default value is false. For example, when partial success
|
23493
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
23494
|
+
# resources in the zone or no resources, with an error code.
|
23495
|
+
# @param [Fixnum] service_project_number
|
23496
|
+
# The Shared VPC service project id or service project number for which
|
23497
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
23498
|
+
# @param [String] fields
|
23499
|
+
# Selector specifying which fields to include in a partial response.
|
23500
|
+
# @param [String] quota_user
|
23501
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23502
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23503
|
+
# @param [String] user_ip
|
23504
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
23505
|
+
# @param [Google::Apis::RequestOptions] options
|
23506
|
+
# Request-specific options
|
23507
|
+
#
|
23508
|
+
# @yield [result, err] Result & error if block supplied
|
23509
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList] parsed result object
|
23510
|
+
# @yieldparam err [StandardError] error object if request failed
|
23511
|
+
#
|
23512
|
+
# @return [Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList]
|
23513
|
+
#
|
23514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23517
|
+
def aggregated_network_firewall_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23518
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/firewallPolicies', options)
|
23519
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList::Representation
|
23520
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList
|
23521
|
+
command.params['project'] = project unless project.nil?
|
23522
|
+
command.query['filter'] = filter unless filter.nil?
|
23523
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
23524
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
23525
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
23526
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
23527
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
23528
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
23529
|
+
command.query['fields'] = fields unless fields.nil?
|
23530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23531
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23532
|
+
execute_or_queue_command(command, &block)
|
23533
|
+
end
|
23534
|
+
|
23225
23535
|
# Copies rules to the specified firewall policy.
|
23226
23536
|
# @param [String] project
|
23227
23537
|
# Project ID for this request.
|
@@ -39358,6 +39668,60 @@ module Google
|
|
39358
39668
|
execute_or_queue_command(command, &block)
|
39359
39669
|
end
|
39360
39670
|
|
39671
|
+
# Sets the labels on a security policy. To learn more about labels, read the
|
39672
|
+
# Labeling Resources documentation.
|
39673
|
+
# @param [String] project
|
39674
|
+
# Project ID for this request.
|
39675
|
+
# @param [String] region
|
39676
|
+
# The region for this request.
|
39677
|
+
# @param [String] resource
|
39678
|
+
# Name or id of the resource for this request.
|
39679
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
|
39680
|
+
# @param [String] request_id
|
39681
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
39682
|
+
# that if you must retry your request, the server will know to ignore the
|
39683
|
+
# request if it has already been completed. For example, consider a situation
|
39684
|
+
# where you make an initial request and the request times out. If you make the
|
39685
|
+
# request again with the same request ID, the server can check if original
|
39686
|
+
# operation with the same request ID was received, and if so, will ignore the
|
39687
|
+
# second request. This prevents clients from accidentally creating duplicate
|
39688
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
39689
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
39690
|
+
# @param [String] fields
|
39691
|
+
# Selector specifying which fields to include in a partial response.
|
39692
|
+
# @param [String] quota_user
|
39693
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
39694
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
39695
|
+
# @param [String] user_ip
|
39696
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
39697
|
+
# @param [Google::Apis::RequestOptions] options
|
39698
|
+
# Request-specific options
|
39699
|
+
#
|
39700
|
+
# @yield [result, err] Result & error if block supplied
|
39701
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
39702
|
+
# @yieldparam err [StandardError] error object if request failed
|
39703
|
+
#
|
39704
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
39705
|
+
#
|
39706
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
39707
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
39708
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
39709
|
+
def set_region_security_policy_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
39710
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
|
39711
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
|
39712
|
+
command.request_object = region_set_labels_request_object
|
39713
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
39714
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
39715
|
+
command.params['project'] = project unless project.nil?
|
39716
|
+
command.params['region'] = region unless region.nil?
|
39717
|
+
command.params['resource'] = resource unless resource.nil?
|
39718
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
39719
|
+
command.query['fields'] = fields unless fields.nil?
|
39720
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
39721
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
39722
|
+
execute_or_queue_command(command, &block)
|
39723
|
+
end
|
39724
|
+
|
39361
39725
|
# Get region snapshot settings.
|
39362
39726
|
# @param [String] project
|
39363
39727
|
# Project ID for this request.
|
@@ -42451,6 +42815,64 @@ module Google
|
|
42451
42815
|
execute_or_queue_command(command, &block)
|
42452
42816
|
end
|
42453
42817
|
|
42818
|
+
# Allows customers to perform maintenance on a reservation block
|
42819
|
+
# @param [String] project
|
42820
|
+
# Project ID for this request.
|
42821
|
+
# @param [String] zone
|
42822
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
42823
|
+
# @param [String] reservation
|
42824
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
42825
|
+
# ID.
|
42826
|
+
# @param [String] reservation_block
|
42827
|
+
# The name of the reservation block. Name should conform to RFC1035 or be a
|
42828
|
+
# resource ID.
|
42829
|
+
# @param [Google::Apis::ComputeAlpha::ReservationsBlocksPerformMaintenanceRequest] reservations_blocks_perform_maintenance_request_object
|
42830
|
+
# @param [String] request_id
|
42831
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42832
|
+
# that if you must retry your request, the server will know to ignore the
|
42833
|
+
# request if it has already been completed. For example, consider a situation
|
42834
|
+
# where you make an initial request and the request times out. If you make the
|
42835
|
+
# request again with the same request ID, the server can check if original
|
42836
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42837
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42838
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42839
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42840
|
+
# @param [String] fields
|
42841
|
+
# Selector specifying which fields to include in a partial response.
|
42842
|
+
# @param [String] quota_user
|
42843
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42844
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42845
|
+
# @param [String] user_ip
|
42846
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42847
|
+
# @param [Google::Apis::RequestOptions] options
|
42848
|
+
# Request-specific options
|
42849
|
+
#
|
42850
|
+
# @yield [result, err] Result & error if block supplied
|
42851
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42852
|
+
# @yieldparam err [StandardError] error object if request failed
|
42853
|
+
#
|
42854
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42855
|
+
#
|
42856
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42857
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42858
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42859
|
+
def perform_reservation_block_maintenance(project, zone, reservation, reservation_block, reservations_blocks_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42860
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance', options)
|
42861
|
+
command.request_representation = Google::Apis::ComputeAlpha::ReservationsBlocksPerformMaintenanceRequest::Representation
|
42862
|
+
command.request_object = reservations_blocks_perform_maintenance_request_object
|
42863
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42864
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42865
|
+
command.params['project'] = project unless project.nil?
|
42866
|
+
command.params['zone'] = zone unless zone.nil?
|
42867
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
42868
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
42869
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42870
|
+
command.query['fields'] = fields unless fields.nil?
|
42871
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42872
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42873
|
+
execute_or_queue_command(command, &block)
|
42874
|
+
end
|
42875
|
+
|
42454
42876
|
# Retrieves an aggregated list of reservations. To prevent failure, Google
|
42455
42877
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
42456
42878
|
# @param [String] project
|
@@ -42833,6 +43255,60 @@ module Google
|
|
42833
43255
|
execute_or_queue_command(command, &block)
|
42834
43256
|
end
|
42835
43257
|
|
43258
|
+
# Perform maintenance on an extended reservation
|
43259
|
+
# @param [String] project
|
43260
|
+
# Project ID for this request.
|
43261
|
+
# @param [String] zone
|
43262
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
43263
|
+
# @param [String] reservation
|
43264
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
43265
|
+
# ID.
|
43266
|
+
# @param [Google::Apis::ComputeAlpha::ReservationsPerformMaintenanceRequest] reservations_perform_maintenance_request_object
|
43267
|
+
# @param [String] request_id
|
43268
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
43269
|
+
# that if you must retry your request, the server will know to ignore the
|
43270
|
+
# request if it has already been completed. For example, consider a situation
|
43271
|
+
# where you make an initial request and the request times out. If you make the
|
43272
|
+
# request again with the same request ID, the server can check if original
|
43273
|
+
# operation with the same request ID was received, and if so, will ignore the
|
43274
|
+
# second request. This prevents clients from accidentally creating duplicate
|
43275
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
43276
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
43277
|
+
# @param [String] fields
|
43278
|
+
# Selector specifying which fields to include in a partial response.
|
43279
|
+
# @param [String] quota_user
|
43280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43282
|
+
# @param [String] user_ip
|
43283
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
43284
|
+
# @param [Google::Apis::RequestOptions] options
|
43285
|
+
# Request-specific options
|
43286
|
+
#
|
43287
|
+
# @yield [result, err] Result & error if block supplied
|
43288
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
43289
|
+
# @yieldparam err [StandardError] error object if request failed
|
43290
|
+
#
|
43291
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
43292
|
+
#
|
43293
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
43294
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
43295
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
43296
|
+
def perform_reservation_maintenance(project, zone, reservation, reservations_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
43297
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance', options)
|
43298
|
+
command.request_representation = Google::Apis::ComputeAlpha::ReservationsPerformMaintenanceRequest::Representation
|
43299
|
+
command.request_object = reservations_perform_maintenance_request_object
|
43300
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
43301
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
43302
|
+
command.params['project'] = project unless project.nil?
|
43303
|
+
command.params['zone'] = zone unless zone.nil?
|
43304
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
43305
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
43306
|
+
command.query['fields'] = fields unless fields.nil?
|
43307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
43308
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
43309
|
+
execute_or_queue_command(command, &block)
|
43310
|
+
end
|
43311
|
+
|
42836
43312
|
# Resizes the reservation (applicable to standalone reservations only). For more
|
42837
43313
|
# information, read Modifying reservations.
|
42838
43314
|
# @param [String] project
|
@@ -55236,9 +55712,7 @@ module Google
|
|
55236
55712
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
55237
55713
|
# MixerMutationRequestBuilder
|
55238
55714
|
# @param [Boolean] validate_only
|
55239
|
-
# [Input Only] Validate the new configuration, but don't create it.
|
55240
|
-
# applicable, any configuration notices are returned in the `
|
55241
|
-
# configurationNotices` field.
|
55715
|
+
# [Input Only] Validate the new configuration, but don't create it.
|
55242
55716
|
# @param [String] fields
|
55243
55717
|
# Selector specifying which fields to include in a partial response.
|
55244
55718
|
# @param [String] quota_user
|
@@ -55390,9 +55864,7 @@ module Google
|
|
55390
55864
|
# @param [String] update_mask
|
55391
55865
|
# update_mask indicates fields to be updated as part of this request.
|
55392
55866
|
# @param [Boolean] validate_only
|
55393
|
-
# [Input Only] Validate the new configuration, but don't update it.
|
55394
|
-
# applicable, any configuration notices are returned in the `
|
55395
|
-
# configurationNotices` field.
|
55867
|
+
# [Input Only] Validate the new configuration, but don't update it.
|
55396
55868
|
# @param [String] fields
|
55397
55869
|
# Selector specifying which fields to include in a partial response.
|
55398
55870
|
# @param [String] quota_user
|