google-apis-compute_v1 0.64.0 → 0.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2085a8a18626a5357ee63c7e94f5b4bb940b6ffb2c80f773fce2f6a466e922a6
4
- data.tar.gz: 8c9c0502808f3169e0165bef690940cb867820ed764e3b10b14e91daa79fdabb
3
+ metadata.gz: b0420f4810c9ad29bcafe49bd900cac22a6714fd20626ee3e3a0c2201efd58bc
4
+ data.tar.gz: 95c90da514115309ec234ef9c8275466d6d066661d9aa5096e204cb1848e313f
5
5
  SHA512:
6
- metadata.gz: 72277574dc088a52e307a020abd6e84663e619e32f7078a6c6bbaeda511253a4ad884eceeed671a370890bb22eeb5a72e3cb2a6aa18e4163e7e85effb9cb8253
7
- data.tar.gz: c9f9591db4af794f60722d324431b7a570420b42e9c1a814aa843c8add85d077bb6a1883b3b392306648932ee5f4761be4abe1c3c50afa970a66b05258af1eef
6
+ metadata.gz: 31aa4d0fd2a3a979f5222e60a8f77bd109a8178f9e985402eef61fc9c5618b9864c62e1647475c2d8902de93d943b9d6e02b784c66050a54dd39008d5e04be4f
7
+ data.tar.gz: f93fddffe81062568f988c218d2dcef84dd8bd87f67228b44b5c1039fbbdfa75a8b3156519e6a65b617add2fcecbf02f0b4b74c2e5645bd0127aabb511e0aae8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.65.0 (2023-04-02)
4
+
5
+ * Regenerated from discovery document revision 20230322
6
+
3
7
  ### v0.64.0 (2023-03-12)
4
8
 
5
9
  * 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
@@ -8554,22 +8559,67 @@ module Google
8554
8559
  class FirewallPolicyRuleMatcher
8555
8560
  include Google::Apis::Core::Hashable
8556
8561
 
8562
+ # Address groups which should be matched against the traffic destination.
8563
+ # Maximum number of destination address groups is 10.
8564
+ # Corresponds to the JSON property `destAddressGroups`
8565
+ # @return [Array<String>]
8566
+ attr_accessor :dest_address_groups
8567
+
8568
+ # Fully Qualified Domain Name (FQDN) which should be matched against traffic
8569
+ # destination. Maximum number of destination fqdn allowed is 100.
8570
+ # Corresponds to the JSON property `destFqdns`
8571
+ # @return [Array<String>]
8572
+ attr_accessor :dest_fqdns
8573
+
8557
8574
  # CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is
8558
8575
  # 5000.
8559
8576
  # Corresponds to the JSON property `destIpRanges`
8560
8577
  # @return [Array<String>]
8561
8578
  attr_accessor :dest_ip_ranges
8562
8579
 
8580
+ # Region codes whose IP addresses will be used to match for destination of
8581
+ # traffic. Should be specified as 2 letter country code defined as per ISO 3166
8582
+ # alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is
8583
+ # 5000.
8584
+ # Corresponds to the JSON property `destRegionCodes`
8585
+ # @return [Array<String>]
8586
+ attr_accessor :dest_region_codes
8587
+
8588
+ # Names of Network Threat Intelligence lists. The IPs in these lists will be
8589
+ # matched against traffic destination.
8590
+ # Corresponds to the JSON property `destThreatIntelligences`
8591
+ # @return [Array<String>]
8592
+ attr_accessor :dest_threat_intelligences
8593
+
8563
8594
  # Pairs of IP protocols and ports that the rule should match.
8564
8595
  # Corresponds to the JSON property `layer4Configs`
8565
8596
  # @return [Array<Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config>]
8566
8597
  attr_accessor :layer4_configs
8567
8598
 
8599
+ # Address groups which should be matched against the traffic source. Maximum
8600
+ # number of source address groups is 10.
8601
+ # Corresponds to the JSON property `srcAddressGroups`
8602
+ # @return [Array<String>]
8603
+ attr_accessor :src_address_groups
8604
+
8605
+ # Fully Qualified Domain Name (FQDN) which should be matched against traffic
8606
+ # source. Maximum number of source fqdn allowed is 100.
8607
+ # Corresponds to the JSON property `srcFqdns`
8608
+ # @return [Array<String>]
8609
+ attr_accessor :src_fqdns
8610
+
8568
8611
  # CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
8569
8612
  # Corresponds to the JSON property `srcIpRanges`
8570
8613
  # @return [Array<String>]
8571
8614
  attr_accessor :src_ip_ranges
8572
8615
 
