google-apis-compute_alpha 0.95.0 → 0.96.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a238f940627373a11859c46e678073c112e5c53dd18a3e131969cc20b50ff077
4
- data.tar.gz: 2cee3521a4d7a0cc451b24a7c3f0fa564ab8e3f809bee470f386db418db0d2ed
3
+ metadata.gz: 9048b0672bf79876660c692161f0c8b43df6c3b8499cff78376beb0e9303b3bd
4
+ data.tar.gz: ddf19c8d18e22f727a789623494b5cfa8184d4801d2564300c0cd5d71968e9af
5
5
  SHA512:
6
- metadata.gz: 0ff76c4ca7e9b518ce10f9e789c14b83ac1159f6bc13562c4daa77220e07a31f76a014dfc39be2fffa0a43e0ab2412a3336b05124441bebef022be6637689565
7
- data.tar.gz: 42d6b334257a0cf19dbbf261a8b1cc9f04875930fc8996ab68bf75d05116cec6164afcca86f0fd252ff10b202aa51accb274fdf2961af300e928d9a63cebcf95
6
+ metadata.gz: fec8c660db8f73cf95337541d51893f7e346d59bf57ba215ad926c9eec79ab7b3d5fdb98a0cf8a77c672f7adda9892dcc276309785ea96bfc18ee92582bcda35
7
+ data.tar.gz: 12d76d75719c3dc25e514bbf23ed7b5623569c5788769260aee802d9deb05e2b9eeeeb4ab0368416d3068d47c1a82b65db6fb7e2ae1abfbbbb3b9753a089924e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.96.0 (2024-03-31)
4
+
5
+ * Regenerated from discovery document revision 20240324
6
+
3
7
  ### v0.95.0 (2024-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20240312
@@ -3667,6 +3667,30 @@ module Google
3667
3667
  attr_accessor :enable_cdn
3668
3668
  alias_method :enable_cdn?, :enable_cdn
3669
3669
 
3670
+ # Specifies the canary migration state. Possible values are PREPARE, TEST, and
3671
+ # FINALIZE. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state
3672
+ # must be changed to PREPARE. The state must be changed to FINALIZE before the
3673
+ # loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST
3674
+ # state can be used to migrate traffic by percentage using
3675
+ # externalManagedMigrationTestingPercentage. Rolling back a migration requires
3676
+ # the states to be set in reverse order. So changing the scheme from
3677
+ # EXTERNAL_MANAGED to EXTERNAL requires the state to be set to FINALIZE at the
3678
+ # same time. Optionally, the TEST state can be used to migrate some traffic back
3679
+ # to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL.
3680
+ # Corresponds to the JSON property `externalManagedMigrationState`
3681
+ # @return [String]
3682
+ attr_accessor :external_managed_migration_state
3683
+
3684
+ # Determines the fraction of requests that should be processed by the Global
3685
+ # external Application Load Balancer. The value of this field must be in the
3686
+ # range [0, 100]. Session affinity options will slightly affect this routing
3687
+ # behavior, for more details, see: Session Affinity. This value is only used if
3688
+ # the loadBalancingScheme in the BackendService is set to EXTERNAL when using
3689
+ # the classic Application Load Balancer.
3690
+ # Corresponds to the JSON property `externalManagedMigrationTestingPercentage`
3691
+ # @return [Float]
3692
+ attr_accessor :external_managed_migration_testing_percentage
3693
+
3670
3694
  # For load balancers that have configurable failover: [Internal passthrough
3671
3695
  # Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/
3672
3696
  # failover-overview) and [external passthrough Network Load Balancers](https://
@@ -3969,6 +3993,8 @@ module Google
3969
3993
  @description = args[:description] if args.key?(:description)
3970
3994
  @edge_security_policy = args[:edge_security_policy] if args.key?(:edge_security_policy)
3971
3995
  @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
