google-apis-compute_v1 0.64.0 → 0.66.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: 2085a8a18626a5357ee63c7e94f5b4bb940b6ffb2c80f773fce2f6a466e922a6
4
- data.tar.gz: 8c9c0502808f3169e0165bef690940cb867820ed764e3b10b14e91daa79fdabb
3
+ metadata.gz: 379d7ed4cccecc834051822de3f6e421fed150950e17264e5b33355bd1358007
4
+ data.tar.gz: d695c9ac4ebf0335668565e7dd094f2b6eedf0748dd54561822fdc643ce0f6ff
5
5
  SHA512:
6
- metadata.gz: 72277574dc088a52e307a020abd6e84663e619e32f7078a6c6bbaeda511253a4ad884eceeed671a370890bb22eeb5a72e3cb2a6aa18e4163e7e85effb9cb8253
7
- data.tar.gz: c9f9591db4af794f60722d324431b7a570420b42e9c1a814aa843c8add85d077bb6a1883b3b392306648932ee5f4761be4abe1c3c50afa970a66b05258af1eef
6
+ metadata.gz: 237a43853c6740c2d77c5d365fbf3f1faafc3b9d6bf70ae77a6c60ac2cff4815be44a448c7b8c4d3c5deed27650bb83f707fae845ec505f3f6cb0f57626dc204
7
+ data.tar.gz: 4a2ee019955b5b979f90c8af38059d35613a28eec787c2dad673109c026041ac78759b6355ae800662bfa90b3cef65f75f94376376488b5f97a68c8b876bf747
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.66.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230403
6
+
7
+ ### v0.65.0 (2023-04-02)
8
+
9
+ * Regenerated from discovery document revision 20230322
10
+
3
11
  ### v0.64.0 (2023-03-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20230307
@@ -464,16 +464,18 @@ module Google
464
464
  class AccessConfig
465
465
  include Google::Apis::Core::Hashable
466
466
 
467
- # The first IPv6 address of the external IPv6 range associated with this
468
- # instance, prefix length is stored in externalIpv6PrefixLength in
469
- # ipv6AccessConfig. To use a static external IP address, it must be unused and
470
- # in the same region as the instance's zone. If not specified, Google Cloud will
471
- # automatically assign an external IPv6 address from the instance's subnetwork.
467
+ # Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6
468
+ # range associated with this instance, prefix length is stored in
469
+ # externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP
470
+ # address, it must be unused and in the same region as the instance's zone. If
471
+ # not specified, Google Cloud will automatically assign an external IPv6 address
472
+ # from the instance's subnetwork.
472
473
  # Corresponds to the JSON property `externalIpv6`
473
474
  # @return [String]
474
475
  attr_accessor :external_ipv6
475
476
 
476
- # The prefix length of the external IPv6 range.
477
+ # Applies to ipv6AccessConfigs only. The prefix length of the external IPv6
478
+ # range.
477
479
  # Corresponds to the JSON property `externalIpv6PrefixLength`
478
480
  # @return [Fixnum]
479
481
  attr_accessor :external_ipv6_prefix_length
@@ -484,18 +486,19 @@ module Google
484
486
  # @return [String]
485
487
  attr_accessor :kind
486
488
 
487
- # The name of this access configuration. The default and recommended name is
488
- # External NAT, but you can use any arbitrary string, such as My external IP or
489
- # Network Access.
489
+ # The name of this access configuration. In accessConfigs (IPv4), the default
490
+ # and recommended name is External NAT, but you can use any arbitrary string,
491
+ # such as My external IP or Network Access. In ipv6AccessConfigs, the recommend
492
+ # name is External IPv6.
490
493
  # Corresponds to the JSON property `name`
491
494
  # @return [String]
492
495
  attr_accessor :name
493
496
 
494
- # An external IP address associated with this instance. Specify an unused static
495
- # external IP address available to the project or leave this field undefined to
496
- # use an IP from a shared ephemeral IP address pool. If you specify a static
497
- # external IP address, it must live in the same region as the zone of the
498
- # instance.
497
+ # Applies to accessConfigs (IPv4) only. An external IP address associated with
498
+ # this instance. Specify an unused static external IP address available to the
499
+ # project or leave this field undefined to use an IP from a shared ephemeral IP
500
+ # address pool. If you specify a static external IP address, it must live in the
501
+ # same region as the zone of the instance.
499
502
  # Corresponds to the JSON property `natIP`
500
503
  # @return [String]
501
504
  attr_accessor :nat_ip
@@ -527,7 +530,9 @@ module Google
527
530
  attr_accessor :set_public_ptr
528
531
  alias_method :set_public_ptr?, :set_public_ptr
529
532
 
530
- # The type of configuration. The default and only option is ONE_TO_ONE_NAT.
533
+ # The type of configuration. In accessConfigs (IPv4), the default and only
534
+ # option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is
535
+ # DIRECT_IPV6.
531
536
  # Corresponds to the JSON property `type`
532
537
  # @return [String]
533
538
  attr_accessor :type
@@ -1521,6 +1526,14 @@ module Google
1521
1526
  # @return [Fixnum]
1522
1527
  attr_accessor :provisioned_iops
1523
1528
 
1529
+ # Required for each regional disk associated with the instance. Specify the URLs
1530
+ # of the zones where the disk should be replicated to. You must provide exactly
1531
+ # two replica zones, and one zone must be the same as the instance zone. You can'
1532
+ # t use this option with boot disks.
1533
+ # Corresponds to the JSON property `replicaZones`
1534
+ # @return [Array<String>]
1535
+ attr_accessor :replica_zones
1536
+
1524
1537
  # Resource manager tags to be bound to the disk. Tag keys and values have the
1525
1538
  # same definition as resource manager tags. Keys must be in the format `tagKeys/`
1526
1539
  # tag_key_id``, and values are in the format `tagValues/456`. The field is
@@ -1592,6 +1605,7 @@ module Google
1592
1605
  @licenses = args[:licenses] if args.key?(:licenses)
1593
1606
  @on_update_action = args[:on_update_action] if args.key?(:on_update_action)
1594
1607
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
1608
+ @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
1595
1609
  @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
1596
1610
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
1597
1611
  @source_image = args[:source_image] if args.key?(:source_image)
@@ -8554,22 +8568,67 @@ module Google
8554
8568
  class FirewallPolicyRuleMatcher