8616
+ # Region codes whose IP addresses will be used to match for source of traffic.
8617
+ # Should be specified as 2 letter country code defined as per ISO 3166 alpha-2
8618
+ # country codes. ex."US" Maximum number of source region codes allowed is 5000.
8619
+ # Corresponds to the JSON property `srcRegionCodes`
8620
+ # @return [Array<String>]
8621
+ attr_accessor :src_region_codes
8622
+
8573
8623
  # List of secure tag values, which should be matched at the source of the
8574
8624
  # traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there
8575
8625
  # is no srcIpRange, this rule will be ignored. Maximum number of source tag
@@ -8578,16 +8628,30 @@ module Google
8578
8628
  # @return [Array<Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag>]
8579
8629
  attr_accessor :src_secure_tags
8580
8630
 
8631
+ # Names of Network Threat Intelligence lists. The IPs in these lists will be
8632
+ # matched against traffic source.
8633
+ # Corresponds to the JSON property `srcThreatIntelligences`
8634
+ # @return [Array<String>]
8635
+ attr_accessor :src_threat_intelligences
8636
+
8581
8637
  def initialize(**args)
8582
8638
  update!(**args)
8583
8639
  end
8584
8640
 
8585
8641
  # Update properties of this object
8586
8642
  def update!(**args)
8643
+ @dest_address_groups = args[:dest_address_groups] if args.key?(:dest_address_groups)
8644
+ @dest_fqdns = args[:dest_fqdns] if args.key?(:dest_fqdns)
8587
8645
  @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
8646
+ @dest_region_codes = args[:dest_region_codes] if args.key?(:dest_region_codes)
8647
+ @dest_threat_intelligences = args[:dest_threat_intelligences] if args.key?(:dest_threat_intelligences)
8588
8648
  @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs)
8649
+ @src_address_groups = args[:src_address_groups] if args.key?(:src_address_groups)
8650
+ @src_fqdns = args[:src_fqdns] if args.key?(:src_fqdns)
8589
8651
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
8652
+ @src_region_codes = args[:src_region_codes] if args.key?(:src_region_codes)
8590
8653
  @src_secure_tags = args[:src_secure_tags] if args.key?(:src_secure_tags)
8654
+ @src_threat_intelligences = args[:src_threat_intelligences] if args.key?(:src_threat_intelligences)
8591
8655
  end
8592
8656
  end
8593
8657
 
@@ -9803,8 +9867,8 @@ module Google
9803
9867
  # The ID of a supported feature. To add multiple values, use commas to separate
9804
9868
  # values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE -
9805
9869
  # 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.
9870
+ # SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE -
9871
+ # TDX_CAPABLE For more information, see Enabling guest operating system features.
9808
9872
  # Corresponds to the JSON property `type`
9809
9873
  # @return [String]
9810
9874
  attr_accessor :type
@@ -10882,7 +10946,7 @@ module Google
10882
10946
  # @return [String]
10883
10947
  attr_accessor :forwarding_rule_ip
10884
10948
 
10885
- # Health state of the instance.
10949
+ # Health state of the IPv4 address of the instance.
10886
10950
  # Corresponds to the JSON property `healthState`
10887
10951
  # @return [String]
10888
10952
  attr_accessor :health_state
@@ -14492,7 +14556,9 @@ module Google
14492
14556
  include Google::Apis::Core::Hashable
14493
14557
 
14494
14558
  # 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].
14559
+ # partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances
14560
+ # do not have URL and can be deleted only by name. One cannot specify both URLs
14561
+ # and names in a single request.
14496
14562
  # Corresponds to the JSON property `instances`
14497
14563
  # @return [Array<String>]
14498
14564
  attr_accessor :instances
@@ -16609,8 +16675,8 @@ module Google
16609
16675
  end
16610
16676
 
16611
16677
  # 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.
16678
+ # connection between the Google Cloud network and your on-premises network. For
16679
+ # more information, read the Dedicated Interconnect Overview.
16614
16680
  class Interconnect
16615
16681
  include Google::Apis::Core::Hashable
16616
16682
 
@@ -16956,7 +17022,7 @@ module Google
16956
17022
  # specified for this VLAN attachment. If this field is not specified when
16957
17023
  # creating the VLAN attachment, then later on when creating an HA VPN gateway on
16958
17024
  # this VLAN attachment, the HA VPN gateway's IP address is allocated from the
16959
- # regional external IP address pool. Not currently available publicly.
17025
+ # regional external IP address pool.
16960
17026
  # Corresponds to the JSON property `ipsecInternalAddresses`
16961
17027
  # @return [Array<String>]
16962
17028
  attr_accessor :ipsec_internal_addresses
@@ -20108,7 +20174,7 @@ module Google
20108
20174
  attr_accessor :firewall_policy
20109
20175
 
20110
20176
  # [Output Only] The gateway address for default routing out of the network,
20111
- # selected by GCP.
20177
+ # selected by Google Cloud.
20112
20178
  # Corresponds to the JSON property `gatewayIPv4`
20113
20179
  # @return [String]
20114
20180
  attr_accessor :gateway_i_pv4
@@ -22015,9 +22081,10 @@ module Google
22015
22081
  # @return [Fixnum]
22016
22082
  attr_accessor :queue_count
22017
22083
 
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.
22084
+ # The stack type for this network interface. To assign only IPv4 addresses, use
22085
+ # IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not
22086
+ # specified, IPV4_ONLY is used. This field can be both set at instance creation
22087
+ # and update network interface operations.
22021
22088
  # Corresponds to the JSON property `stackType`
22022
22089
  # @return [String]
22023
22090
  attr_accessor :stack_type
@@ -23287,6 +23354,25 @@ module Google
23287
23354
  end
23288
23355
  end
23289
23356
 
23357
+ #
23358
+ class NodeGroupsSimulateMaintenanceEventRequest
23359
+ include Google::Apis::Core::Hashable
23360
+
23361
+ # Names of the nodes to go under maintenance simulation.
23362
+ # Corresponds to the JSON property `nodes`
23363
+ # @return [Array<String>]
23364
+ attr_accessor :nodes
23365
+
23366
+ def initialize(**args)
23367
+ update!(**args)
23368
+ end
23369
+
23370
+ # Update properties of this object
23371
+ def update!(**args)
23372
+ @nodes = args[:nodes] if args.key?(:nodes)
23373
+ end
23374
+ end
23375
+
23290
23376
  # Represent a sole-tenant Node Template resource. You can use a template to
23291
23377
  # define properties for nodes in a node group. For more information, read
23292
23378
  # Creating node groups and instances.
@@ -34014,7 +34100,7 @@ module Google
34014
34100
  # Represents a ServiceAttachment resource. A service attachment represents a
34015
34101
  # service that a producer has exposed. It encapsulates the load balancer which
34016
34102
  # 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
34103
+ # represent the consumers connecting to the service.
34018
34104
  class ServiceAttachment
34019
34105
  include Google::Apis::Core::Hashable
34020
34106
 
@@ -38063,8 +38149,11 @@ module Google
38063
38149
  # Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that
38064
38150
  # describes how the proxy should authenticate inbound traffic. serverTlsPolicy
38065
38151
  # 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.
38152
+ # with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or
38153
+ # EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted
38154
+ # with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED
38155
+ # loadBalancingScheme consult ServerTlsPolicy documentation. If left blank,
38156
+ # communications are not encrypted.
38068
38157
  # Corresponds to the JSON property `serverTlsPolicy`
38069
38158
  # @return [String]
38070
38159
  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.65.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 = "20230322"
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
 
@@ -7728,12 +7734,20 @@ module Google
7728
7734
  class FirewallPolicyRuleMatcher
7729
7735
  # @private
7730
7736
  class Representation < Google::Apis::Core::JsonRepresentation
7737
+ collection :dest_address_groups, as: 'destAddressGroups'
7738
+ collection :dest_fqdns, as: 'destFqdns'
7731
7739
  collection :dest_ip_ranges, as: 'destIpRanges'
7740
+ collection :dest_region_codes, as: 'destRegionCodes'
7741
+ collection :dest_threat_intelligences, as: 'destThreatIntelligences'
7732
7742
  collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config::Representation
7733
7743
 
7744
+ collection :src_address_groups, as: 'srcAddressGroups'
7745
+ collection :src_fqdns, as: 'srcFqdns'
7734
7746
  collection :src_ip_ranges, as: 'srcIpRanges'
7747
+ collection :src_region_codes, as: 'srcRegionCodes'
7735
7748
  collection :src_secure_tags, as: 'srcSecureTags', class: Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag, decorator: Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag::Representation
7736
7749
 
7750
+ collection :src_threat_intelligences, as: 'srcThreatIntelligences'
7737
7751
  end
7738
7752
  end
7739
7753
 
@@ -11361,6 +11375,13 @@ module Google
11361
11375
  end
11362
11376
  end
11363
11377
 
11378
+ class NodeGroupsSimulateMaintenanceEventRequest
11379
+ # @private
11380
+ class Representation < Google::Apis::Core::JsonRepresentation
11381
+ collection :nodes, as: 'nodes'
11382
+ end
11383
+ end
11384
+
11364
11385
  class NodeTemplate
11365
11386
  # @private
11366
11387
  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
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.65.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-02 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.65.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: []