3996
+ @external_managed_migration_state = args[:external_managed_migration_state] if args.key?(:external_managed_migration_state)
3997
+ @external_managed_migration_testing_percentage = args[:external_managed_migration_testing_percentage] if args.key?(:external_managed_migration_testing_percentage)
3972
3998
  @failover_policy = args[:failover_policy] if args.key?(:failover_policy)
3973
3999
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
3974
4000
  @ha_policy = args[:ha_policy] if args.key?(:ha_policy)
@@ -8963,12 +8989,13 @@ module Google
8963
8989
  # @return [String]
8964
8990
  attr_accessor :domain
8965
8991
 
8966
- # Additional structured details about this error. Keys should match /[a-zA-Z0-9-
8967
- # _]/ and be limited to 64 characters in length. When identifying the current
8968
- # value of an exceeded limit, the units should be contained in the key, not the
8969
- # value. For example, rather than `"instanceLimit": "100/request"`, should be
8970
- # returned as, `"instanceLimitPerRequest": "100"`, if the client exceeds the
8971
- # number of instances that can be created in a single (batch) request.
8992
+ # Additional structured details about this error. Keys must match /a-z+/ but
8993
+ # should ideally be lowerCamelCase. Also they must be limited to 64 characters
8994
+ # in length. When identifying the current value of an exceeded limit, the units
8995
+ # should be contained in the key, not the value. For example, rather than `"
8996
+ # instanceLimit": "100/request"`, should be returned as, `"
8997
+ # instanceLimitPerRequest": "100"`, if the client exceeds the number of
8998
+ # instances that can be created in a single (batch) request.
8972
8999
  # Corresponds to the JSON property `metadatas`
8973
9000
  # @return [Hash<String,String>]
8974
9001
  attr_accessor :metadatas
@@ -10006,6 +10033,11 @@ module Google
10006
10033
  # @return [String]
10007
10034
  attr_accessor :name
10008
10035
 
10036
+ # A list of packet mirroring rules that belong to this policy.
10037
+ # Corresponds to the JSON property `packetMirroringRules`
10038
+ # @return [Array<Google::Apis::ComputeAlpha::FirewallPolicyRule>]
10039
+ attr_accessor :packet_mirroring_rules
10040
+
10009
10041
  # [Output Only] The parent of the firewall policy. This field is not applicable
10010
10042
  # to network firewall policies.
10011
10043
  # Corresponds to the JSON property `parent`
@@ -10082,6 +10114,7 @@ module Google
10082
10114
  @id = args[:id] if args.key?(:id)
10083
10115
  @kind = args[:kind] if args.key?(:kind)
10084
10116
  @name = args[:name] if args.key?(:name)
10117
+ @packet_mirroring_rules = args[:packet_mirroring_rules] if args.key?(:packet_mirroring_rules)
10085
10118
  @parent = args[:parent] if args.key?(:parent)
10086
10119
  @region = args[:region] if args.key?(:region)
10087
10120
  @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count)
@@ -10705,6 +10738,30 @@ module Google
10705
10738
  # @return [String]
10706
10739
  attr_accessor :description
10707
10740
 
10741
+ # Specifies the canary migration state for the backend buckets attached to this
10742
+ # forwarding rule. Possible values are PREPARE, TEST, and FINALIZE. To begin the
10743
+ # migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to
10744
+ # PREPARE. The state must be changed to FINALIZE before the loadBalancingScheme
10745
+ # can be changed to EXTERNAL_MANAGED. Optionally, the TEST state can be used to
10746
+ # migrate traffic to backend buckets attached to this forwarding rule by
10747
+ # percentage using externalManagedBackendBucketMigrationTestingPercentage.
10748
+ # Rolling back a migration requires the states to be set in reverse order. So
10749
+ # changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be
10750
+ # set to FINALIZE at the same time. Optionally, the TEST state can be used to
10751
+ # migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all
10752
+ # traffic back to EXTERNAL.
10753
+ # Corresponds to the JSON property `externalManagedBackendBucketMigrationState`
10754
+ # @return [String]
10755
+ attr_accessor :external_managed_backend_bucket_migration_state
10756
+
10757
+ # Determines the fraction of requests to backend buckets that should be
10758
+ # processed by the Global external Application Load Balancer. The value of this
10759
+ # field must be in the range [0, 100]. This value is only used if the
10760
+ # loadBalancingScheme is set to EXTERNAL (when using the Classic ALB).
10761
+ # Corresponds to the JSON property `externalManagedBackendBucketMigrationTestingPercentage`
10762
+ # @return [Float]
10763
+ attr_accessor :external_managed_backend_bucket_migration_testing_percentage
10764
+
10708
10765
  # Fingerprint of this resource. A hash of the contents stored in this object.