8555
8569
  include Google::Apis::Core::Hashable
8556
8570
 
8571
+ # Address groups which should be matched against the traffic destination.
8572
+ # Maximum number of destination address groups is 10.
8573
+ # Corresponds to the JSON property `destAddressGroups`
8574
+ # @return [Array<String>]
8575
+ attr_accessor :dest_address_groups
8576
+
8577
+ # Fully Qualified Domain Name (FQDN) which should be matched against traffic
8578
+ # destination. Maximum number of destination fqdn allowed is 100.
8579
+ # Corresponds to the JSON property `destFqdns`
8580
+ # @return [Array<String>]
8581
+ attr_accessor :dest_fqdns
8582
+
8557
8583
  # CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is
8558
8584
  # 5000.
8559
8585
  # Corresponds to the JSON property `destIpRanges`
8560
8586
  # @return [Array<String>]
8561
8587
  attr_accessor :dest_ip_ranges
8562
8588
 
8589
+ # Region codes whose IP addresses will be used to match for destination of
8590
+ # traffic. Should be specified as 2 letter country code defined as per ISO 3166
8591
+ # alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is
8592
+ # 5000.
8593
+ # Corresponds to the JSON property `destRegionCodes`
8594
+ # @return [Array<String>]
8595
+ attr_accessor :dest_region_codes
8596
+
8597
+ # Names of Network Threat Intelligence lists. The IPs in these lists will be
8598
+ # matched against traffic destination.
8599
+ # Corresponds to the JSON property `destThreatIntelligences`
8600
+ # @return [Array<String>]
8601
+ attr_accessor :dest_threat_intelligences
8602
+
8563
8603
  # Pairs of IP protocols and ports that the rule should match.
8564
8604
  # Corresponds to the JSON property `layer4Configs`
8565
8605
  # @return [Array<Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config>]
8566
8606
  attr_accessor :layer4_configs
8567
8607
 
8608
+ # Address groups which should be matched against the traffic source. Maximum
8609
+ # number of source address groups is 10.
8610
+ # Corresponds to the JSON property `srcAddressGroups`
8611
+ # @return [Array<String>]
8612
+ attr_accessor :src_address_groups
8613
+
8614
+ # Fully Qualified Domain Name (FQDN) which should be matched against traffic
8615
+ # source. Maximum number of source fqdn allowed is 100.
8616
+ # Corresponds to the JSON property `srcFqdns`
8617
+ # @return [Array<String>]
8618
+ attr_accessor :src_fqdns
8619
+
8568
8620
  # CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
8569
8621
  # Corresponds to the JSON property `srcIpRanges`
8570
8622
  # @return [Array<String>]
8571
8623
  attr_accessor :src_ip_ranges
8572
8624
 
8625
+ # Region codes whose IP addresses will be used to match for source of traffic.
8626
+ # Should be specified as 2 letter country code defined as per ISO 3166 alpha-2
8627
+ # country codes. ex."US" Maximum number of source region codes allowed is 5000.
8628
+ # Corresponds to the JSON property `srcRegionCodes`
8629
+ # @return [Array<String>]
8630
+ attr_accessor :src_region_codes
8631
+
8573
8632
  # List of secure tag values, which should be matched at the source of the
8574
8633
  # traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there
8575
8634
  # is no srcIpRange, this rule will be ignored. Maximum number of source tag
@@ -8578,16 +8637,30 @@ module Google
8578
8637
  # @return [Array<Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag>]
8579
8638
  attr_accessor :src_secure_tags
8580
8639
 
8640
+ # Names of Network Threat Intelligence lists. The IPs in these lists will be
8641
+ # matched against traffic source.
8642
+ # Corresponds to the JSON property `srcThreatIntelligences`
8643
+ # @return [Array<String>]
8644
+ attr_accessor :src_threat_intelligences
8645
+
8581
8646
  def initialize(**args)
8582
8647
  update!(**args)
8583
8648
  end
8584
8649
 
8585
8650
  # Update properties of this object
8586
8651
  def update!(**args)
8652
+ @dest_address_groups = args[:dest_address_groups] if args.key?(:dest_address_groups)
8653
+ @dest_fqdns = args[:dest_fqdns] if args.key?(:dest_fqdns)
8587
8654
  @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
8655
+ @dest_region_codes = args[:dest_region_codes] if args.key?(:dest_region_codes)
8656
+ @dest_threat_intelligences = args[:dest_threat_intelligences] if args.key?(:dest_threat_intelligences)
8588
8657
  @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs)
8658
+ @src_address_groups = args[:src_address_groups] if args.key?(:src_address_groups)
8659
+ @src_fqdns = args[:src_fqdns] if args.key?(:src_fqdns)
8589
8660
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
8661
+ @src_region_codes = args[:src_region_codes] if args.key?(:src_region_codes)
8590
8662
  @src_secure_tags = args[:src_secure_tags] if args.key?(:src_secure_tags)
8663
+ @src_threat_intelligences = args[:src_threat_intelligences] if args.key?(:src_threat_intelligences)
8591
8664
  end
8592
8665
  end
8593
8666
 
@@ -8752,6 +8825,13 @@ module Google
8752
8825
  attr_accessor :allow_global_access
8753
8826
  alias_method :allow_global_access?, :allow_global_access
8754
8827
 
8828
+ # This is used in PSC consumer ForwardingRule to control whether the PSC
8829
+ # endpoint can be accessed from another region.
8830
+ # Corresponds to the JSON property `allowPscGlobalAccess`
8831
+ # @return [Boolean]
8832
+ attr_accessor :allow_psc_global_access
8833
+ alias_method :allow_psc_global_access?, :allow_psc_global_access
8834
+
8755
8835
  # Identifies the backend service to which the forwarding rule sends traffic.
8756
8836
  # Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must
8757
8837
  # be omitted for all other load balancer types.
@@ -8877,9 +8957,11 @@ module Google
8877
8957
 
8878
8958
  # This field is not used for external load balancing. For Internal TCP/UDP Load
8879
8959
  # Balancing, this field identifies the network that the load balanced IP should
