google-apis-compute_v1 0.131.0 → 0.132.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2116,6 +2116,40 @@ module Google
2116
2116
  execute_or_queue_command(command, &block)
2117
2117
  end
2118
2118
 
2119
+ # Returns effective security policies applied to this backend service.
2120
+ # @param [String] project
2121
+ # Project ID for this request.
2122
+ # @param [String] backend_service
2123
+ # Name of the Backend Service for this request.
2124
+ # @param [String] fields
2125
+ # Selector specifying which fields to include in a partial response.
2126
+ # @param [String] quota_user
2127
+ # Available to use for quota purposes for server-side applications. Can be any
2128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2129
+ # @param [String] user_ip
2130
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2131
+ # @param [Google::Apis::RequestOptions] options
2132
+ # Request-specific options
2133
+ #
2134
+ # @yield [result, err] Result & error if block supplied
2135
+ # @yieldparam result [NilClass] No result returned for this method
2136
+ # @yieldparam err [StandardError] error object if request failed
2137
+ #
2138
+ # @return [void]
2139
+ #
2140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2143
+ def get_backend_service_effective_security_policies(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2144
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies', options)
2145
+ command.params['project'] = project unless project.nil?
2146
+ command.params['backendService'] = backend_service unless backend_service.nil?
2147
+ command.query['fields'] = fields unless fields.nil?
2148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2149
+ command.query['userIp'] = user_ip unless user_ip.nil?
2150
+ execute_or_queue_command(command, &block)
2151
+ end
2152
+
2119
2153
  # Gets the most recent health check results for this BackendService. Example
2120
2154
  # request body: ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example"
2121
2155
  # `
@@ -24013,10 +24047,831 @@ module Google
24013
24047
  execute_or_queue_command(command, &block)
24014
24048
  end
24015
24049
 
24016
- # Retrieves an aggregated list of packetMirrorings. To prevent failure, Google
24017
- # recommends that you set the `returnPartialSuccess` parameter to `true`.
24018
- # @param [String] project
24019
- # Project ID for this request.
24050
+ # Inserts an association for the specified security policy. This has billing
24051
+ # implications. Projects in the hierarchy with effective hierarchical security
24052
+ # policies will be automatically enrolled into Cloud Armor Enterprise if not
24053
+ # already enrolled. Use of this API to modify firewall policies is deprecated.
24054
+ # Use firewallPolicies.addAssociation instead if possible.
24055
+ # @param [String] security_policy
24056
+ # Name of the security policy to update.
24057
+ # @param [Google::Apis::ComputeV1::SecurityPolicyAssociation] security_policy_association_object
24058
+ # @param [Boolean] replace_existing_association
24059
+ # Indicates whether or not to replace it if an association of the attachment
24060
+ # already exists. This is false by default, in which case an error will be
24061
+ # returned if an association already exists.
24062
+ # @param [String] request_id
24063
+ # An optional request ID to identify requests. Specify a unique request ID so
24064
+ # that if you must retry your request, the server will know to ignore the
24065
+ # request if it has already been completed. For example, consider a situation
24066
+ # where you make an initial request and the request times out. If you make the
24067
+ # request again with the same request ID, the server can check if original
24068
+ # operation with the same request ID was received, and if so, will ignore the
24069
+ # second request. This prevents clients from accidentally creating duplicate
24070
+ # commitments. The request ID must be a valid UUID with the exception that zero
24071
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24072
+ # @param [String] fields
24073
+ # Selector specifying which fields to include in a partial response.
24074
+ # @param [String] quota_user
24075
+ # Available to use for quota purposes for server-side applications. Can be any
24076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24077
+ # @param [String] user_ip
24078
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24079
+ # @param [Google::Apis::RequestOptions] options
24080
+ # Request-specific options
24081
+ #
24082
+ # @yield [result, err] Result & error if block supplied
24083
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24084
+ # @yieldparam err [StandardError] error object if request failed
24085
+ #
24086
+ # @return [Google::Apis::ComputeV1::Operation]
24087
+ #
24088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24091
+ def add_organization_security_policy_association(security_policy, security_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24092
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addAssociation', options)
24093
+ command.request_representation = Google::Apis::ComputeV1::SecurityPolicyAssociation::Representation
24094
+ command.request_object = security_policy_association_object
24095
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24096
+ command.response_class = Google::Apis::ComputeV1::Operation
24097
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24098
+ command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
24099
+ command.query['requestId'] = request_id unless request_id.nil?
24100
+ command.query['fields'] = fields unless fields.nil?
24101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24102
+ command.query['userIp'] = user_ip unless user_ip.nil?
24103
+ execute_or_queue_command(command, &block)
24104
+ end
24105
+
24106
+ # Inserts a rule into a security policy.
24107
+ # @param [String] security_policy
24108
+ # Name of the security policy to update.
24109
+ # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
24110
+ # @param [String] request_id
24111
+ # An optional request ID to identify requests. Specify a unique request ID so
24112
+ # that if you must retry your request, the server will know to ignore the
24113
+ # request if it has already been completed. For example, consider a situation
24114
+ # where you make an initial request and the request times out. If you make the
24115
+ # request again with the same request ID, the server can check if original
24116
+ # operation with the same request ID was received, and if so, will ignore the
24117
+ # second request. This prevents clients from accidentally creating duplicate
24118
+ # commitments. The request ID must be a valid UUID with the exception that zero
24119
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24120
+ # @param [String] fields
24121
+ # Selector specifying which fields to include in a partial response.
24122
+ # @param [String] quota_user
24123
+ # Available to use for quota purposes for server-side applications. Can be any
24124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24125
+ # @param [String] user_ip
24126
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24127
+ # @param [Google::Apis::RequestOptions] options
24128
+ # Request-specific options
24129
+ #
24130
+ # @yield [result, err] Result & error if block supplied
24131
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24132
+ # @yieldparam err [StandardError] error object if request failed
24133
+ #
24134
+ # @return [Google::Apis::ComputeV1::Operation]
24135
+ #
24136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24139
+ def add_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24140
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addRule', options)
24141
+ command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
24142
+ command.request_object = security_policy_rule_object
24143
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24144
+ command.response_class = Google::Apis::ComputeV1::Operation
24145
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24146
+ command.query['requestId'] = request_id unless request_id.nil?
24147
+ command.query['fields'] = fields unless fields.nil?
24148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24149
+ command.query['userIp'] = user_ip unless user_ip.nil?
24150
+ execute_or_queue_command(command, &block)
24151
+ end
24152
+
24153
+ # Copies rules to the specified security policy. Use of this API to modify
24154
+ # firewall policies is deprecated. Use firewallPolicies.copyRules instead.
24155
+ # @param [String] security_policy
24156
+ # Name of the security policy to update.
24157
+ # @param [String] request_id
24158
+ # An optional request ID to identify requests. Specify a unique request ID so
24159
+ # that if you must retry your request, the server will know to ignore the
24160
+ # request if it has already been completed. For example, consider a situation
24161
+ # where you make an initial request and the request times out. If you make the
24162
+ # request again with the same request ID, the server can check if original
24163
+ # operation with the same request ID was received, and if so, will ignore the
24164
+ # second request. This prevents clients from accidentally creating duplicate
24165
+ # commitments. The request ID must be a valid UUID with the exception that zero
24166
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24167
+ # @param [String] source_security_policy
24168
+ # The security policy from which to copy rules.
24169
+ # @param [String] fields
24170
+ # Selector specifying which fields to include in a partial response.
24171
+ # @param [String] quota_user
24172
+ # Available to use for quota purposes for server-side applications. Can be any
24173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24174
+ # @param [String] user_ip
24175
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24176
+ # @param [Google::Apis::RequestOptions] options
24177
+ # Request-specific options
24178
+ #
24179
+ # @yield [result, err] Result & error if block supplied
24180
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24181
+ # @yieldparam err [StandardError] error object if request failed
24182
+ #
24183
+ # @return [Google::Apis::ComputeV1::Operation]
24184
+ #
24185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24188
+ def copy_organization_security_policy_rules(security_policy, request_id: nil, source_security_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24189
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/copyRules', options)
24190
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24191
+ command.response_class = Google::Apis::ComputeV1::Operation
24192
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24193
+ command.query['requestId'] = request_id unless request_id.nil?
24194
+ command.query['sourceSecurityPolicy'] = source_security_policy unless source_security_policy.nil?
24195
+ command.query['fields'] = fields unless fields.nil?
24196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24197
+ command.query['userIp'] = user_ip unless user_ip.nil?
24198
+ execute_or_queue_command(command, &block)
24199
+ end
24200
+
24201
+ # Deletes the specified policy. Use of this API to remove firewall policies is
24202
+ # deprecated. Use firewallPolicies.delete instead.
24203
+ # @param [String] security_policy
24204
+ # Name of the security policy to delete.
24205
+ # @param [String] request_id
24206
+ # An optional request ID to identify requests. Specify a unique request ID so
24207
+ # that if you must retry your request, the server will know to ignore the
24208
+ # request if it has already been completed. For example, consider a situation
24209
+ # where you make an initial request and the request times out. If you make the
24210
+ # request again with the same request ID, the server can check if original
24211
+ # operation with the same request ID was received, and if so, will ignore the
24212
+ # second request. This prevents clients from accidentally creating duplicate
24213
+ # commitments. The request ID must be a valid UUID with the exception that zero
24214
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24215
+ # @param [String] fields
24216
+ # Selector specifying which fields to include in a partial response.
24217
+ # @param [String] quota_user
24218
+ # Available to use for quota purposes for server-side applications. Can be any
24219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24220
+ # @param [String] user_ip
24221
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24222
+ # @param [Google::Apis::RequestOptions] options
24223
+ # Request-specific options
24224
+ #
24225
+ # @yield [result, err] Result & error if block supplied
24226
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24227
+ # @yieldparam err [StandardError] error object if request failed
24228
+ #
24229
+ # @return [Google::Apis::ComputeV1::Operation]
24230
+ #
24231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24234
+ def delete_organization_security_policy(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24235
+ command = make_simple_command(:delete, 'locations/global/securityPolicies/{securityPolicy}', options)
24236
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24237
+ command.response_class = Google::Apis::ComputeV1::Operation
24238
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24239
+ command.query['requestId'] = request_id unless request_id.nil?
24240
+ command.query['fields'] = fields unless fields.nil?
24241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24242
+ command.query['userIp'] = user_ip unless user_ip.nil?
24243
+ execute_or_queue_command(command, &block)
24244
+ end
24245
+
24246
+ # List all of the ordered rules present in a single specified policy. Use of
24247
+ # this API to read firewall policies is deprecated. Use firewallPolicies.get
24248
+ # instead.
24249
+ # @param [String] security_policy
24250
+ # Name of the security policy to get.
24251
+ # @param [String] fields
24252
+ # Selector specifying which fields to include in a partial response.
24253
+ # @param [String] quota_user
24254
+ # Available to use for quota purposes for server-side applications. Can be any
24255
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24256
+ # @param [String] user_ip
24257
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24258
+ # @param [Google::Apis::RequestOptions] options
24259
+ # Request-specific options
24260
+ #
24261
+ # @yield [result, err] Result & error if block supplied
24262
+ # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicy] parsed result object
24263
+ # @yieldparam err [StandardError] error object if request failed
24264
+ #
24265
+ # @return [Google::Apis::ComputeV1::SecurityPolicy]
24266
+ #
24267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24270
+ def get_organization_security_policy(security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24271
+ command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}', options)
24272
+ command.response_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
24273
+ command.response_class = Google::Apis::ComputeV1::SecurityPolicy
24274
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24275
+ command.query['fields'] = fields unless fields.nil?
24276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24277
+ command.query['userIp'] = user_ip unless user_ip.nil?
24278
+ execute_or_queue_command(command, &block)
24279
+ end
24280
+
24281
+ # Gets an association with the specified name. Use of this API to read firewall
24282
+ # policies is deprecated. Use firewallPolicies.getAssociation instead if
24283
+ # possible.
24284
+ # @param [String] security_policy
24285
+ # Name of the security policy to which the queried rule belongs.
24286
+ # @param [String] name
24287
+ # The name of the association to get from the security policy.
24288
+ # @param [String] fields
24289
+ # Selector specifying which fields to include in a partial response.
24290
+ # @param [String] quota_user
24291
+ # Available to use for quota purposes for server-side applications. Can be any
24292
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24293
+ # @param [String] user_ip
24294
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24295
+ # @param [Google::Apis::RequestOptions] options
24296
+ # Request-specific options
24297
+ #
24298
+ # @yield [result, err] Result & error if block supplied
24299
+ # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyAssociation] parsed result object
24300
+ # @yieldparam err [StandardError] error object if request failed
24301
+ #
24302
+ # @return [Google::Apis::ComputeV1::SecurityPolicyAssociation]
24303
+ #
24304
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24305
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24306
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24307
+ def get_organization_security_policy_association(security_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24308
+ command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getAssociation', options)
24309
+ command.response_representation = Google::Apis::ComputeV1::SecurityPolicyAssociation::Representation
24310
+ command.response_class = Google::Apis::ComputeV1::SecurityPolicyAssociation
24311
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24312
+ command.query['name'] = name unless name.nil?
24313
+ command.query['fields'] = fields unless fields.nil?
24314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24315
+ command.query['userIp'] = user_ip unless user_ip.nil?
24316
+ execute_or_queue_command(command, &block)
24317
+ end
24318
+
24319
+ # Gets a rule at the specified priority. Use of this API to read firewall
24320
+ # policies is deprecated. Use firewallPolicies.getRule instead.
24321
+ # @param [String] security_policy
24322
+ # Name of the security policy to which the queried rule belongs.
24323
+ # @param [Fixnum] priority
24324
+ # The priority of the rule to get from the security policy.
24325
+ # @param [String] fields
24326
+ # Selector specifying which fields to include in a partial response.
24327
+ # @param [String] quota_user
24328
+ # Available to use for quota purposes for server-side applications. Can be any
24329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24330
+ # @param [String] user_ip
24331
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24332
+ # @param [Google::Apis::RequestOptions] options
24333
+ # Request-specific options
24334
+ #
24335
+ # @yield [result, err] Result & error if block supplied
24336
+ # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyRule] parsed result object
24337
+ # @yieldparam err [StandardError] error object if request failed
24338
+ #
24339
+ # @return [Google::Apis::ComputeV1::SecurityPolicyRule]
24340
+ #
24341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24344
+ def get_organization_security_policy_rule(security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24345
+ command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getRule', options)
24346
+ command.response_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
24347
+ command.response_class = Google::Apis::ComputeV1::SecurityPolicyRule
24348
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24349
+ command.query['priority'] = priority unless priority.nil?
24350
+ command.query['fields'] = fields unless fields.nil?
24351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24352
+ command.query['userIp'] = user_ip unless user_ip.nil?
24353
+ execute_or_queue_command(command, &block)
24354
+ end
24355
+
24356
+ # Creates a new policy in the specified project using the data included in the
24357
+ # request. Use of this API to insert firewall policies is deprecated. Use
24358
+ # firewallPolicies.insert instead.
24359
+ # @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
24360
+ # @param [String] parent_id
24361
+ # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
24362
+ # the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
24363
+ # an organization.
24364
+ # @param [String] request_id
24365
+ # An optional request ID to identify requests. Specify a unique request ID so
24366
+ # that if you must retry your request, the server will know to ignore the
24367
+ # request if it has already been completed. For example, consider a situation
24368
+ # where you make an initial request and the request times out. If you make the
24369
+ # request again with the same request ID, the server can check if original
24370
+ # operation with the same request ID was received, and if so, will ignore the
24371
+ # second request. This prevents clients from accidentally creating duplicate
24372
+ # commitments. The request ID must be a valid UUID with the exception that zero
24373
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24374
+ # @param [String] fields
24375
+ # Selector specifying which fields to include in a partial response.
24376
+ # @param [String] quota_user
24377
+ # Available to use for quota purposes for server-side applications. Can be any
24378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24379
+ # @param [String] user_ip
24380
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24381
+ # @param [Google::Apis::RequestOptions] options
24382
+ # Request-specific options
24383
+ #
24384
+ # @yield [result, err] Result & error if block supplied
24385
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24386
+ # @yieldparam err [StandardError] error object if request failed
24387
+ #
24388
+ # @return [Google::Apis::ComputeV1::Operation]
24389
+ #
24390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24393
+ def insert_organization_security_policy(security_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24394
+ command = make_simple_command(:post, 'locations/global/securityPolicies', options)
24395
+ command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
24396
+ command.request_object = security_policy_object
24397
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24398
+ command.response_class = Google::Apis::ComputeV1::Operation
24399
+ command.query['parentId'] = parent_id unless parent_id.nil?
24400
+ command.query['requestId'] = request_id unless request_id.nil?
24401
+ command.query['fields'] = fields unless fields.nil?
24402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24403
+ command.query['userIp'] = user_ip unless user_ip.nil?
24404
+ execute_or_queue_command(command, &block)
24405
+ end
24406
+
24407
+ # List all the policies that have been configured for the specified project. Use
24408
+ # of this API to read firewall policies is deprecated. Use firewallPolicies.list
24409
+ # instead.
24410
+ # @param [String] filter
24411
+ # A filter expression that filters resources listed in the response. Most
24412
+ # Compute resources support two types of filter expressions: expressions that
24413
+ # support regular expressions and expressions that follow API improvement
24414
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
24415
+ # request. If you want to use AIP-160, your expression must specify the field
24416
+ # name, an operator, and the value that you want to use for filtering. The value
24417
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
24418
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
24419
+ # Engine instances, you can exclude instances named `example-instance` by
24420
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
24421
+ # whether a key has been defined. For example, to find all objects with `owner`
24422
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
24423
+ # example, you could specify `scheduling.automaticRestart = false` to include
24424
+ # instances only if they are not scheduled for automatic restarts. You can use
24425
+ # filtering on nested fields to filter based on resource labels. To filter on
24426
+ # multiple expressions, provide each separate expression within parentheses. For
24427
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
24428
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
24429
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
24430
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
24431
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
24432
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
24433
+ # un-parenthesized expression with or without quotes or against multiple
24434
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
24435
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
24436
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
24437
+ # interpreted as a regular expression using Google RE2 library syntax. The
24438
+ # literal value must match the entire field. For example, to filter for
24439
+ # instances that do not end with name "instance", you would use `name ne .*
24440
+ # instance`. You cannot combine constraints on multiple fields using regular
24441
+ # expressions.
24442
+ # @param [Fixnum] max_results
24443
+ # The maximum number of results per page that should be returned. If the number
24444
+ # of available results is larger than `maxResults`, Compute Engine returns a `
24445
+ # nextPageToken` that can be used to get the next page of results in subsequent
24446
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24447
+ # @param [String] order_by
24448
+ # Sorts list results by a certain order. By default, results are returned in
24449
+ # alphanumerical order based on the resource name. You can also sort results in
24450
+ # descending order based on the creation timestamp using `orderBy="
24451
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
24452
+ # field in reverse chronological order (newest result first). Use this to sort
24453
+ # resources like operations so that the newest operation is returned first.
24454
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24455
+ # @param [String] page_token
24456
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24457
+ # by a previous list request to get the next page of results.
24458
+ # @param [String] parent_id
24459
+ # Parent ID for this request.
24460
+ # @param [Boolean] return_partial_success
24461
+ # Opt-in for partial success behavior which provides partial results in case of
24462
+ # failure. The default value is false. For example, when partial success
24463
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
24464
+ # resources in the zone or no resources, with an error code.
24465
+ # @param [String] fields
24466
+ # Selector specifying which fields to include in a partial response.
24467
+ # @param [String] quota_user
24468
+ # Available to use for quota purposes for server-side applications. Can be any
24469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24470
+ # @param [String] user_ip
24471
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24472
+ # @param [Google::Apis::RequestOptions] options
24473
+ # Request-specific options
24474
+ #
24475
+ # @yield [result, err] Result & error if block supplied
24476
+ # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyList] parsed result object
24477
+ # @yieldparam err [StandardError] error object if request failed
24478
+ #
24479
+ # @return [Google::Apis::ComputeV1::SecurityPolicyList]
24480
+ #
24481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24484
+ def list_organization_security_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24485
+ command = make_simple_command(:get, 'locations/global/securityPolicies', options)
24486
+ command.response_representation = Google::Apis::ComputeV1::SecurityPolicyList::Representation
24487
+ command.response_class = Google::Apis::ComputeV1::SecurityPolicyList
24488
+ command.query['filter'] = filter unless filter.nil?
24489
+ command.query['maxResults'] = max_results unless max_results.nil?
24490
+ command.query['orderBy'] = order_by unless order_by.nil?
24491
+ command.query['pageToken'] = page_token unless page_token.nil?
24492
+ command.query['parentId'] = parent_id unless parent_id.nil?
24493
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24494
+ command.query['fields'] = fields unless fields.nil?
24495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24496
+ command.query['userIp'] = user_ip unless user_ip.nil?
24497
+ execute_or_queue_command(command, &block)
24498
+ end
24499
+
24500
+ # Lists associations of a specified target, i.e., organization or folder. Use of
24501
+ # this API to read firewall policies is deprecated. Use firewallPolicies.
24502
+ # listAssociations instead if possible.
24503
+ # @param [String] target_resource
24504
+ # The target resource to list associations. It is an organization, or a folder.
24505
+ # @param [String] fields
24506
+ # Selector specifying which fields to include in a partial response.
24507
+ # @param [String] quota_user
24508
+ # Available to use for quota purposes for server-side applications. Can be any
24509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24510
+ # @param [String] user_ip
24511
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24512
+ # @param [Google::Apis::RequestOptions] options
24513
+ # Request-specific options
24514
+ #
24515
+ # @yield [result, err] Result & error if block supplied
24516
+ # @yieldparam result [Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse] parsed result object
24517
+ # @yieldparam err [StandardError] error object if request failed
24518
+ #
24519
+ # @return [Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse]
24520
+ #
24521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24524
+ def list_organization_security_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24525
+ command = make_simple_command(:get, 'locations/global/securityPolicies/listAssociations', options)
24526
+ command.response_representation = Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse::Representation
24527
+ command.response_class = Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse
24528
+ command.query['targetResource'] = target_resource unless target_resource.nil?
24529
+ command.query['fields'] = fields unless fields.nil?
24530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24531
+ command.query['userIp'] = user_ip unless user_ip.nil?
24532
+ execute_or_queue_command(command, &block)
24533
+ end
24534
+
24535
+ # Gets the current list of preconfigured Web Application Firewall (WAF)
24536
+ # expressions.
24537
+ # @param [String] filter
24538
+ # A filter expression that filters resources listed in the response. Most
24539
+ # Compute resources support two types of filter expressions: expressions that
24540
+ # support regular expressions and expressions that follow API improvement
24541
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
24542
+ # request. If you want to use AIP-160, your expression must specify the field
24543
+ # name, an operator, and the value that you want to use for filtering. The value
24544
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
24545
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
24546
+ # Engine instances, you can exclude instances named `example-instance` by
24547
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
24548
+ # whether a key has been defined. For example, to find all objects with `owner`
24549
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
24550
+ # example, you could specify `scheduling.automaticRestart = false` to include
24551
+ # instances only if they are not scheduled for automatic restarts. You can use
24552
+ # filtering on nested fields to filter based on resource labels. To filter on
24553
+ # multiple expressions, provide each separate expression within parentheses. For
24554
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
24555
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
24556
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
24557
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
24558
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
24559
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
24560
+ # un-parenthesized expression with or without quotes or against multiple
24561
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
24562
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
24563
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
24564
+ # interpreted as a regular expression using Google RE2 library syntax. The
24565
+ # literal value must match the entire field. For example, to filter for
24566
+ # instances that do not end with name "instance", you would use `name ne .*
24567
+ # instance`. You cannot combine constraints on multiple fields using regular
24568
+ # expressions.
24569
+ # @param [Fixnum] max_results
24570
+ # The maximum number of results per page that should be returned. If the number
24571
+ # of available results is larger than `maxResults`, Compute Engine returns a `
24572
+ # nextPageToken` that can be used to get the next page of results in subsequent
24573
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24574
+ # @param [String] order_by
24575
+ # Sorts list results by a certain order. By default, results are returned in
24576
+ # alphanumerical order based on the resource name. You can also sort results in
24577
+ # descending order based on the creation timestamp using `orderBy="
24578
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
24579
+ # field in reverse chronological order (newest result first). Use this to sort
24580
+ # resources like operations so that the newest operation is returned first.
24581
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24582
+ # @param [String] page_token
24583
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24584
+ # by a previous list request to get the next page of results.
24585
+ # @param [String] parent_id
24586
+ # Parent ID for this request.
24587
+ # @param [Boolean] return_partial_success
24588
+ # Opt-in for partial success behavior which provides partial results in case of
24589
+ # failure. The default value is false. For example, when partial success
24590
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
24591
+ # resources in the zone or no resources, with an error code.
24592
+ # @param [String] fields
24593
+ # Selector specifying which fields to include in a partial response.
24594
+ # @param [String] quota_user
24595
+ # Available to use for quota purposes for server-side applications. Can be any
24596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24597
+ # @param [String] user_ip
24598
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24599
+ # @param [Google::Apis::RequestOptions] options
24600
+ # Request-specific options
24601
+ #
24602
+ # @yield [result, err] Result & error if block supplied
24603
+ # @yieldparam result [Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object
24604
+ # @yieldparam err [StandardError] error object if request failed
24605
+ #
24606
+ # @return [Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
24607
+ #
24608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24611
+ def list_organization_security_policy_preconfigured_expression_sets(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24612
+ command = make_simple_command(:get, 'locations/global/securityPolicies/listPreconfiguredExpressionSets', options)
24613
+ command.response_representation = Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation
24614
+ command.response_class = Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse
24615
+ command.query['filter'] = filter unless filter.nil?
24616
+ command.query['maxResults'] = max_results unless max_results.nil?
24617
+ command.query['orderBy'] = order_by unless order_by.nil?
24618
+ command.query['pageToken'] = page_token unless page_token.nil?
24619
+ command.query['parentId'] = parent_id unless parent_id.nil?
24620
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24621
+ command.query['fields'] = fields unless fields.nil?
24622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24623
+ command.query['userIp'] = user_ip unless user_ip.nil?
24624
+ execute_or_queue_command(command, &block)
24625
+ end
24626
+
24627
+ # Moves the specified security policy. Use of this API to modify firewall
24628
+ # policies is deprecated. Use firewallPolicies.move instead.
24629
+ # @param [String] security_policy
24630
+ # Name of the security policy to update.
24631
+ # @param [String] parent_id
24632
+ # The new parent of the security policy.
24633
+ # @param [String] request_id
24634
+ # An optional request ID to identify requests. Specify a unique request ID so
24635
+ # that if you must retry your request, the server will know to ignore the
24636
+ # request if it has already been completed. For example, consider a situation
24637
+ # where you make an initial request and the request times out. If you make the
24638
+ # request again with the same request ID, the server can check if original
24639
+ # operation with the same request ID was received, and if so, will ignore the
24640
+ # second request. This prevents clients from accidentally creating duplicate
24641
+ # commitments. The request ID must be a valid UUID with the exception that zero
24642
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24643
+ # @param [String] fields
24644
+ # Selector specifying which fields to include in a partial response.
24645
+ # @param [String] quota_user
24646
+ # Available to use for quota purposes for server-side applications. Can be any
24647
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24648
+ # @param [String] user_ip
24649
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24650
+ # @param [Google::Apis::RequestOptions] options
24651
+ # Request-specific options
24652
+ #
24653
+ # @yield [result, err] Result & error if block supplied
24654
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24655
+ # @yieldparam err [StandardError] error object if request failed
24656
+ #
24657
+ # @return [Google::Apis::ComputeV1::Operation]
24658
+ #
24659
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24660
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24661
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24662
+ def move_organization_security_policy(security_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24663
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options)
24664
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24665
+ command.response_class = Google::Apis::ComputeV1::Operation
24666
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24667
+ command.query['parentId'] = parent_id unless parent_id.nil?
24668
+ command.query['requestId'] = request_id unless request_id.nil?
24669
+ command.query['fields'] = fields unless fields.nil?
24670
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24671
+ command.query['userIp'] = user_ip unless user_ip.nil?
24672
+ execute_or_queue_command(command, &block)
24673
+ end
24674
+
24675
+ # Patches the specified policy with the data included in the request. Use of
24676
+ # this API to modify firewall policies is deprecated. Use firewallPolicies.patch
24677
+ # instead.
24678
+ # @param [String] security_policy
24679
+ # Name of the security policy to update.
24680
+ # @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
24681
+ # @param [String] request_id
24682
+ # An optional request ID to identify requests. Specify a unique request ID so
24683
+ # that if you must retry your request, the server will know to ignore the
24684
+ # request if it has already been completed. For example, consider a situation
24685
+ # where you make an initial request and the request times out. If you make the
24686
+ # request again with the same request ID, the server can check if original
24687
+ # operation with the same request ID was received, and if so, will ignore the
24688
+ # second request. This prevents clients from accidentally creating duplicate
24689
+ # commitments. The request ID must be a valid UUID with the exception that zero
24690
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24691
+ # @param [String] fields
24692
+ # Selector specifying which fields to include in a partial response.
24693
+ # @param [String] quota_user
24694
+ # Available to use for quota purposes for server-side applications. Can be any
24695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24696
+ # @param [String] user_ip
24697
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24698
+ # @param [Google::Apis::RequestOptions] options
24699
+ # Request-specific options
24700
+ #
24701
+ # @yield [result, err] Result & error if block supplied
24702
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24703
+ # @yieldparam err [StandardError] error object if request failed
24704
+ #
24705
+ # @return [Google::Apis::ComputeV1::Operation]
24706
+ #
24707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24710
+ def patch_organization_security_policy(security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24711
+ command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
24712
+ command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
24713
+ command.request_object = security_policy_object
24714
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24715
+ command.response_class = Google::Apis::ComputeV1::Operation
24716
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24717
+ command.query['requestId'] = request_id unless request_id.nil?
24718
+ command.query['fields'] = fields unless fields.nil?
24719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24720
+ command.query['userIp'] = user_ip unless user_ip.nil?
24721
+ execute_or_queue_command(command, &block)
24722
+ end
24723
+
24724
+ # Patches a rule at the specified priority. Use of this API to modify firewall
24725
+ # policies is deprecated. Use firewallPolicies.patchRule instead.
24726
+ # @param [String] security_policy
24727
+ # Name of the security policy to update.
24728
+ # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
24729
+ # @param [Fixnum] priority
24730
+ # The priority of the rule to patch.
24731
+ # @param [String] request_id
24732
+ # An optional request ID to identify requests. Specify a unique request ID so
24733
+ # that if you must retry your request, the server will know to ignore the
24734
+ # request if it has already been completed. For example, consider a situation
24735
+ # where you make an initial request and the request times out. If you make the
24736
+ # request again with the same request ID, the server can check if original
24737
+ # operation with the same request ID was received, and if so, will ignore the
24738
+ # second request. This prevents clients from accidentally creating duplicate
24739
+ # commitments. The request ID must be a valid UUID with the exception that zero
24740
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24741
+ # @param [String] fields
24742
+ # Selector specifying which fields to include in a partial response.
24743
+ # @param [String] quota_user
24744
+ # Available to use for quota purposes for server-side applications. Can be any
24745
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24746
+ # @param [String] user_ip
24747
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24748
+ # @param [Google::Apis::RequestOptions] options
24749
+ # Request-specific options
24750
+ #
24751
+ # @yield [result, err] Result & error if block supplied
24752
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24753
+ # @yieldparam err [StandardError] error object if request failed
24754
+ #
24755
+ # @return [Google::Apis::ComputeV1::Operation]
24756
+ #
24757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24760
+ def patch_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24761
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
24762
+ command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
24763
+ command.request_object = security_policy_rule_object
24764
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24765
+ command.response_class = Google::Apis::ComputeV1::Operation
24766
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24767
+ command.query['priority'] = priority unless priority.nil?
24768
+ command.query['requestId'] = request_id unless request_id.nil?
24769
+ command.query['fields'] = fields unless fields.nil?
24770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24771
+ command.query['userIp'] = user_ip unless user_ip.nil?
24772
+ execute_or_queue_command(command, &block)
24773
+ end
24774
+
24775
+ # Removes an association for the specified security policy. Use of this API to
24776
+ # modify firewall policies is deprecated. Use firewallPolicies.removeAssociation
24777
+ # instead if possible.
24778
+ # @param [String] security_policy
24779
+ # Name of the security policy to update.
24780
+ # @param [String] name
24781
+ # Name for the attachment that will be removed.
24782
+ # @param [String] request_id
24783
+ # An optional request ID to identify requests. Specify a unique request ID so
24784
+ # that if you must retry your request, the server will know to ignore the
24785
+ # request if it has already been completed. For example, consider a situation
24786
+ # where you make an initial request and the request times out. If you make the
24787
+ # request again with the same request ID, the server can check if original
24788
+ # operation with the same request ID was received, and if so, will ignore the
24789
+ # second request. This prevents clients from accidentally creating duplicate
24790
+ # commitments. The request ID must be a valid UUID with the exception that zero
24791
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24792
+ # @param [String] fields
24793
+ # Selector specifying which fields to include in a partial response.
24794
+ # @param [String] quota_user
24795
+ # Available to use for quota purposes for server-side applications. Can be any
24796
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24797
+ # @param [String] user_ip
24798
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24799
+ # @param [Google::Apis::RequestOptions] options
24800
+ # Request-specific options
24801
+ #
24802
+ # @yield [result, err] Result & error if block supplied
24803
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24804
+ # @yieldparam err [StandardError] error object if request failed
24805
+ #
24806
+ # @return [Google::Apis::ComputeV1::Operation]
24807
+ #
24808
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24809
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24810
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24811
+ def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24812
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
24813
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24814
+ command.response_class = Google::Apis::ComputeV1::Operation
24815
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24816
+ command.query['name'] = name unless name.nil?
24817
+ command.query['requestId'] = request_id unless request_id.nil?
24818
+ command.query['fields'] = fields unless fields.nil?
24819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24820
+ command.query['userIp'] = user_ip unless user_ip.nil?
24821
+ execute_or_queue_command(command, &block)
24822
+ end
24823
+
24824
+ # Deletes a rule at the specified priority.
24825
+ # @param [String] security_policy
24826
+ # Name of the security policy to update.
24827
+ # @param [Fixnum] priority
24828
+ # The priority of the rule to remove from the security policy.
24829
+ # @param [String] request_id
24830
+ # An optional request ID to identify requests. Specify a unique request ID so
24831
+ # that if you must retry your request, the server will know to ignore the
24832
+ # request if it has already been completed. For example, consider a situation
24833
+ # where you make an initial request and the request times out. If you make the
24834
+ # request again with the same request ID, the server can check if original
24835
+ # operation with the same request ID was received, and if so, will ignore the
24836
+ # second request. This prevents clients from accidentally creating duplicate
24837
+ # commitments. The request ID must be a valid UUID with the exception that zero
24838
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24839
+ # @param [String] fields
24840
+ # Selector specifying which fields to include in a partial response.
24841
+ # @param [String] quota_user
24842
+ # Available to use for quota purposes for server-side applications. Can be any
24843
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24844
+ # @param [String] user_ip
24845
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24846
+ # @param [Google::Apis::RequestOptions] options
24847
+ # Request-specific options
24848
+ #
24849
+ # @yield [result, err] Result & error if block supplied
24850
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
24851
+ # @yieldparam err [StandardError] error object if request failed
24852
+ #
24853
+ # @return [Google::Apis::ComputeV1::Operation]
24854
+ #
24855
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24856
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24857
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24858
+ def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24859
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
24860
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24861
+ command.response_class = Google::Apis::ComputeV1::Operation
24862
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24863
+ command.query['priority'] = priority unless priority.nil?
24864
+ command.query['requestId'] = request_id unless request_id.nil?
24865
+ command.query['fields'] = fields unless fields.nil?
24866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24867
+ command.query['userIp'] = user_ip unless user_ip.nil?
24868
+ execute_or_queue_command(command, &block)
24869
+ end
24870
+
24871
+ # Retrieves an aggregated list of packetMirrorings. To prevent failure, Google
24872
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
24873
+ # @param [String] project
24874
+ # Project ID for this request.
24020
24875
  # @param [String] filter
24021
24876
  # A filter expression that filters resources listed in the response. Most
24022
24877
  # Compute resources support two types of filter expressions: expressions that
@@ -24153,13 +25008,103 @@ module Google
24153
25008
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24154
25009
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24155
25010
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24156
- def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24157
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options)
25011
+ def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25012
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options)
25013
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25014
+ command.response_class = Google::Apis::ComputeV1::Operation
25015
+ command.params['project'] = project unless project.nil?
25016
+ command.params['region'] = region unless region.nil?
25017
+ command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil?
25018
+ command.query['requestId'] = request_id unless request_id.nil?
25019
+ command.query['fields'] = fields unless fields.nil?
25020
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25021
+ command.query['userIp'] = user_ip unless user_ip.nil?
25022
+ execute_or_queue_command(command, &block)
25023
+ end
25024
+
25025
+ # Returns the specified PacketMirroring resource.
25026
+ # @param [String] project
25027
+ # Project ID for this request.
25028
+ # @param [String] region
25029
+ # Name of the region for this request.
25030
+ # @param [String] packet_mirroring
25031
+ # Name of the PacketMirroring resource to return.
25032
+ # @param [String] fields
25033
+ # Selector specifying which fields to include in a partial response.
25034
+ # @param [String] quota_user
25035
+ # Available to use for quota purposes for server-side applications. Can be any
25036
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25037
+ # @param [String] user_ip
25038
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25039
+ # @param [Google::Apis::RequestOptions] options
25040
+ # Request-specific options
25041
+ #
25042
+ # @yield [result, err] Result & error if block supplied
25043
+ # @yieldparam result [Google::Apis::ComputeV1::PacketMirroring] parsed result object
25044
+ # @yieldparam err [StandardError] error object if request failed
25045
+ #
25046
+ # @return [Google::Apis::ComputeV1::PacketMirroring]
25047
+ #
25048
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25049
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25050
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25051
+ def get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25052
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options)
25053
+ command.response_representation = Google::Apis::ComputeV1::PacketMirroring::Representation
25054
+ command.response_class = Google::Apis::ComputeV1::PacketMirroring
25055
+ command.params['project'] = project unless project.nil?
25056
+ command.params['region'] = region unless region.nil?
25057
+ command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil?
25058
+ command.query['fields'] = fields unless fields.nil?
25059
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25060
+ command.query['userIp'] = user_ip unless user_ip.nil?
25061
+ execute_or_queue_command(command, &block)
25062
+ end
25063
+
25064
+ # Creates a PacketMirroring resource in the specified project and region using
25065
+ # the data included in the request.
25066
+ # @param [String] project
25067
+ # Project ID for this request.
25068
+ # @param [String] region
25069
+ # Name of the region for this request.
25070
+ # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_object
25071
+ # @param [String] request_id
25072
+ # An optional request ID to identify requests. Specify a unique request ID so
25073
+ # that if you must retry your request, the server will know to ignore the
25074
+ # request if it has already been completed. For example, consider a situation
25075
+ # where you make an initial request and the request times out. If you make the
25076
+ # request again with the same request ID, the server can check if original
25077
+ # operation with the same request ID was received, and if so, will ignore the
25078
+ # second request. This prevents clients from accidentally creating duplicate
25079
+ # commitments. The request ID must be a valid UUID with the exception that zero
25080
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25081
+ # @param [String] fields
25082
+ # Selector specifying which fields to include in a partial response.
25083
+ # @param [String] quota_user
25084
+ # Available to use for quota purposes for server-side applications. Can be any
25085
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25086
+ # @param [String] user_ip
25087
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25088
+ # @param [Google::Apis::RequestOptions] options
25089
+ # Request-specific options
25090
+ #
25091
+ # @yield [result, err] Result & error if block supplied
25092
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25093
+ # @yieldparam err [StandardError] error object if request failed
25094
+ #
25095
+ # @return [Google::Apis::ComputeV1::Operation]
25096
+ #
25097
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25098
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25099
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25100
+ def insert_packet_mirroring(project, region, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25101
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings', options)
25102
+ command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation
25103
+ command.request_object = packet_mirroring_object
24158
25104
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24159
25105
  command.response_class = Google::Apis::ComputeV1::Operation
24160
25106
  command.params['project'] = project unless project.nil?
24161
25107
  command.params['region'] = region unless region.nil?
24162
- command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil?
24163
25108
  command.query['requestId'] = request_id unless request_id.nil?
24164
25109
  command.query['fields'] = fields unless fields.nil?
24165
25110
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24167,13 +25112,65 @@ module Google
24167
25112
  execute_or_queue_command(command, &block)
24168
25113
  end
24169
25114
 
24170
- # Returns the specified PacketMirroring resource.
25115
+ # Retrieves a list of PacketMirroring resources available to the specified
25116
+ # project and region.
24171
25117
  # @param [String] project
24172
25118
  # Project ID for this request.
24173
25119
  # @param [String] region
24174
25120
  # Name of the region for this request.
24175
- # @param [String] packet_mirroring
24176
- # Name of the PacketMirroring resource to return.
25121
+ # @param [String] filter
25122
+ # A filter expression that filters resources listed in the response. Most
25123
+ # Compute resources support two types of filter expressions: expressions that
25124
+ # support regular expressions and expressions that follow API improvement
25125
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
25126
+ # request. If you want to use AIP-160, your expression must specify the field
25127
+ # name, an operator, and the value that you want to use for filtering. The value
25128
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
25129
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
25130
+ # Engine instances, you can exclude instances named `example-instance` by
25131
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
25132
+ # whether a key has been defined. For example, to find all objects with `owner`
25133
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
25134
+ # example, you could specify `scheduling.automaticRestart = false` to include
25135
+ # instances only if they are not scheduled for automatic restarts. You can use
25136
+ # filtering on nested fields to filter based on resource labels. To filter on
25137
+ # multiple expressions, provide each separate expression within parentheses. For
25138
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
25139
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
25140
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
25141
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
25142
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
25143
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
25144
+ # un-parenthesized expression with or without quotes or against multiple
25145
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
25146
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
25147
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
25148
+ # interpreted as a regular expression using Google RE2 library syntax. The
25149
+ # literal value must match the entire field. For example, to filter for
25150
+ # instances that do not end with name "instance", you would use `name ne .*
25151
+ # instance`. You cannot combine constraints on multiple fields using regular
25152
+ # expressions.
25153
+ # @param [Fixnum] max_results
25154
+ # The maximum number of results per page that should be returned. If the number
25155
+ # of available results is larger than `maxResults`, Compute Engine returns a `
25156
+ # nextPageToken` that can be used to get the next page of results in subsequent
25157
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25158
+ # @param [String] order_by
25159
+ # Sorts list results by a certain order. By default, results are returned in
25160
+ # alphanumerical order based on the resource name. You can also sort results in
25161
+ # descending order based on the creation timestamp using `orderBy="
25162
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
25163
+ # field in reverse chronological order (newest result first). Use this to sort
25164
+ # resources like operations so that the newest operation is returned first.
25165
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25166
+ # @param [String] page_token
25167
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25168
+ # by a previous list request to get the next page of results.
25169
+ # @param [Boolean] return_partial_success
25170
+ # Opt-in for partial success behavior which provides partial results in case of
25171
+ # failure. The default value is false. For example, when partial success
25172
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
25173
+ # resources in the zone or no resources, with an error code.
24177
25174
  # @param [String] fields
24178
25175
  # Selector specifying which fields to include in a partial response.
24179
25176
  # @param [String] quota_user
@@ -24185,33 +25182,40 @@ module Google
24185
25182
  # Request-specific options
24186
25183
  #
24187
25184
  # @yield [result, err] Result & error if block supplied
24188
- # @yieldparam result [Google::Apis::ComputeV1::PacketMirroring] parsed result object
25185
+ # @yieldparam result [Google::Apis::ComputeV1::PacketMirroringList] parsed result object
24189
25186
  # @yieldparam err [StandardError] error object if request failed
24190
25187
  #
24191
- # @return [Google::Apis::ComputeV1::PacketMirroring]
25188
+ # @return [Google::Apis::ComputeV1::PacketMirroringList]
24192
25189
  #
24193
25190
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24194
25191
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24195
25192
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24196
- def get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24197
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options)
24198
- command.response_representation = Google::Apis::ComputeV1::PacketMirroring::Representation
24199
- command.response_class = Google::Apis::ComputeV1::PacketMirroring
25193
+ def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25194
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings', options)
25195
+ command.response_representation = Google::Apis::ComputeV1::PacketMirroringList::Representation
25196
+ command.response_class = Google::Apis::ComputeV1::PacketMirroringList
24200
25197
  command.params['project'] = project unless project.nil?
24201
25198
  command.params['region'] = region unless region.nil?
24202
- command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil?
25199
+ command.query['filter'] = filter unless filter.nil?
25200
+ command.query['maxResults'] = max_results unless max_results.nil?
25201
+ command.query['orderBy'] = order_by unless order_by.nil?
25202
+ command.query['pageToken'] = page_token unless page_token.nil?
25203
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24203
25204
  command.query['fields'] = fields unless fields.nil?
24204
25205
  command.query['quotaUser'] = quota_user unless quota_user.nil?
24205
25206
  command.query['userIp'] = user_ip unless user_ip.nil?
24206
25207
  execute_or_queue_command(command, &block)
24207
25208
  end
24208
25209
 
24209
- # Creates a PacketMirroring resource in the specified project and region using
24210
- # the data included in the request.
25210
+ # Patches the specified PacketMirroring resource with the data included in the
25211
+ # request. This method supports PATCH semantics and uses JSON merge patch format
25212
+ # and processing rules.
24211
25213
  # @param [String] project
24212
25214
  # Project ID for this request.
24213
25215
  # @param [String] region
24214
25216
  # Name of the region for this request.
25217
+ # @param [String] packet_mirroring
25218
+ # Name of the PacketMirroring resource to patch.
24215
25219
  # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_object
24216
25220
  # @param [String] request_id
24217
25221
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -24242,14 +25246,15 @@ module Google
24242
25246
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24243
25247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24244
25248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24245
- def insert_packet_mirroring(project, region, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24246
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings', options)
25249
+ def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25250
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options)
24247
25251
  command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation
24248
25252
  command.request_object = packet_mirroring_object
24249
25253
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24250
25254
  command.response_class = Google::Apis::ComputeV1::Operation
24251
25255
  command.params['project'] = project unless project.nil?
24252
25256
  command.params['region'] = region unless region.nil?
25257
+ command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil?
24253
25258
  command.query['requestId'] = request_id unless request_id.nil?
24254
25259
  command.query['fields'] = fields unless fields.nil?
24255
25260
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24257,12 +25262,87 @@ module Google
24257
25262
  execute_or_queue_command(command, &block)
24258
25263
  end
24259
25264
 
24260
- # Retrieves a list of PacketMirroring resources available to the specified
24261
- # project and region.
25265
+ # Returns permissions that a caller has on the specified resource.
24262
25266
  # @param [String] project
24263
25267
  # Project ID for this request.
24264
25268
  # @param [String] region
24265
- # Name of the region for this request.
25269
+ # The name of the region for this request.
25270
+ # @param [String] resource
25271
+ # Name or id of the resource for this request.
25272
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
25273
+ # @param [String] fields
25274
+ # Selector specifying which fields to include in a partial response.
25275
+ # @param [String] quota_user
25276
+ # Available to use for quota purposes for server-side applications. Can be any
25277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25278
+ # @param [String] user_ip
25279
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25280
+ # @param [Google::Apis::RequestOptions] options
25281
+ # Request-specific options
25282
+ #
25283
+ # @yield [result, err] Result & error if block supplied
25284
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
25285
+ # @yieldparam err [StandardError] error object if request failed
25286
+ #
25287
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
25288
+ #
25289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25292
+ def test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25293
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options)
25294
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
25295
+ command.request_object = test_permissions_request_object
25296
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
25297
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
25298
+ command.params['project'] = project unless project.nil?
25299
+ command.params['region'] = region unless region.nil?
25300
+ command.params['resource'] = resource unless resource.nil?
25301
+ command.query['fields'] = fields unless fields.nil?
25302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25303
+ command.query['userIp'] = user_ip unless user_ip.nil?
25304
+ execute_or_queue_command(command, &block)
25305
+ end
25306
+
25307
+ # Returns the details of the given PreviewFeature.
25308
+ # @param [String] project
25309
+ # Project ID for this request.
25310
+ # @param [String] preview_feature
25311
+ # Name of the PreviewFeature for this request.
25312
+ # @param [String] fields
25313
+ # Selector specifying which fields to include in a partial response.
25314
+ # @param [String] quota_user
25315
+ # Available to use for quota purposes for server-side applications. Can be any
25316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25317
+ # @param [String] user_ip
25318
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25319
+ # @param [Google::Apis::RequestOptions] options
25320
+ # Request-specific options
25321
+ #
25322
+ # @yield [result, err] Result & error if block supplied
25323
+ # @yieldparam result [Google::Apis::ComputeV1::PreviewFeature] parsed result object
25324
+ # @yieldparam err [StandardError] error object if request failed
25325
+ #
25326
+ # @return [Google::Apis::ComputeV1::PreviewFeature]
25327
+ #
25328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25331
+ def get_preview_feature(project, preview_feature, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25332
+ command = make_simple_command(:get, 'projects/{project}/global/previewFeatures/{previewFeature}', options)
25333
+ command.response_representation = Google::Apis::ComputeV1::PreviewFeature::Representation
25334
+ command.response_class = Google::Apis::ComputeV1::PreviewFeature
25335
+ command.params['project'] = project unless project.nil?
25336
+ command.params['previewFeature'] = preview_feature unless preview_feature.nil?
25337
+ command.query['fields'] = fields unless fields.nil?
25338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25339
+ command.query['userIp'] = user_ip unless user_ip.nil?
25340
+ execute_or_queue_command(command, &block)
25341
+ end
25342
+
25343
+ # Returns the details of the given PreviewFeature.
25344
+ # @param [String] project
25345
+ # Project ID for this request.
24266
25346
  # @param [String] filter
24267
25347
  # A filter expression that filters resources listed in the response. Most
24268
25348
  # Compute resources support two types of filter expressions: expressions that
@@ -24327,20 +25407,19 @@ module Google
24327
25407
  # Request-specific options
24328
25408
  #
24329
25409
  # @yield [result, err] Result & error if block supplied
24330
- # @yieldparam result [Google::Apis::ComputeV1::PacketMirroringList] parsed result object
25410
+ # @yieldparam result [Google::Apis::ComputeV1::PreviewFeatureList] parsed result object
24331
25411
  # @yieldparam err [StandardError] error object if request failed
24332
25412
  #
24333
- # @return [Google::Apis::ComputeV1::PacketMirroringList]
25413
+ # @return [Google::Apis::ComputeV1::PreviewFeatureList]
24334
25414
  #
24335
25415
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24336
25416
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24337
25417
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24338
- def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24339
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings', options)
24340
- command.response_representation = Google::Apis::ComputeV1::PacketMirroringList::Representation
24341
- command.response_class = Google::Apis::ComputeV1::PacketMirroringList
25418
+ def list_preview_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25419
+ command = make_simple_command(:get, 'projects/{project}/global/previewFeatures', options)
25420
+ command.response_representation = Google::Apis::ComputeV1::PreviewFeatureList::Representation
25421
+ command.response_class = Google::Apis::ComputeV1::PreviewFeatureList
24342
25422
  command.params['project'] = project unless project.nil?
24343
- command.params['region'] = region unless region.nil?
24344
25423
  command.query['filter'] = filter unless filter.nil?
24345
25424
  command.query['maxResults'] = max_results unless max_results.nil?
24346
25425
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -24352,16 +25431,13 @@ module Google
24352
25431
  execute_or_queue_command(command, &block)
24353
25432
  end
24354
25433
 
24355
- # Patches the specified PacketMirroring resource with the data included in the
24356
- # request. This method supports PATCH semantics and uses JSON merge patch format
24357
- # and processing rules.
25434
+ # Patches the given PreviewFeature. This method is used to enable or disable a
25435
+ # PreviewFeature.
24358
25436
  # @param [String] project
24359
25437
  # Project ID for this request.
24360
- # @param [String] region
24361
- # Name of the region for this request.
24362
- # @param [String] packet_mirroring
24363
- # Name of the PacketMirroring resource to patch.
24364
- # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_object
25438
+ # @param [String] preview_feature
25439
+ # Name of the PreviewFeature for this request.
25440
+ # @param [Google::Apis::ComputeV1::PreviewFeature] preview_feature_object
24365
25441
  # @param [String] request_id
24366
25442
  # An optional request ID to identify requests. Specify a unique request ID so
24367
25443
  # that if you must retry your request, the server will know to ignore the
@@ -24391,15 +25467,14 @@ module Google
24391
25467
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24392
25468
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24393
25469
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24394
- def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24395
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options)
24396
- command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation
24397
- command.request_object = packet_mirroring_object
25470
+ def update_preview_feature(project, preview_feature, preview_feature_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25471
+ command = make_simple_command(:patch, 'projects/{project}/global/previewFeatures/{previewFeature}', options)
25472
+ command.request_representation = Google::Apis::ComputeV1::PreviewFeature::Representation
25473
+ command.request_object = preview_feature_object
24398
25474
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
24399
25475
  command.response_class = Google::Apis::ComputeV1::Operation
24400
25476
  command.params['project'] = project unless project.nil?
24401
- command.params['region'] = region unless region.nil?
24402
- command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil?
25477
+ command.params['previewFeature'] = preview_feature unless preview_feature.nil?
24403
25478
  command.query['requestId'] = request_id unless request_id.nil?
24404
25479
  command.query['fields'] = fields unless fields.nil?
24405
25480
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24407,48 +25482,6 @@ module Google
24407
25482
  execute_or_queue_command(command, &block)
24408
25483
  end
24409
25484
 
24410
- # Returns permissions that a caller has on the specified resource.
24411
- # @param [String] project
24412
- # Project ID for this request.
24413
- # @param [String] region
24414
- # The name of the region for this request.
24415
- # @param [String] resource
24416
- # Name or id of the resource for this request.
24417
- # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
24418
- # @param [String] fields
24419
- # Selector specifying which fields to include in a partial response.
24420
- # @param [String] quota_user
24421
- # Available to use for quota purposes for server-side applications. Can be any
24422
- # arbitrary string assigned to a user, but should not exceed 40 characters.
24423
- # @param [String] user_ip
24424
- # Legacy name for parameter that has been superseded by `quotaUser`.
24425
- # @param [Google::Apis::RequestOptions] options
24426
- # Request-specific options
24427
- #
24428
- # @yield [result, err] Result & error if block supplied
24429
- # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
24430
- # @yieldparam err [StandardError] error object if request failed
24431
- #
24432
- # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
24433
- #
24434
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24435
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24436
- # @raise [Google::Apis::AuthorizationError] Authorization is required
24437
- def test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24438
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options)
24439
- command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
24440
- command.request_object = test_permissions_request_object
24441
- command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
24442
- command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
24443
- command.params['project'] = project unless project.nil?
24444
- command.params['region'] = region unless region.nil?
24445
- command.params['resource'] = resource unless resource.nil?
24446
- command.query['fields'] = fields unless fields.nil?
24447
- command.query['quotaUser'] = quota_user unless quota_user.nil?
24448
- command.query['userIp'] = user_ip unless user_ip.nil?
24449
- execute_or_queue_command(command, &block)
24450
- end
24451
-
24452
25485
  # Disable this project as a shared VPC host project.
24453
25486
  # @param [String] project
24454
25487
  # Project ID for this request.
@@ -36457,6 +37490,64 @@ module Google
36457
37490
  execute_or_queue_command(command, &block)
36458
37491
  end
36459
37492
 
37493
+ # Allows customers to report a faulty subBlock.
37494
+ # @param [String] project
37495
+ # Project ID for this request.
37496
+ # @param [String] zone
37497
+ # Name of the zone for this request. Zone name should conform to RFC1035.
37498
+ # @param [String] parent_name
37499
+ # The name of the parent reservation and parent block. In the format of
37500
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
37501
+ # @param [String] reservation_sub_block
37502
+ # The name of the reservation subBlock. Name should conform to RFC1035 or be a
37503
+ # resource ID.
37504
+ # @param [Google::Apis::ComputeV1::ReservationSubBlocksReportFaultyRequest] reservation_sub_blocks_report_faulty_request_object
37505
+ # @param [String] request_id
37506
+ # An optional request ID to identify requests. Specify a unique request ID so
37507
+ # that if you must retry your request, the server will know to ignore the
37508
+ # request if it has already been completed. For example, consider a situation
37509
+ # where you make an initial request and the request times out. If you make the
37510
+ # request again with the same request ID, the server can check if original
37511
+ # operation with the same request ID was received, and if so, will ignore the
37512
+ # second request. This prevents clients from accidentally creating duplicate
37513
+ # commitments. The request ID must be a valid UUID with the exception that zero
37514
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
37515
+ # @param [String] fields
37516
+ # Selector specifying which fields to include in a partial response.
37517
+ # @param [String] quota_user
37518
+ # Available to use for quota purposes for server-side applications. Can be any
37519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
37520
+ # @param [String] user_ip
37521
+ # Legacy name for parameter that has been superseded by `quotaUser`.
37522
+ # @param [Google::Apis::RequestOptions] options
37523
+ # Request-specific options
37524
+ #
37525
+ # @yield [result, err] Result & error if block supplied
37526
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
37527
+ # @yieldparam err [StandardError] error object if request failed
37528
+ #
37529
+ # @return [Google::Apis::ComputeV1::Operation]
37530
+ #
37531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37534
+ def report_reservation_sub_block_faulty(project, zone, parent_name, reservation_sub_block, reservation_sub_blocks_report_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37535
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty', options)
37536
+ command.request_representation = Google::Apis::ComputeV1::ReservationSubBlocksReportFaultyRequest::Representation
37537
+ command.request_object = reservation_sub_blocks_report_faulty_request_object
37538
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
37539
+ command.response_class = Google::Apis::ComputeV1::Operation
37540
+ command.params['project'] = project unless project.nil?
37541
+ command.params['zone'] = zone unless zone.nil?
37542
+ command.params['parentName'] = parent_name unless parent_name.nil?
37543
+ command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
37544
+ command.query['requestId'] = request_id unless request_id.nil?
37545
+ command.query['fields'] = fields unless fields.nil?
37546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37547
+ command.query['userIp'] = user_ip unless user_ip.nil?
37548
+ execute_or_queue_command(command, &block)
37549
+ end
37550
+
36460
37551
  # Retrieves an aggregated list of reservations. To prevent failure, Google
36461
37552
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
36462
37553
  # @param [String] project