10709
10766
  # This field is used in optimistic locking. This field will be ignored when
10710
10767
  # inserting a ForwardingRule. Include the fingerprint in patch request to ensure
@@ -10981,6 +11038,8 @@ module Google
10981
11038
  @base_forwarding_rule = args[:base_forwarding_rule] if args.key?(:base_forwarding_rule)
10982
11039
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
10983
11040
  @description = args[:description] if args.key?(:description)
11041
+ @external_managed_backend_bucket_migration_state = args[:external_managed_backend_bucket_migration_state] if args.key?(:external_managed_backend_bucket_migration_state)
11042
+ @external_managed_backend_bucket_migration_testing_percentage = args[:external_managed_backend_bucket_migration_testing_percentage] if args.key?(:external_managed_backend_bucket_migration_testing_percentage)
10984
11043
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
10985
11044
  @id = args[:id] if args.key?(:id)
10986
11045
  @ip_collection = args[:ip_collection] if args.key?(:ip_collection)
@@ -18490,7 +18549,7 @@ module Google
18490
18549
  attr_accessor :is_stateful
18491
18550
  alias_method :is_stateful?, :is_stateful
18492
18551
 
18493
- # [Output Only] Status of per-instance configurations on the instance.
18552
+ # [Output Only] Status of per-instance configurations on the instances.
18494
18553
  # Corresponds to the JSON property `perInstanceConfigs`
18495
18554
  # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStatefulPerInstanceConfigs]
18496
18555
  attr_accessor :per_instance_configs
@@ -45620,10 +45679,10 @@ module Google
45620
45679
  # @return [String]
45621
45680
  attr_accessor :producer_forwarding_rule
45622
45681
 
45623
- # The number of consumer Network Connectivity Center spokes that connected
45624
- # Private Service Connect endpoints can be propagated to. This limit lets a
45625
- # service producer indirectly limit how many propagated Private Service Connect
45626
- # connections can be established to the producer's service attachment. If the
45682
+ # The number of consumer spokes that connected Private Service Connect endpoints
45683
+ # can be propagated to through Network Connectivity Center. This limit lets the
45684
+ # service producer limit how many propagated Private Service Connect connections
45685
+ # can be established to this service attachment from a single consumer. If the
45627
45686
  # connection preference of the service attachment is ACCEPT_MANUAL, the limit
45628
45687
  # applies to each project or network that is listed in the consumer accept list.
45629
45688
  # If the connection preference of the service attachment is ACCEPT_AUTOMATIC,
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeAlpha
18
18
  # Version of the google-apis-compute_alpha gem
19
- GEM_VERSION = "0.95.0"
19
+ GEM_VERSION = "0.96.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240312"
25
+ REVISION = "20240324"
26
26
  end
27
27
  end
28
28
  end
@@ -8464,6 +8464,8 @@ module Google
8464
8464
  property :description, as: 'description'
8465
8465
  property :edge_security_policy, as: 'edgeSecurityPolicy'
8466
8466
  property :enable_cdn, as: 'enableCDN'
8467
+ property :external_managed_migration_state, as: 'externalManagedMigrationState'
8468
+ property :external_managed_migration_testing_percentage, as: 'externalManagedMigrationTestingPercentage'
8467
8469
  property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy::Representation