8880
- # belong to for this Forwarding Rule. If this field is not specified, the
8881
- # default network will be used. For Private Service Connect forwarding rules
8882
- # that forward traffic to Google APIs, a network must be provided.
8960
+ # belong to for this Forwarding Rule. If the subnetwork is specified, the
8961
+ # network of the subnetwork will be used. If neither subnetwork nor this field
8962
+ # is specified, the default network will be used. For Private Service Connect
8963
+ # forwarding rules that forward traffic to Google APIs, a network must be
8964
+ # provided.
8883
8965
  # Corresponds to the JSON property `network`
8884
8966
  # @return [String]
8885
8967
  attr_accessor :network
@@ -9026,6 +9108,7 @@ module Google
9026
9108
  @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
9027
9109
  @all_ports = args[:all_ports] if args.key?(:all_ports)
9028
9110
  @allow_global_access = args[:allow_global_access] if args.key?(:allow_global_access)
9111
+ @allow_psc_global_access = args[:allow_psc_global_access] if args.key?(:allow_psc_global_access)
9029
9112
  @backend_service = args[:backend_service] if args.key?(:backend_service)
9030
9113
  @base_forwarding_rule = args[:base_forwarding_rule] if args.key?(:base_forwarding_rule)
9031
9114
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@@ -9803,8 +9886,8 @@ module Google
9803
9886
  # The ID of a supported feature. To add multiple values, use commas to separate
9804
9887
  # values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE -
9805
9888
  # WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE -
9806
- # SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information,
9807
- # see Enabling guest operating system features.
9889
+ # SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE -
9890
+ # TDX_CAPABLE For more information, see Enabling guest operating system features.
9808
9891
  # Corresponds to the JSON property `type`
9809
9892
  # @return [String]
9810
9893
  attr_accessor :type
@@ -10882,7 +10965,7 @@ module Google
10882
10965
  # @return [String]
10883
10966
  attr_accessor :forwarding_rule_ip
10884
10967
 
10885
- # Health state of the instance.
10968
+ # Health state of the IPv4 address of the instance.
10886
10969
  # Corresponds to the JSON property `healthState`
10887
10970
  # @return [String]
10888
10971
  attr_accessor :health_state
@@ -14492,7 +14575,9 @@ module Google
14492
14575
  include Google::Apis::Core::Hashable
14493
14576
 
14494
14577
  # The URLs of one or more instances to delete. This can be a full URL or a
14495
- # partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
14578
+ # partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances
14579
+ # do not have URL and can be deleted only by name. One cannot specify both URLs
14580
+ # and names in a single request.
14496
14581
  # Corresponds to the JSON property `instances`
14497
14582
  # @return [Array<String>]
14498
14583
  attr_accessor :instances
@@ -16609,8 +16694,8 @@ module Google
16609
16694
  end
16610
16695
 
16611
16696
  # Represents an Interconnect resource. An Interconnect resource is a dedicated
16612
- # connection between the GCP network and your on-premises network. For more
16613
- # information, read the Dedicated Interconnect Overview.
16697
+ # connection between the Google Cloud network and your on-premises network. For
16698
+ # more information, read the Dedicated Interconnect Overview.
16614
16699
  class Interconnect
16615
16700
  include Google::Apis::Core::Hashable
16616
16701
 
@@ -16956,7 +17041,7 @@ module Google
16956
17041
  # specified for this VLAN attachment. If this field is not specified when
16957
17042
  # creating the VLAN attachment, then later on when creating an HA VPN gateway on
16958
17043
  # this VLAN attachment, the HA VPN gateway's IP address is allocated from the
16959
- # regional external IP address pool. Not currently available publicly.
17044
+ # regional external IP address pool.
16960
17045
  # Corresponds to the JSON property `ipsecInternalAddresses`
16961
17046
  # @return [Array<String>]
16962
17047
  attr_accessor :ipsec_internal_addresses
@@ -20108,7 +20193,7 @@ module Google
20108
20193
  attr_accessor :firewall_policy
20109
20194
 
20110
20195
  # [Output Only] The gateway address for default routing out of the network,
20111
- # selected by GCP.
20196
+ # selected by Google Cloud.
20112
20197
  # Corresponds to the JSON property `gatewayIPv4`
20113
20198
  # @return [String]
20114
20199
  attr_accessor :gateway_i_pv4
@@ -20466,7 +20551,7 @@ module Google
20466
20551
  # @return [String]
20467
20552
  attr_accessor :project_id_or_num
20468
20553
 
20469
- # Alias IP ranges from the same subnetwork
20554
+ # Alias IP ranges from the same subnetwork.
20470
20555
  # Corresponds to the JSON property `secondaryIpCidrRanges`
20471
20556
  # @return [Array<String>]
20472
20557
  attr_accessor :secondary_ip_cidr_ranges
@@ -22015,9 +22100,10 @@ module Google
22015
22100
  # @return [Fixnum]
22016
22101
  attr_accessor :queue_count
22017
22102
 
22018
- # The stack type for this network interface to identify whether the IPv6 feature
22019
- # is enabled or not. If not specified, IPV4_ONLY will be used. This field can be
22020
- # both set at instance creation and update network interface operations.
22103
+ # The stack type for this network interface. To assign only IPv4 addresses, use
22104
+ # IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not
22105
+ # specified, IPV4_ONLY is used. This field can be both set at instance creation
22106
+ # and update network interface operations.
22021
22107
  # Corresponds to the JSON property `stackType`
22022
22108
  # @return [String]
22023
22109
  attr_accessor :stack_type
@@ -23287,6 +23373,25 @@ module Google
23287
23373
  end
23288
23374
  end
23289
23375
 
23376
+ #
23377
+ class NodeGroupsSimulateMaintenanceEventRequest
23378
+ include Google::Apis::Core::Hashable
23379
+
23380
+ # Names of the nodes to go under maintenance simulation.
23381
+ # Corresponds to the JSON property `nodes`
23382
+ # @return [Array<String>]
23383
+ attr_accessor :nodes
23384
+
23385
+ def initialize(**args)
23386
+ update!(**args)
23387
+ end
23388
+
23389
+ # Update properties of this object
23390
+ def update!(**args)
23391
+ @nodes = args[:nodes] if args.key?(:nodes)
23392
+ end
23393
+ end
23394
+
23290
23395
  # Represent a sole-tenant Node Template resource. You can use a template to
23291
23396
  # define properties for nodes in a node group. For more information, read
23292
23397
  # Creating node groups and instances.
@@ -33152,7 +33257,8 @@ module Google
33152
33257
  class SecurityPolicyAdaptiveProtectionConfig
33153
33258
  include Google::Apis::Core::Hashable
33154
33259
 
33155
- # Configuration options for L7 DDoS detection.
33260
+ # Configuration options for L7 DDoS detection. This field is only supported in
33261
+ # Global Security Policies of type CLOUD_ARMOR.
33156
33262
  # Corresponds to the JSON property `layer7DdosDefenseConfig`
33157
33263
  # @return [Google::Apis::ComputeV1::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig]
33158
33264
  attr_accessor :layer7_ddos_defense_config
@@ -33167,18 +33273,21 @@ module Google
33167
33273
  end
33168
33274
  end
33169
33275
 
33170
- # Configuration options for L7 DDoS detection.
33276
+ # Configuration options for L7 DDoS detection. This field is only supported in
33277
+ # Global Security Policies of type CLOUD_ARMOR.
33171
33278
  class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
33172
33279
  include Google::Apis::Core::Hashable
33173
33280
 
33174
- # If set to true, enables CAAP for L7 DDoS detection.
33281
+ # If set to true, enables CAAP for L7 DDoS detection. This field is only
33282
+ # supported in Global Security Policies of type CLOUD_ARMOR.
33175
33283
  # Corresponds to the JSON property `enable`
33176
33284
  # @return [Boolean]
33177
33285
  attr_accessor :enable
33178
33286
  alias_method :enable?, :enable
33179
33287
 
33180
33288
  # Rule visibility can be one of the following: STANDARD - opaque rules. (default)
33181
- # PREMIUM - transparent rules.
33289
+ # PREMIUM - transparent rules. This field is only supported in Global Security
33290
+ # Policies of type CLOUD_ARMOR.
33182
33291
  # Corresponds to the JSON property `ruleVisibility`
33183
33292
  # @return [String]
33184
33293
  attr_accessor :rule_visibility
@@ -33388,7 +33497,8 @@ module Google
33388
33497
  # using the redirect action with the type of GOOGLE_RECAPTCHA under the security
33389
33498
  # policy. The specified site key needs to be created from the reCAPTCHA API. The
33390
33499
  # user is responsible for the validity of the specified site key. If not
33391
- # specified, a Google-managed site key is used.
33500
+ # specified, a Google-managed site key is used. This field is only supported in
33501
+ # Global Security Policies of type CLOUD_ARMOR.
33392
33502
  # Corresponds to the JSON property `redirectSiteKey`
33393
33503
  # @return [String]
33394
33504
  attr_accessor :redirect_site_key
@@ -33436,7 +33546,8 @@ module Google
33436
33546
  # rate_limit_options to be set. - redirect: redirect to a different target. This
33437
33547
  # can either be an internal reCAPTCHA redirect, or an external URL-based
33438
33548
  # redirect via a 302 response. Parameters for this action can be configured via
33439
- # redirectOptions. - throttle: limit client traffic to the configured threshold.
33549
+ # redirectOptions. This action is only supported in Global Security Policies of
33550
+ # type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold.
33440
33551
  # Configure parameters for this action in rateLimitOptions. Requires
33441
33552
  # rate_limit_options to be set for this.
33442
33553
  # Corresponds to the JSON property `action`
@@ -33449,7 +33560,8 @@ module Google
33449
33560
  # @return [String]
33450
33561
  attr_accessor :description
33451
33562
 
33452
- # Optional, additional actions that are performed on headers.
33563
+ # Optional, additional actions that are performed on headers. This field is only
33564
+ # supported in Global Security Policies of type CLOUD_ARMOR.
33453
33565
  # Corresponds to the JSON property `headerAction`
33454
33566
  # @return [Google::Apis::ComputeV1::SecurityPolicyRuleHttpHeaderAction]
33455
33567
  attr_accessor :header_action
@@ -33494,7 +33606,8 @@ module Google
33494
33606
  attr_accessor :rate_limit_options
33495
33607
 
33496
33608
  # Parameters defining the redirect action. Cannot be specified for any other
33497
- # actions.
33609
+ # actions. This field is only supported in Global Security Policies of type
33610
+ # CLOUD_ARMOR.
33498
33611
  # Corresponds to the JSON property `redirectOptions`
33499
33612
  # @return [Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions]
33500
33613
  attr_accessor :redirect_options
@@ -33781,6 +33894,14 @@ module Google
33781
33894
  # @return [String]
33782
33895
  attr_accessor :enforce_on_key
33783
33896
 
33897
+ # If specified, any combination of values of enforce_on_key_type/
33898
+ # enforce_on_key_name is treated as the key on which ratelimit threshold/action
33899
+ # is enforced. You can specify up to 3 enforce_on_key_configs. If
33900
+ # enforce_on_key_configs is specified, enforce_on_key must not be specified.
33901
+ # Corresponds to the JSON property `enforceOnKeyConfigs`
33902
+ # @return [Array<Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig>]
33903
+ attr_accessor :enforce_on_key_configs
33904
+
33784
33905
  # Rate limit key name applicable only for the following key types: HTTP_HEADER --
33785
33906
  # Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE --
33786
33907
  # Name of the HTTP cookie whose value is taken as the key value.
@@ -33792,13 +33913,15 @@ module Google
33792
33913
  # to either deny with a specified HTTP response code, or redirect to a
33793
33914
  # different endpoint. Valid options are `deny(STATUS)`, where valid values for `
33794
33915
  # STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect
33795
- # parameters come from `exceedRedirectOptions` below.
33916
+ # parameters come from `exceedRedirectOptions` below. The `redirect` action is
33917
+ # only supported in Global Security Policies of type CLOUD_ARMOR.
33796
33918
  # Corresponds to the JSON property `exceedAction`
33797
33919
  # @return [String]
33798
33920
  attr_accessor :exceed_action
33799
33921
 
33800
33922
  # Parameters defining the redirect action that is used as the exceed action.
33801
- # Cannot be specified if the exceed action is not redirect.
33923
+ # Cannot be specified if the exceed action is not redirect. This field is only
33924
+ # supported in Global Security Policies of type CLOUD_ARMOR.
33802
33925
  # Corresponds to the JSON property `exceedRedirectOptions`
33803
33926
  # @return [Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions]
33804
33927
  attr_accessor :exceed_redirect_options
@@ -33818,6 +33941,7 @@ module Google
33818
33941
  @ban_threshold = args[:ban_threshold] if args.key?(:ban_threshold)
33819
33942
  @conform_action = args[:conform_action] if args.key?(:conform_action)
33820
33943
  @enforce_on_key = args[:enforce_on_key] if args.key?(:enforce_on_key)
33944
+ @enforce_on_key_configs = args[:enforce_on_key_configs] if args.key?(:enforce_on_key_configs)
33821
33945
  @enforce_on_key_name = args[:enforce_on_key_name] if args.key?(:enforce_on_key_name)
33822
33946
  @exceed_action = args[:exceed_action] if args.key?(:exceed_action)
33823
33947
  @exceed_redirect_options = args[:exceed_redirect_options] if args.key?(:exceed_redirect_options)
@@ -33825,6 +33949,51 @@ module Google
33825
33949
  end
33826
33950
  end
33827
33951
 
33952
+ #
33953
+ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
33954
+ include Google::Apis::Core::Hashable
33955
+
33956
+ # Rate limit key name applicable only for the following key types: HTTP_HEADER --
33957
+ # Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE --
33958
+ # Name of the HTTP cookie whose value is taken as the key value.
33959
+ # Corresponds to the JSON property `enforceOnKeyName`
33960
+ # @return [String]
33961
+ attr_accessor :enforce_on_key_name
33962
+
33963
+ # Determines the key to enforce the rate_limit_threshold on. Possible values are:
33964
+ # - ALL: A single rate limit threshold is applied to all the requests matching
33965
+ # this rule. This is the default value if "enforceOnKeyConfigs" is not
33966
+ # configured. - IP: The source IP address of the request is the key. Each IP has
33967
+ # this limit enforced separately. - HTTP_HEADER: The value of the HTTP header
33968
+ # whose name is configured under "enforceOnKeyName". The key value is truncated
33969
+ # to the first 128 bytes of the header value. If no such header is present in
33970
+ # the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e.
33971
+ # the originating client IP address) specified in the list of IPs under X-
33972
+ # Forwarded-For HTTP header. If no such header is present or the value is not a
33973
+ # valid IP, the key defaults to the source IP address of the request i.e. key
33974
+ # type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured
33975
+ # under "enforceOnKeyName". The key value is truncated to the first 128 bytes of
33976
+ # the cookie value. If no such cookie is present in the request, the key type
33977
+ # defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value
33978
+ # is truncated to the first 128 bytes. - SNI: Server name indication in the TLS
33979
+ # session of the HTTPS request. The key value is truncated to the first 128
33980
+ # bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The
33981
+ # country/region from which the request originates.
33982
+ # Corresponds to the JSON property `enforceOnKeyType`
33983
+ # @return [String]
33984
+ attr_accessor :enforce_on_key_type
33985
+
33986
+ def initialize(**args)
33987
+ update!(**args)
33988
+ end
33989
+
33990
+ # Update properties of this object
33991
+ def update!(**args)
33992
+ @enforce_on_key_name = args[:enforce_on_key_name] if args.key?(:enforce_on_key_name)
33993
+ @enforce_on_key_type = args[:enforce_on_key_type] if args.key?(:enforce_on_key_type)
33994
+ end
33995
+ end
33996
+
33828
33997
  #
33829
33998
  class SecurityPolicyRuleRateLimitOptionsThreshold
33830
33999
  include Google::Apis::Core::Hashable
@@ -34014,7 +34183,7 @@ module Google
34014
34183
  # Represents a ServiceAttachment resource. A service attachment represents a
34015
34184
  # service that a producer has exposed. It encapsulates the load balancer which
34016
34185
  # fronts the service runs and a list of NAT IP ranges that the producers uses to
34017
- # represent the consumers connecting to the service. next tag = 20
34186
+ # represent the consumers connecting to the service.
34018
34187
  class ServiceAttachment
34019
34188
  include Google::Apis::Core::Hashable
34020
34189
 
@@ -38063,8 +38232,11 @@ module Google
38063
38232
  # Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that
38064
38233
  # describes how the proxy should authenticate inbound traffic. serverTlsPolicy
38065
38234
  # only applies to a global TargetHttpsProxy attached to globalForwardingRules
38066
- # with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank,
38067
- # communications are not encrypted. Note: This field currently has no impact.
38235
+ # with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or
38236
+ # EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted
38237
+ # with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED
38238
+ # loadBalancingScheme consult ServerTlsPolicy documentation. If left blank,
38239
+ # communications are not encrypted.
38068
38240
  # Corresponds to the JSON property `serverTlsPolicy`
38069
38241
  # @return [String]
38070
38242
  attr_accessor :server_tls_policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeV1
18
18
  # Version of the google-apis-compute_v1 gem
19
- GEM_VERSION = "0.64.0"
19
+ GEM_VERSION = "0.66.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230307"
25
+ REVISION = "20230403"
26
26
  end
27
27
  end
28
28
  end
@@ -2938,6 +2938,12 @@ module Google
2938
2938
  include Google::Apis::Core::JsonObjectSupport
2939
2939
  end
2940
2940
 
2941
+ class NodeGroupsSimulateMaintenanceEventRequest
2942
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2943
+
2944
+ include Google::Apis::Core::JsonObjectSupport
2945
+ end
2946
+
2941
2947
  class NodeTemplate
2942
2948
  class Representation < Google::Apis::Core::JsonRepresentation; end
2943
2949
 
@@ -4408,6 +4414,12 @@ module Google
4408
4414
  include Google::Apis::Core::JsonObjectSupport
4409
4415
  end
4410
4416
 
4417
+ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
4418
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4419
+
4420
+ include Google::Apis::Core::JsonObjectSupport
4421
+ end
4422
+
4411
4423
  class SecurityPolicyRuleRateLimitOptionsThreshold
4412
4424
  class Representation < Google::Apis::Core::JsonRepresentation; end
4413
4425
 
@@ -6148,6 +6160,7 @@ module Google
6148
6160
  collection :licenses, as: 'licenses'
6149
6161
  property :on_update_action, as: 'onUpdateAction'
6150
6162
  property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
6163
+ collection :replica_zones, as: 'replicaZones'
6151
6164
  hash :resource_manager_tags, as: 'resourceManagerTags'
6152
6165
  collection :resource_policies, as: 'resourcePolicies'
6153
6166
  property :source_image, as: 'sourceImage'
@@ -7728,12 +7741,20 @@ module Google
7728
7741
  class FirewallPolicyRuleMatcher
7729
7742
  # @private
7730
7743
  class Representation < Google::Apis::Core::JsonRepresentation
7744
+ collection :dest_address_groups, as: 'destAddressGroups'
7745
+ collection :dest_fqdns, as: 'destFqdns'
7731
7746
  collection :dest_ip_ranges, as: 'destIpRanges'
7747
+ collection :dest_region_codes, as: 'destRegionCodes'
7748
+ collection :dest_threat_intelligences, as: 'destThreatIntelligences'
7732
7749
  collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config::Representation
7733
7750
 
7751
+ collection :src_address_groups, as: 'srcAddressGroups'
7752
+ collection :src_fqdns, as: 'srcFqdns'
7734
7753
  collection :src_ip_ranges, as: 'srcIpRanges'
7754
+ collection :src_region_codes, as: 'srcRegionCodes'
7735
7755
  collection :src_secure_tags, as: 'srcSecureTags', class: Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag, decorator: Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag::Representation
7736
7756
 
7757
+ collection :src_threat_intelligences, as: 'srcThreatIntelligences'
7737
7758
  end
7738
7759
  end
7739
7760
 
@@ -7769,6 +7790,7 @@ module Google
7769
7790
  property :ip_protocol, as: 'IPProtocol'
7770
7791
  property :all_ports, as: 'allPorts'
7771
7792
  property :allow_global_access, as: 'allowGlobalAccess'
7793
+ property :allow_psc_global_access, as: 'allowPscGlobalAccess'
7772
7794
  property :backend_service, as: 'backendService'
7773
7795
  property :base_forwarding_rule, as: 'baseForwardingRule'
7774
7796
  property :creation_timestamp, as: 'creationTimestamp'
@@ -11361,6 +11383,13 @@ module Google
11361
11383
  end
11362
11384
  end
11363
11385
 
11386
+ class NodeGroupsSimulateMaintenanceEventRequest
11387
+ # @private
11388
+ class Representation < Google::Apis::Core::JsonRepresentation
11389
+ collection :nodes, as: 'nodes'
11390
+ end
11391
+ end
11392
+
11364
11393
  class NodeTemplate
11365
11394
  # @private
11366
11395
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14044,6 +14073,8 @@ module Google
14044
14073
 
14045
14074
  property :conform_action, as: 'conformAction'
14046
14075
  property :enforce_on_key, as: 'enforceOnKey'
14076
+ collection :enforce_on_key_configs, as: 'enforceOnKeyConfigs', class: Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig::Representation
14077
+
14047
14078
  property :enforce_on_key_name, as: 'enforceOnKeyName'
14048
14079
  property :exceed_action, as: 'exceedAction'
14049
14080
  property :exceed_redirect_options, as: 'exceedRedirectOptions', class: Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions::Representation
@@ -14053,6 +14084,14 @@ module Google
14053
14084
  end
14054
14085
  end
14055
14086
 
14087
+ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
14088
+ # @private
14089
+ class Representation < Google::Apis::Core::JsonRepresentation
14090
+ property :enforce_on_key_name, as: 'enforceOnKeyName'
14091
+ property :enforce_on_key_type, as: 'enforceOnKeyType'
14092
+ end
14093
+ end
14094
+
14056
14095
  class SecurityPolicyRuleRateLimitOptionsThreshold
14057
14096
  # @private
14058
14097
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -18933,6 +18933,60 @@ module Google
18933
18933
  execute_or_queue_command(command, &block)
18934
18934
  end
18935
18935
 
18936
+ # Simulates maintenance event on specified nodes from the node group.
18937
+ # @param [String] project
18938
+ # Project ID for this request.
18939
+ # @param [String] zone
18940
+ # The name of the zone for this request.
18941
+ # @param [String] node_group
18942
+ # Name of the NodeGroup resource whose nodes will go under maintenance
18943
+ # simulation.
18944
+ # @param [Google::Apis::ComputeV1::NodeGroupsSimulateMaintenanceEventRequest] node_groups_simulate_maintenance_event_request_object
18945
+ # @param [String] request_id
18946
+ # An optional request ID to identify requests. Specify a unique request ID so
18947
+ # that if you must retry your request, the server will know to ignore the
18948
+ # request if it has already been completed. For example, consider a situation
18949
+ # where you make an initial request and the request times out. If you make the
18950
+ # request again with the same request ID, the server can check if original
18951
+ # operation with the same request ID was received, and if so, will ignore the
18952
+ # second request. This prevents clients from accidentally creating duplicate
18953
+ # commitments. The request ID must be a valid UUID with the exception that zero
18954
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18955
+ # @param [String] fields
18956
+ # Selector specifying which fields to include in a partial response.
18957
+ # @param [String] quota_user
18958
+ # Available to use for quota purposes for server-side applications. Can be any
18959
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18960
+ # @param [String] user_ip
18961
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18962
+ # @param [Google::Apis::RequestOptions] options
18963
+ # Request-specific options
18964
+ #
18965
+ # @yield [result, err] Result & error if block supplied
18966
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18967
+ # @yieldparam err [StandardError] error object if request failed
18968
+ #
18969
+ # @return [Google::Apis::ComputeV1::Operation]
18970
+ #
18971
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18972
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18973
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18974
+ def simulate_node_group_maintenance_event(project, zone, node_group, node_groups_simulate_maintenance_event_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18975
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent', options)
18976
+ command.request_representation = Google::Apis::ComputeV1::NodeGroupsSimulateMaintenanceEventRequest::Representation
18977
+ command.request_object = node_groups_simulate_maintenance_event_request_object
18978
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18979
+ command.response_class = Google::Apis::ComputeV1::Operation
18980
+ command.params['project'] = project unless project.nil?
18981
+ command.params['zone'] = zone unless zone.nil?
18982
+ command.params['nodeGroup'] = node_group unless node_group.nil?
18983
+ command.query['requestId'] = request_id unless request_id.nil?
18984
+ command.query['fields'] = fields unless fields.nil?
18985
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18986
+ command.query['userIp'] = user_ip unless user_ip.nil?
18987
+ execute_or_queue_command(command, &block)
18988
+ end
18989
+
18936
18990
  # Returns permissions that a caller has on the specified resource.
18937
18991
  # @param [String] project
18938
18992
  # Project ID for this request.
@@ -25503,239 +25557,6 @@ module Google
25503
25557
  execute_or_queue_command(command, &block)
25504
25558
  end
25505
25559
 
25506
- # Deletes the specified instance template. Deleting an instance template is
25507
- # permanent and cannot be undone.
25508
- # @param [String] project
25509
- # Project ID for this request.
25510
- # @param [String] region
25511
- # The name of the region for this request.
25512
- # @param [String] instance_template
25513
- # The name of the instance template to delete.
25514
- # @param [String] request_id
25515
- # An optional request ID to identify requests. Specify a unique request ID so
25516
- # that if you must retry your request, the server will know to ignore the
25517
- # request if it has already been completed. For example, consider a situation
25518
- # where you make an initial request and the request times out. If you make the
25519
- # request again with the same request ID, the server can check if original
25520
- # operation with the same request ID was received, and if so, will ignore the
25521
- # second request. This prevents clients from accidentally creating duplicate
25522
- # commitments. The request ID must be a valid UUID with the exception that zero
25523
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25524
- # @param [String] fields
25525
- # Selector specifying which fields to include in a partial response.
25526
- # @param [String] quota_user
25527
- # Available to use for quota purposes for server-side applications. Can be any
25528
- # arbitrary string assigned to a user, but should not exceed 40 characters.
25529
- # @param [String] user_ip
25530
- # Legacy name for parameter that has been superseded by `quotaUser`.
25531
- # @param [Google::Apis::RequestOptions] options
25532
- # Request-specific options
25533
- #
25534
- # @yield [result, err] Result & error if block supplied
25535
- # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25536
- # @yieldparam err [StandardError] error object if request failed
25537
- #
25538
- # @return [Google::Apis::ComputeV1::Operation]
25539
- #
25540
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25541
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25542
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25543
- def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25544
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25545
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25546
- command.response_class = Google::Apis::ComputeV1::Operation
25547
- command.params['project'] = project unless project.nil?
25548
- command.params['region'] = region unless region.nil?
25549
- command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25550
- command.query['requestId'] = request_id unless request_id.nil?
25551
- command.query['fields'] = fields unless fields.nil?
25552
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25553
- command.query['userIp'] = user_ip unless user_ip.nil?
25554
- execute_or_queue_command(command, &block)
25555
- end
25556
-
25557
- # Returns the specified instance template.
25558
- # @param [String] project
25559
- # Project ID for this request.
25560
- # @param [String] region
25561
- # The name of the region for this request.
25562
- # @param [String] instance_template
25563
- # The name of the instance template.
25564
- # @param [String] fields
25565
- # Selector specifying which fields to include in a partial response.
25566
- # @param [String] quota_user
25567
- # Available to use for quota purposes for server-side applications. Can be any
25568
- # arbitrary string assigned to a user, but should not exceed 40 characters.
25569
- # @param [String] user_ip
25570
- # Legacy name for parameter that has been superseded by `quotaUser`.
25571
- # @param [Google::Apis::RequestOptions] options
25572
- # Request-specific options
25573
- #
25574
- # @yield [result, err] Result & error if block supplied
25575
- # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplate] parsed result object
25576
- # @yieldparam err [StandardError] error object if request failed
25577
- #
25578
- # @return [Google::Apis::ComputeV1::InstanceTemplate]
25579
- #
25580
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25581
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25582
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25583
- def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25584
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25585
- command.response_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25586
- command.response_class = Google::Apis::ComputeV1::InstanceTemplate
25587
- command.params['project'] = project unless project.nil?
25588
- command.params['region'] = region unless region.nil?
25589
- command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25590
- command.query['fields'] = fields unless fields.nil?
25591
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25592
- command.query['userIp'] = user_ip unless user_ip.nil?
25593
- execute_or_queue_command(command, &block)
25594
- end
25595
-
25596
- # Creates an instance template in the specified project and region using the
25597
- # global instance template whose URL is included in the request.
25598
- # @param [String] project
25599
- # Project ID for this request.
25600
- # @param [String] region
25601
- # The name of the region for this request.
25602
- # @param [Google::Apis::ComputeV1::InstanceTemplate] instance_template_object
25603
- # @param [String] request_id
25604
- # An optional request ID to identify requests. Specify a unique request ID so
25605
- # that if you must retry your request, the server will know to ignore the
25606
- # request if it has already been completed. For example, consider a situation
25607
- # where you make an initial request and the request times out. If you make the
25608
- # request again with the same request ID, the server can check if original
25609
- # operation with the same request ID was received, and if so, will ignore the
25610
- # second request. This prevents clients from accidentally creating duplicate
25611
- # commitments. The request ID must be a valid UUID with the exception that zero
25612
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25613
- # @param [String] fields
25614
- # Selector specifying which fields to include in a partial response.
25615
- # @param [String] quota_user
25616
- # Available to use for quota purposes for server-side applications. Can be any
25617
- # arbitrary string assigned to a user, but should not exceed 40 characters.
25618
- # @param [String] user_ip
25619
- # Legacy name for parameter that has been superseded by `quotaUser`.
25620
- # @param [Google::Apis::RequestOptions] options
25621
- # Request-specific options
25622
- #
25623
- # @yield [result, err] Result & error if block supplied
25624
- # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25625
- # @yieldparam err [StandardError] error object if request failed
25626
- #
25627
- # @return [Google::Apis::ComputeV1::Operation]
25628
- #
25629
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25630
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25631
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25632
- def insert_region_instance_template(project, region, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25633
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
25634
- command.request_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25635
- command.request_object = instance_template_object
25636
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25637
- command.response_class = Google::Apis::ComputeV1::Operation
25638
- command.params['project'] = project unless project.nil?
25639
- command.params['region'] = region unless region.nil?
25640
- command.query['requestId'] = request_id unless request_id.nil?
25641
- command.query['fields'] = fields unless fields.nil?
25642
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25643
- command.query['userIp'] = user_ip unless user_ip.nil?
25644
- execute_or_queue_command(command, &block)
25645
- end
25646
-
25647
- # Retrieves a list of instance templates that are contained within the specified
25648
- # project and region.
25649
- # @param [String] project
25650
- # Project ID for this request.
25651
- # @param [String] region
25652
- # The name of the regions for this request.
25653
- # @param [String] filter
25654
- # A filter expression that filters resources listed in the response. Most
25655
- # Compute resources support two types of filter expressions: expressions that
25656
- # support regular expressions and expressions that follow API improvement
25657
- # proposal AIP-160. If you want to use AIP-160, your expression must specify the
25658
- # field name, an operator, and the value that you want to use for filtering. The
25659
- # value must be a string, a number, or a boolean. The operator must be either `=`
25660
- # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
25661
- # Engine instances, you can exclude instances named `example-instance` by
25662
- # specifying `name != example-instance`. The `:` operator can be used with
25663
- # string fields to match substrings. For non-string fields it is equivalent to
25664
- # the `=` operator. The `:*` comparison can be used to test whether a key has
25665
- # been defined. For example, to find all objects with `owner` label use: ```
25666
- # labels.owner:* ``` You can also filter nested fields. For example, you could
25667
- # specify `scheduling.automaticRestart = false` to include instances only if
25668
- # they are not scheduled for automatic restarts. You can use filtering on nested
25669
- # fields to filter based on resource labels. To filter on multiple expressions,
25670
- # provide each separate expression within parentheses. For example: ``` (
25671
- # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
25672
- # default, each expression is an `AND` expression. However, you can include `AND`
25673
- # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
25674
- # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
25675
- # automaticRestart = true) ``` If you want to use a regular expression, use the `
25676
- # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
25677
- # expression with or without quotes or against multiple parenthesized
25678
- # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
25679
- # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
25680
- # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
25681
- # regular expression using Google RE2 library syntax. The literal value must
25682
- # match the entire field. For example, to filter for instances that do not end
25683
- # with name "instance", you would use `name ne .*instance`.
25684
- # @param [Fixnum] max_results
25685
- # The maximum number of results per page that should be returned. If the number
25686
- # of available results is larger than `maxResults`, Compute Engine returns a `
25687
- # nextPageToken` that can be used to get the next page of results in subsequent
25688
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25689
- # @param [String] order_by
25690
- # Sorts list results by a certain order. By default, results are returned in
25691
- # alphanumerical order based on the resource name. You can also sort results in
25692
- # descending order based on the creation timestamp using `orderBy="
25693
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
25694
- # field in reverse chronological order (newest result first). Use this to sort
25695
- # resources like operations so that the newest operation is returned first.
25696
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25697
- # @param [String] page_token
25698
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25699
- # by a previous list request to get the next page of results.
25700
- # @param [Boolean] return_partial_success
25701
- # Opt-in for partial success behavior which provides partial results in case of
25702
- # failure. The default value is false.
25703
- # @param [String] fields
25704
- # Selector specifying which fields to include in a partial response.
25705
- # @param [String] quota_user
25706
- # Available to use for quota purposes for server-side applications. Can be any
25707
- # arbitrary string assigned to a user, but should not exceed 40 characters.
25708
- # @param [String] user_ip
25709
- # Legacy name for parameter that has been superseded by `quotaUser`.
25710
- # @param [Google::Apis::RequestOptions] options
25711
- # Request-specific options
25712
- #
25713
- # @yield [result, err] Result & error if block supplied
25714
- # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplateList] parsed result object
25715
- # @yieldparam err [StandardError] error object if request failed
25716
- #
25717
- # @return [Google::Apis::ComputeV1::InstanceTemplateList]
25718
- #
25719
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25720
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25721
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25722
- def list_region_instance_templates(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)
25723
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
25724
- command.response_representation = Google::Apis::ComputeV1::InstanceTemplateList::Representation
25725
- command.response_class = Google::Apis::ComputeV1::InstanceTemplateList
25726
- command.params['project'] = project unless project.nil?
25727
- command.params['region'] = region unless region.nil?
25728
- command.query['filter'] = filter unless filter.nil?
25729
- command.query['maxResults'] = max_results unless max_results.nil?
25730
- command.query['orderBy'] = order_by unless order_by.nil?
25731
- command.query['pageToken'] = page_token unless page_token.nil?
25732
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
25733
- command.query['fields'] = fields unless fields.nil?
25734
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25735
- command.query['userIp'] = user_ip unless user_ip.nil?
25736
- execute_or_queue_command(command, &block)
25737
- end
25738
-
25739
25560
  # Creates multiple instances in a given region. Count specifies the number of
25740
25561
  # instances to create.
25741
25562
  # @param [String] project
@@ -30895,6 +30716,10 @@ module Google
30895
30716
  # of available results is larger than `maxResults`, Compute Engine returns a `
30896
30717
  # nextPageToken` that can be used to get the next page of results in subsequent
30897
30718
  # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30719
+ # @param [String] nat_name
30720
+ # Name of the nat service to filter the Nat Mapping information. If it is
30721
+ # omitted, all nats for this router will be returned. Name should conform to
30722
+ # RFC1035.
30898
30723
  # @param [String] order_by
30899
30724
  # Sorts list results by a certain order. By default, results are returned in
30900
30725
  # alphanumerical order based on the resource name. You can also sort results in
@@ -30928,7 +30753,7 @@ module Google
30928
30753
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30929
30754
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30930
30755
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30931
- def get_router_nat_mapping_info(project, region, router, 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)
30756
+ def get_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, nat_name: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30932
30757
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo', options)
30933
30758
  command.response_representation = Google::Apis::ComputeV1::VmEndpointNatMappingsList::Representation
30934
30759
  command.response_class = Google::Apis::ComputeV1::VmEndpointNatMappingsList
@@ -30937,6 +30762,7 @@ module Google
30937
30762
  command.params['router'] = router unless router.nil?
30938
30763
  command.query['filter'] = filter unless filter.nil?
30939
30764
  command.query['maxResults'] = max_results unless max_results.nil?
30765
+ command.query['natName'] = nat_name unless nat_name.nil?
30940
30766
  command.query['orderBy'] = order_by unless order_by.nil?
30941
30767
  command.query['pageToken'] = page_token unless page_token.nil?
30942
30768
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.0
4
+ version: 0.66.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: 2023-03-12 00:00:00.000000000 Z
11
+ date: 2023-04-16 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.64.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.66.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []