google-apis-compute_v1 0.63.0 → 0.65.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_v1/classes.rb +120 -30
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +21 -0
- data/lib/google/apis/compute_v1/service.rb +54 -233
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0420f4810c9ad29bcafe49bd900cac22a6714fd20626ee3e3a0c2201efd58bc
|
4
|
+
data.tar.gz: 95c90da514115309ec234ef9c8275466d6d066661d9aa5096e204cb1848e313f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31aa4d0fd2a3a979f5222e60a8f77bd109a8178f9e985402eef61fc9c5618b9864c62e1647475c2d8902de93d943b9d6e02b784c66050a54dd39008d5e04be4f
|
7
|
+
data.tar.gz: f93fddffe81062568f988c218d2dcef84dd8bd87f67228b44b5c1039fbbdfa75a8b3156519e6a65b617add2fcecbf02f0b4b74c2e5645bd0127aabb511e0aae8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
7
|
+
### v0.64.0 (2023-03-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230307
|
10
|
+
|
3
11
|
### v0.63.0 (2023-03-05)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230221
|
@@ -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
|
468
|
-
# instance, prefix length is stored in
|
469
|
-
# ipv6AccessConfig. To use a static external IP
|
470
|
-
# in the same region as the instance's zone. If
|
471
|
-
# automatically assign an external IPv6 address
|
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
|
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.
|
488
|
-
# External NAT, but you can use any arbitrary string,
|
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
|
495
|
-
# external IP address available to the
|
496
|
-
# use an IP from a shared ephemeral IP
|
497
|
-
# external IP address, it must live in 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.
|
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 -
|
9807
|
-
# 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
|
@@ -11394,7 +11458,7 @@ module Google
|
|
11394
11458
|
attr_accessor :port
|
11395
11459
|
|
11396
11460
|
# The request path of the HTTP health check request. The default value is /.
|
11397
|
-
# This field does not support query parameters.
|
11461
|
+
# This field does not support query parameters. Must comply with RFC3986.
|
11398
11462
|
# Corresponds to the JSON property `requestPath`
|
11399
11463
|
# @return [String]
|
11400
11464
|
attr_accessor :request_path
|
@@ -12054,6 +12118,7 @@ module Google
|
|
12054
12118
|
attr_accessor :port
|
12055
12119
|
|
12056
12120
|
# The request path of the HTTPS health check request. The default value is "/".
|
12121
|
+
# Must comply with RFC3986.
|
12057
12122
|
# Corresponds to the JSON property `requestPath`
|
12058
12123
|
# @return [String]
|
12059
12124
|
attr_accessor :request_path
|
@@ -14491,7 +14556,9 @@ module Google
|
|
14491
14556
|
include Google::Apis::Core::Hashable
|
14492
14557
|
|
14493
14558
|
# The URLs of one or more instances to delete. This can be a full URL or a
|
14494
|
-
# 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.
|
14495
14562
|
# Corresponds to the JSON property `instances`
|
14496
14563
|
# @return [Array<String>]
|
14497
14564
|
attr_accessor :instances
|
@@ -16608,8 +16675,8 @@ module Google
|
|
16608
16675
|
end
|
16609
16676
|
|
16610
16677
|
# Represents an Interconnect resource. An Interconnect resource is a dedicated
|
16611
|
-
# connection between the
|
16612
|
-
# 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.
|
16613
16680
|
class Interconnect
|
16614
16681
|
include Google::Apis::Core::Hashable
|
16615
16682
|
|
@@ -16955,7 +17022,7 @@ module Google
|
|
16955
17022
|
# specified for this VLAN attachment. If this field is not specified when
|
16956
17023
|
# creating the VLAN attachment, then later on when creating an HA VPN gateway on
|
16957
17024
|
# this VLAN attachment, the HA VPN gateway's IP address is allocated from the
|
16958
|
-
# regional external IP address pool.
|
17025
|
+
# regional external IP address pool.
|
16959
17026
|
# Corresponds to the JSON property `ipsecInternalAddresses`
|
16960
17027
|
# @return [Array<String>]
|
16961
17028
|
attr_accessor :ipsec_internal_addresses
|
@@ -20107,7 +20174,7 @@ module Google
|
|
20107
20174
|
attr_accessor :firewall_policy
|
20108
20175
|
|
20109
20176
|
# [Output Only] The gateway address for default routing out of the network,
|
20110
|
-
# selected by
|
20177
|
+
# selected by Google Cloud.
|
20111
20178
|
# Corresponds to the JSON property `gatewayIPv4`
|
20112
20179
|
# @return [String]
|
20113
20180
|
attr_accessor :gateway_i_pv4
|
@@ -22014,9 +22081,10 @@ module Google
|
|
22014
22081
|
# @return [Fixnum]
|
22015
22082
|
attr_accessor :queue_count
|
22016
22083
|
|
22017
|
-
# The stack type for this network interface
|
22018
|
-
#
|
22019
|
-
# both set at instance creation
|
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.
|
22020
22088
|
# Corresponds to the JSON property `stackType`
|
22021
22089
|
# @return [String]
|
22022
22090
|
attr_accessor :stack_type
|
@@ -23286,6 +23354,25 @@ module Google
|
|
23286
23354
|
end
|
23287
23355
|
end
|
23288
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
|
+
|
23289
23376
|
# Represent a sole-tenant Node Template resource. You can use a template to
|
23290
23377
|
# define properties for nodes in a node group. For more information, read
|
23291
23378
|
# Creating node groups and instances.
|
@@ -34013,7 +34100,7 @@ module Google
|
|
34013
34100
|
# Represents a ServiceAttachment resource. A service attachment represents a
|
34014
34101
|
# service that a producer has exposed. It encapsulates the load balancer which
|
34015
34102
|
# fronts the service runs and a list of NAT IP ranges that the producers uses to
|
34016
|
-
# represent the consumers connecting to the service.
|
34103
|
+
# represent the consumers connecting to the service.
|
34017
34104
|
class ServiceAttachment
|
34018
34105
|
include Google::Apis::Core::Hashable
|
34019
34106
|
|
@@ -38062,8 +38149,11 @@ module Google
|
|
38062
38149
|
# Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that
|
38063
38150
|
# describes how the proxy should authenticate inbound traffic. serverTlsPolicy
|
38064
38151
|
# only applies to a global TargetHttpsProxy attached to globalForwardingRules
|
38065
|
-
# with the loadBalancingScheme set to INTERNAL_SELF_MANAGED
|
38066
|
-
#
|
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.
|
38067
38157
|
# Corresponds to the JSON property `serverTlsPolicy`
|
38068
38158
|
# @return [String]
|
38069
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.
|
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 = "
|
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.
|
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-
|
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.
|
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: []
|