8468
8470
 
8469
8471
  property :fingerprint, :base64 => true, as: 'fingerprint'
@@ -9937,6 +9939,8 @@ module Google
9937
9939
  property :id, :numeric_string => true, as: 'id'
9938
9940
  property :kind, as: 'kind'
9939
9941
  property :name, as: 'name'
9942
+ collection :packet_mirroring_rules, as: 'packetMirroringRules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
9943
+
9940
9944
  property :parent, as: 'parent'
9941
9945
  property :region, as: 'region'
9942
9946
  property :rule_tuple_count, as: 'ruleTupleCount'
@@ -10073,6 +10077,8 @@ module Google
10073
10077
  property :base_forwarding_rule, as: 'baseForwardingRule'
10074
10078
  property :creation_timestamp, as: 'creationTimestamp'
10075
10079
  property :description, as: 'description'
10080
+ property :external_managed_backend_bucket_migration_state, as: 'externalManagedBackendBucketMigrationState'
10081
+ property :external_managed_backend_bucket_migration_testing_percentage, as: 'externalManagedBackendBucketMigrationTestingPercentage'
10076
10082
  property :fingerprint, :base64 => true, as: 'fingerprint'
10077
10083
  property :id, :numeric_string => true, as: 'id'
10078
10084
  property :ip_collection, as: 'ipCollection'
@@ -4451,6 +4451,53 @@ module Google
4451
4451
  execute_or_queue_command(command, &block)
4452
4452
  end
4453
4453
 
4454
+ # Inserts a packet mirroring rule into a firewall policy.
4455
+ # @param [String] firewall_policy
4456
+ # Name of the firewall policy to update.
4457
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
4458
+ # @param [String] request_id
4459
+ # An optional request ID to identify requests. Specify a unique request ID so
4460
+ # that if you must retry your request, the server will know to ignore the
4461
+ # request if it has already been completed. For example, consider a situation
4462
+ # where you make an initial request and the request times out. If you make the
4463
+ # request again with the same request ID, the server can check if original
4464
+ # operation with the same request ID was received, and if so, will ignore the
4465
+ # second request. This prevents clients from accidentally creating duplicate
4466
+ # commitments. The request ID must be a valid UUID with the exception that zero
4467
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4468
+ # @param [String] fields
4469
+ # Selector specifying which fields to include in a partial response.
4470
+ # @param [String] quota_user
4471
+ # Available to use for quota purposes for server-side applications. Can be any
4472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4473
+ # @param [String] user_ip
4474
+ # Legacy name for parameter that has been superseded by `quotaUser`.
4475
+ # @param [Google::Apis::RequestOptions] options
4476
+ # Request-specific options
4477
+ #
4478
+ # @yield [result, err] Result & error if block supplied
4479
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
4480
+ # @yieldparam err [StandardError] error object if request failed
4481
+ #
4482
+ # @return [Google::Apis::ComputeAlpha::Operation]
4483
+ #
4484
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4485
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4486
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4487
+ def add_firewall_policy_packet_mirroring_rule(firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4488
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule', options)
4489
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
4490
+ command.request_object = firewall_policy_rule_object
4491
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
4492
+ command.response_class = Google::Apis::ComputeAlpha::Operation
4493
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
4494
+ command.query['requestId'] = request_id unless request_id.nil?
4495
+ command.query['fields'] = fields unless fields.nil?
4496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4497
+ command.query['userIp'] = user_ip unless user_ip.nil?
4498
+ execute_or_queue_command(command, &block)
4499
+ end
4500
+
4454
4501
  # Inserts a rule into a firewall policy.
4455
4502
  # @param [String] firewall_policy
4456
4503
  # Name of the firewall policy to update.
@@ -4695,6 +4742,42 @@ module Google
4695
4742
  execute_or_queue_command(command, &block)
4696
4743
  end
4697
4744
 
4745
+ # Gets a packet mirroring rule of the specified priority.
4746
+ # @param [String] firewall_policy
4747
+ # Name of the firewall policy to which the queried rule belongs.
4748
+ # @param [Fixnum] priority
4749
+ # The priority of the rule to get from the firewall policy.
4750
+ # @param [String] fields
4751
+ # Selector specifying which fields to include in a partial response.
4752
+ # @param [String] quota_user
4753
+ # Available to use for quota purposes for server-side applications. Can be any
4754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4755
+ # @param [String] user_ip
4756
+ # Legacy name for parameter that has been superseded by `quotaUser`.
4757
+ # @param [Google::Apis::RequestOptions] options
4758
+ # Request-specific options
4759
+ #
4760
+ # @yield [result, err] Result & error if block supplied
4761
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
4762
+ # @yieldparam err [StandardError] error object if request failed
4763
+ #
4764
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
4765
+ #
4766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4769
+ def get_firewall_policy_packet_mirroring_rule(firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4770
+ command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule', options)
4771
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
4772
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
4773
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
4774
+ command.query['priority'] = priority unless priority.nil?
4775
+ command.query['fields'] = fields unless fields.nil?
4776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4777
+ command.query['userIp'] = user_ip unless user_ip.nil?
4778
+ execute_or_queue_command(command, &block)
4779
+ end
4780
+
4698
4781
  # Gets a rule of the specified priority.
4699
4782
  # @param [String] firewall_policy
4700
4783
  # Name of the firewall policy to which the queried rule belongs.
@@ -5004,6 +5087,56 @@ module Google
5004
5087
  execute_or_queue_command(command, &block)
5005
5088
  end
5006
5089
 
5090
+ # Patches a packet mirroring rule of the specified priority.
5091
+ # @param [String] firewall_policy
5092
+ # Name of the firewall policy to update.
5093
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
5094
+ # @param [Fixnum] priority
5095
+ # The priority of the rule to patch.
5096
+ # @param [String] request_id
5097
+ # An optional request ID to identify requests. Specify a unique request ID so
5098
+ # that if you must retry your request, the server will know to ignore the
5099
+ # request if it has already been completed. For example, consider a situation
5100
+ # where you make an initial request and the request times out. If you make the
5101
+ # request again with the same request ID, the server can check if original
5102
+ # operation with the same request ID was received, and if so, will ignore the
5103
+ # second request. This prevents clients from accidentally creating duplicate
5104
+ # commitments. The request ID must be a valid UUID with the exception that zero
5105
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5106
+ # @param [String] fields
5107
+ # Selector specifying which fields to include in a partial response.
5108
+ # @param [String] quota_user
5109
+ # Available to use for quota purposes for server-side applications. Can be any
5110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5111
+ # @param [String] user_ip
5112
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5113
+ # @param [Google::Apis::RequestOptions] options
5114
+ # Request-specific options
5115
+ #
5116
+ # @yield [result, err] Result & error if block supplied
5117
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5118
+ # @yieldparam err [StandardError] error object if request failed
5119
+ #
5120
+ # @return [Google::Apis::ComputeAlpha::Operation]
5121
+ #
5122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5125
+ def patch_firewall_policy_packet_mirroring_rule(firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5126
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule', options)
5127
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
5128
+ command.request_object = firewall_policy_rule_object
5129
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5130
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5131
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
5132
+ command.query['priority'] = priority unless priority.nil?
5133
+ command.query['requestId'] = request_id unless request_id.nil?
5134
+ command.query['fields'] = fields unless fields.nil?
5135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5136
+ command.query['userIp'] = user_ip unless user_ip.nil?
5137
+ execute_or_queue_command(command, &block)
5138
+ end
5139
+
5007
5140
  # Patches a rule of the specified priority.
5008
5141
  # @param [String] firewall_policy
5009
5142
  # Name of the firewall policy to update.
@@ -5101,6 +5234,53 @@ module Google
5101
5234
  execute_or_queue_command(command, &block)
5102
5235
  end
5103
5236
 
5237
+ # Deletes a packet mirroring rule of the specified priority.
5238
+ # @param [String] firewall_policy
5239
+ # Name of the firewall policy to update.
5240
+ # @param [Fixnum] priority
5241
+ # The priority of the rule to remove from the firewall policy.
5242
+ # @param [String] request_id
5243
+ # An optional request ID to identify requests. Specify a unique request ID so
5244
+ # that if you must retry your request, the server will know to ignore the
5245
+ # request if it has already been completed. For example, consider a situation
5246
+ # where you make an initial request and the request times out. If you make the
5247
+ # request again with the same request ID, the server can check if original
5248
+ # operation with the same request ID was received, and if so, will ignore the
5249
+ # second request. This prevents clients from accidentally creating duplicate
5250
+ # commitments. The request ID must be a valid UUID with the exception that zero
5251
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5252
+ # @param [String] fields
5253
+ # Selector specifying which fields to include in a partial response.
5254
+ # @param [String] quota_user
5255
+ # Available to use for quota purposes for server-side applications. Can be any
5256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5257
+ # @param [String] user_ip
5258
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5259
+ # @param [Google::Apis::RequestOptions] options
5260
+ # Request-specific options
5261
+ #
5262
+ # @yield [result, err] Result & error if block supplied
5263
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5264
+ # @yieldparam err [StandardError] error object if request failed
5265
+ #
5266
+ # @return [Google::Apis::ComputeAlpha::Operation]
5267
+ #
5268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5271
+ def remove_firewall_policy_packet_mirroring_rule(firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5272
+ command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule', options)
5273
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5274
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5275
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
5276
+ command.query['priority'] = priority unless priority.nil?
5277
+ command.query['requestId'] = request_id unless request_id.nil?
5278
+ command.query['fields'] = fields unless fields.nil?
5279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5280
+ command.query['userIp'] = user_ip unless user_ip.nil?
5281
+ execute_or_queue_command(command, &block)
5282
+ end
5283
+
5104
5284
  # Deletes a rule of the specified priority.
5105
5285
  # @param [String] firewall_policy
5106
5286
  # Name of the firewall policy to update.
@@ -21239,6 +21419,64 @@ module Google
21239
21419
  execute_or_queue_command(command, &block)
21240
21420
  end
21241
21421
 
21422
+ # Inserts a packet mirroring rule into a firewall policy.
21423
+ # @param [String] project
21424
+ # Project ID for this request.
21425
+ # @param [String] firewall_policy
21426
+ # Name of the firewall policy to update.
21427
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
21428
+ # @param [Fixnum] max_priority
21429
+ # When rule.priority is not specified, auto choose a unused priority between
21430
+ # minPriority and maxPriority>. This field is exclusive with rule.priority.
21431
+ # @param [Fixnum] min_priority
21432
+ # When rule.priority is not specified, auto choose a unused priority between
21433
+ # minPriority and maxPriority>. This field is exclusive with rule.priority.
21434
+ # @param [String] request_id
21435
+ # An optional request ID to identify requests. Specify a unique request ID so
21436
+ # that if you must retry your request, the server will know to ignore the
21437
+ # request if it has already been completed. For example, consider a situation
21438
+ # where you make an initial request and the request times out. If you make the
21439
+ # request again with the same request ID, the server can check if original
21440
+ # operation with the same request ID was received, and if so, will ignore the
21441
+ # second request. This prevents clients from accidentally creating duplicate
21442
+ # commitments. The request ID must be a valid UUID with the exception that zero
21443
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
21444
+ # @param [String] fields
21445
+ # Selector specifying which fields to include in a partial response.
21446
+ # @param [String] quota_user
21447
+ # Available to use for quota purposes for server-side applications. Can be any
21448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21449
+ # @param [String] user_ip
21450
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21451
+ # @param [Google::Apis::RequestOptions] options
21452
+ # Request-specific options
21453
+ #
21454
+ # @yield [result, err] Result & error if block supplied
21455
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
21456
+ # @yieldparam err [StandardError] error object if request failed
21457
+ #
21458
+ # @return [Google::Apis::ComputeAlpha::Operation]
21459
+ #
21460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21463
+ def add_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, firewall_policy_rule_object = nil, max_priority: nil, min_priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21464
+ command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule', options)
21465
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
21466
+ command.request_object = firewall_policy_rule_object
21467
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
21468
+ command.response_class = Google::Apis::ComputeAlpha::Operation
21469
+ command.params['project'] = project unless project.nil?
21470
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
21471
+ command.query['maxPriority'] = max_priority unless max_priority.nil?
21472
+ command.query['minPriority'] = min_priority unless min_priority.nil?
21473
+ command.query['requestId'] = request_id unless request_id.nil?
21474
+ command.query['fields'] = fields unless fields.nil?
21475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21476
+ command.query['userIp'] = user_ip unless user_ip.nil?
21477
+ execute_or_queue_command(command, &block)
21478
+ end
21479
+
21242
21480
  # Inserts a rule into a firewall policy.
21243
21481
  # @param [String] project
21244
21482
  # Project ID for this request.
@@ -21509,6 +21747,45 @@ module Google
21509
21747
  execute_or_queue_command(command, &block)
21510
21748
  end
21511
21749
 
21750
+ # Gets a packet mirroring rule of the specified priority.
21751
+ # @param [String] project
21752
+ # Project ID for this request.
21753
+ # @param [String] firewall_policy
21754
+ # Name of the firewall policy to which the queried rule belongs.
21755
+ # @param [Fixnum] priority
21756
+ # The priority of the rule to get from the firewall policy.
21757
+ # @param [String] fields
21758
+ # Selector specifying which fields to include in a partial response.
21759
+ # @param [String] quota_user
21760
+ # Available to use for quota purposes for server-side applications. Can be any
21761
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21762
+ # @param [String] user_ip
21763
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21764
+ # @param [Google::Apis::RequestOptions] options
21765
+ # Request-specific options
21766
+ #
21767
+ # @yield [result, err] Result & error if block supplied
21768
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
21769
+ # @yieldparam err [StandardError] error object if request failed
21770
+ #
21771
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
21772
+ #
21773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21776
+ def get_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21777
+ command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule', options)
21778
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
21779
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
21780
+ command.params['project'] = project unless project.nil?
21781
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
21782
+ command.query['priority'] = priority unless priority.nil?
21783
+ command.query['fields'] = fields unless fields.nil?
21784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21785
+ command.query['userIp'] = user_ip unless user_ip.nil?
21786
+ execute_or_queue_command(command, &block)
21787
+ end
21788
+
21512
21789
  # Gets a rule of the specified priority.
21513
21790
  # @param [String] project
21514
21791
  # Project ID for this request.
@@ -21787,6 +22064,59 @@ module Google
21787
22064
  execute_or_queue_command(command, &block)
21788
22065
  end
21789
22066
 
22067
+ # Patches a packet mirroring rule of the specified priority.
22068
+ # @param [String] project
22069
+ # Project ID for this request.
22070
+ # @param [String] firewall_policy
22071
+ # Name of the firewall policy to update.
22072
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
22073
+ # @param [Fixnum] priority
22074
+ # The priority of the rule to patch.
22075
+ # @param [String] request_id
22076
+ # An optional request ID to identify requests. Specify a unique request ID so
22077
+ # that if you must retry your request, the server will know to ignore the
22078
+ # request if it has already been completed. For example, consider a situation
22079
+ # where you make an initial request and the request times out. If you make the
22080
+ # request again with the same request ID, the server can check if original
22081
+ # operation with the same request ID was received, and if so, will ignore the
22082
+ # second request. This prevents clients from accidentally creating duplicate
22083
+ # commitments. The request ID must be a valid UUID with the exception that zero
22084
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22085
+ # @param [String] fields
22086
+ # Selector specifying which fields to include in a partial response.
22087
+ # @param [String] quota_user
22088
+ # Available to use for quota purposes for server-side applications. Can be any
22089
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22090
+ # @param [String] user_ip
22091
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22092
+ # @param [Google::Apis::RequestOptions] options
22093
+ # Request-specific options
22094
+ #
22095
+ # @yield [result, err] Result & error if block supplied
22096
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
22097
+ # @yieldparam err [StandardError] error object if request failed
22098
+ #
22099
+ # @return [Google::Apis::ComputeAlpha::Operation]
22100
+ #
22101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22104
+ def patch_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22105
+ command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule', options)
22106
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
22107
+ command.request_object = firewall_policy_rule_object
22108
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
22109
+ command.response_class = Google::Apis::ComputeAlpha::Operation
22110
+ command.params['project'] = project unless project.nil?
22111
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
22112
+ command.query['priority'] = priority unless priority.nil?
22113
+ command.query['requestId'] = request_id unless request_id.nil?
22114
+ command.query['fields'] = fields unless fields.nil?
22115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22116
+ command.query['userIp'] = user_ip unless user_ip.nil?
22117
+ execute_or_queue_command(command, &block)
22118
+ end
22119
+
21790
22120
  # Patches a rule of the specified priority.
21791
22121
  # @param [String] project
21792
22122
  # Project ID for this request.
@@ -21890,6 +22220,56 @@ module Google
21890
22220
  execute_or_queue_command(command, &block)
21891
22221
  end
21892
22222
 
22223
+ # Deletes a packet mirroring rule of the specified priority.
22224
+ # @param [String] project
22225
+ # Project ID for this request.
22226
+ # @param [String] firewall_policy
22227
+ # Name of the firewall policy to update.
22228
+ # @param [Fixnum] priority
22229
+ # The priority of the rule to remove from the firewall policy.
22230
+ # @param [String] request_id
22231
+ # An optional request ID to identify requests. Specify a unique request ID so
22232
+ # that if you must retry your request, the server will know to ignore the
22233
+ # request if it has already been completed. For example, consider a situation
22234
+ # where you make an initial request and the request times out. If you make the
22235
+ # request again with the same request ID, the server can check if original
22236
+ # operation with the same request ID was received, and if so, will ignore the
22237
+ # second request. This prevents clients from accidentally creating duplicate
22238
+ # commitments. The request ID must be a valid UUID with the exception that zero
22239
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22240
+ # @param [String] fields
22241
+ # Selector specifying which fields to include in a partial response.
22242
+ # @param [String] quota_user
22243
+ # Available to use for quota purposes for server-side applications. Can be any
22244
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22245
+ # @param [String] user_ip
22246
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22247
+ # @param [Google::Apis::RequestOptions] options
22248
+ # Request-specific options
22249
+ #
22250
+ # @yield [result, err] Result & error if block supplied
22251
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
22252
+ # @yieldparam err [StandardError] error object if request failed
22253
+ #
22254
+ # @return [Google::Apis::ComputeAlpha::Operation]
22255
+ #
22256
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22257
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22258
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22259
+ def remove_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22260
+ command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule', options)
22261
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
22262
+ command.response_class = Google::Apis::ComputeAlpha::Operation
22263
+ command.params['project'] = project unless project.nil?
22264
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
22265
+ command.query['priority'] = priority unless priority.nil?
22266
+ command.query['requestId'] = request_id unless request_id.nil?
22267
+ command.query['fields'] = fields unless fields.nil?
22268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22269
+ command.query['userIp'] = user_ip unless user_ip.nil?
22270
+ execute_or_queue_command(command, &block)
22271
+ end
22272
+
21893
22273
  # Deletes a rule of the specified priority.
21894
22274
  # @param [String] project
21895
22275
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.0
4
+ version: 0.96.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-24 00:00:00.000000000 Z
11
+ date: 2024-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.95.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.96.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []