google-apis-compute_v1 0.45.0 → 0.48.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 +12 -0
- data/lib/google/apis/compute_v1/classes.rb +215 -29
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +74 -0
- data/lib/google/apis/compute_v1/service.rb +381 -0
- 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: 6106c1dacbe40eefee1e19bc2bf0bf6050cde7f7c90bd7c85dbe6f0e79de9486
|
4
|
+
data.tar.gz: 12b15fd9e882b01a027335738f02a044e4e979c9c853eaaa2ae5419df356dc4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e96a7a981f004847027cb42c929d7e59e5fc91b7f258c470a490964b958a3c142578ea3c332d81d1dfb3fe4c1f8d589db62d56a7104044f0e884200292f025f6
|
7
|
+
data.tar.gz: ac38b6fbfb1d0d1f54f80f34e8c596c3dd64cde691f8a758d631941d4ff1b5b15f6e296fead89def3ecedc7c0ff49bd903d7e1788dc9e4326584ceb2f33867ee
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-compute_v1
|
2
2
|
|
3
|
+
### v0.48.0 (2022-08-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220816
|
6
|
+
|
7
|
+
### v0.47.0 (2022-08-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220809
|
10
|
+
|
11
|
+
### v0.46.0 (2022-08-06)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220726
|
14
|
+
|
3
15
|
### v0.45.0 (2022-07-26)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220720
|
@@ -1274,6 +1274,14 @@ module Google
|
|
1274
1274
|
# @return [Fixnum]
|
1275
1275
|
attr_accessor :disk_size_gb
|
1276
1276
|
|
1277
|
+
# [Input Only] Whether to force attach the regional disk even if it's currently
|
1278
|
+
# attached to another instance. If you try to force attach a zonal disk to an
|
1279
|
+
# instance, you will receive an error.
|
1280
|
+
# Corresponds to the JSON property `forceAttach`
|
1281
|
+
# @return [Boolean]
|
1282
|
+
attr_accessor :force_attach
|
1283
|
+
alias_method :force_attach?, :force_attach
|
1284
|
+
|
1277
1285
|
# A list of features to enable on the guest operating system. Applicable only
|
1278
1286
|
# for bootable images. Read Enabling guest operating system features to see a
|
1279
1287
|
# list of available options.
|
@@ -1359,6 +1367,7 @@ module Google
|
|
1359
1367
|
@device_name = args[:device_name] if args.key?(:device_name)
|
1360
1368
|
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
|
1361
1369
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
1370
|
+
@force_attach = args[:force_attach] if args.key?(:force_attach)
|
1362
1371
|
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
1363
1372
|
@index = args[:index] if args.key?(:index)
|
1364
1373
|
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
|
@@ -1444,6 +1453,14 @@ module Google
|
|
1444
1453
|
# @return [Fixnum]
|
1445
1454
|
attr_accessor :provisioned_iops
|
1446
1455
|
|
1456
|
+
# Resource manager tags to be bound to the disk. Tag keys and values have the
|
1457
|
+
# same definition as resource manager tags. Keys must be in the format `tagKeys/`
|
1458
|
+
# tag_key_id``, and values are in the format `tagValues/456`. The field is
|
1459
|
+
# ignored (both PUT & PATCH) when empty.
|
1460
|
+
# Corresponds to the JSON property `resourceManagerTags`
|
1461
|
+
# @return [Hash<String,String>]
|
1462
|
+
attr_accessor :resource_manager_tags
|
1463
|
+
|
1447
1464
|
# Resource policies applied to this disk for automatic snapshot creations.
|
1448
1465
|
# Specified using the full or partial URL. For instance template, specify only
|
1449
1466
|
# the resource policy name.
|
@@ -1507,6 +1524,7 @@ module Google
|
|
1507
1524
|
@licenses = args[:licenses] if args.key?(:licenses)
|
1508
1525
|
@on_update_action = args[:on_update_action] if args.key?(:on_update_action)
|
1509
1526
|
@provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
|
1527
|
+
@resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
|
1510
1528
|
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
1511
1529
|
@source_image = args[:source_image] if args.key?(:source_image)
|
1512
1530
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
@@ -4519,25 +4537,28 @@ module Google
|
|
4519
4537
|
# anyone who is authenticated with a Google account or a service account. * `
|
4520
4538
|
# user:`emailid``: An email address that represents a specific Google account.
|
4521
4539
|
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
4522
|
-
# address that represents a service account. For example, `my-other-app@
|
4523
|
-
# gserviceaccount.com`. * `
|
4524
|
-
#
|
4525
|
-
#
|
4526
|
-
#
|
4527
|
-
#
|
4528
|
-
#
|
4529
|
-
#
|
4530
|
-
#
|
4531
|
-
#
|
4532
|
-
#
|
4533
|
-
# emailid
|
4534
|
-
#
|
4535
|
-
#
|
4536
|
-
#
|
4537
|
-
#
|
4538
|
-
#
|
4539
|
-
#
|
4540
|
-
#
|
4540
|
+
# address that represents a Google service account. For example, `my-other-app@
|
4541
|
+
# appspot.gserviceaccount.com`. * `serviceAccount:`projectid`.svc.id.goog[`
|
4542
|
+
# namespace`/`kubernetes-sa`]`: An identifier for a [Kubernetes service account](
|
4543
|
+
# https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
|
4544
|
+
# accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`
|
4545
|
+
# . * `group:`emailid``: An email address that represents a Google group. For
|
4546
|
+
# example, `admins@example.com`. * `deleted:user:`emailid`?uid=`uniqueid``: An
|
4547
|
+
# email address (plus unique identifier) representing a user that has been
|
4548
|
+
# recently deleted. For example, `alice@example.com?uid=123456789012345678901`.
|
4549
|
+
# If the user is recovered, this value reverts to `user:`emailid`` and the
|
4550
|
+
# recovered user retains the role in the binding. * `deleted:serviceAccount:`
|
4551
|
+
# emailid`?uid=`uniqueid``: An email address (plus unique identifier)
|
4552
|
+
# representing a service account that has been recently deleted. For example, `
|
4553
|
+
# my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
|
4554
|
+
# service account is undeleted, this value reverts to `serviceAccount:`emailid``
|
4555
|
+
# and the undeleted service account retains the role in the binding. * `deleted:
|
4556
|
+
# group:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
|
4557
|
+
# representing a Google group that has been recently deleted. For example, `
|
4558
|
+
# admins@example.com?uid=123456789012345678901`. If the group is recovered, this
|
4559
|
+
# value reverts to `group:`emailid`` and the recovered group retains the role in
|
4560
|
+
# the binding. * `domain:`domain``: The G Suite domain (primary) that represents
|
4561
|
+
# all the users of that domain. For example, `google.com` or `example.com`.
|
4541
4562
|
# Corresponds to the JSON property `members`
|
4542
4563
|
# @return [Array<String>]
|
4543
4564
|
attr_accessor :members
|
@@ -4873,6 +4894,11 @@ module Google
|
|
4873
4894
|
# @return [Google::Apis::ComputeV1::LicenseResourceCommitment]
|
4874
4895
|
attr_accessor :license_resource
|
4875
4896
|
|
4897
|
+
# List of source commitments to be merged into a new commitment.
|
4898
|
+
# Corresponds to the JSON property `mergeSourceCommitments`
|
4899
|
+
# @return [Array<String>]
|
4900
|
+
attr_accessor :merge_source_commitments
|
4901
|
+
|
4876
4902
|
# Name of the resource. Provided by the client when the resource is created. The
|
4877
4903
|
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
4878
4904
|
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
|
@@ -4911,6 +4937,11 @@ module Google
|
|
4911
4937
|
# @return [String]
|
4912
4938
|
attr_accessor :self_link
|
4913
4939
|
|
4940
|
+
# Source commitment to be splitted into a new commitment.
|
4941
|
+
# Corresponds to the JSON property `splitSourceCommitment`
|
4942
|
+
# @return [String]
|
4943
|
+
attr_accessor :split_source_commitment
|
4944
|
+
|
4914
4945
|
# [Output Only] Commitment start time in RFC3339 text format.
|
4915
4946
|
# Corresponds to the JSON property `startTimestamp`
|
4916
4947
|
# @return [String]
|
@@ -4950,12 +4981,14 @@ module Google
|
|
4950
4981
|
@id = args[:id] if args.key?(:id)
|
4951
4982
|
@kind = args[:kind] if args.key?(:kind)
|
4952
4983
|
@license_resource = args[:license_resource] if args.key?(:license_resource)
|
4984
|
+
@merge_source_commitments = args[:merge_source_commitments] if args.key?(:merge_source_commitments)
|
4953
4985
|
@name = args[:name] if args.key?(:name)
|
4954
4986
|
@plan = args[:plan] if args.key?(:plan)
|
4955
4987
|
@region = args[:region] if args.key?(:region)
|
4956
4988
|
@reservations = args[:reservations] if args.key?(:reservations)
|
4957
4989
|
@resources = args[:resources] if args.key?(:resources)
|
4958
4990
|
@self_link = args[:self_link] if args.key?(:self_link)
|
4991
|
+
@split_source_commitment = args[:split_source_commitment] if args.key?(:split_source_commitment)
|
4959
4992
|
@start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp)
|
4960
4993
|
@status = args[:status] if args.key?(:status)
|
4961
4994
|
@status_message = args[:status_message] if args.key?(:status_message)
|
@@ -5792,6 +5825,11 @@ module Google
|
|
5792
5825
|
# @return [String]
|
5793
5826
|
attr_accessor :options
|
5794
5827
|
|
5828
|
+
# Additional disk params.
|
5829
|
+
# Corresponds to the JSON property `params`
|
5830
|
+
# @return [Google::Apis::ComputeV1::DiskParams]
|
5831
|
+
attr_accessor :params
|
5832
|
+
|
5795
5833
|
# Physical block size of the persistent disk, in bytes. If not present in a
|
5796
5834
|
# request, a default value is used. The currently supported size is 4096, other
|
5797
5835
|
# sizes may be added in the future. If an unsupported value is requested, the
|
@@ -5977,6 +6015,7 @@ module Google
|
|
5977
6015
|
@location_hint = args[:location_hint] if args.key?(:location_hint)
|
5978
6016
|
@name = args[:name] if args.key?(:name)
|
5979
6017
|
@options = args[:options] if args.key?(:options)
|
6018
|
+
@params = args[:params] if args.key?(:params)
|
5980
6019
|
@physical_block_size_bytes = args[:physical_block_size_bytes] if args.key?(:physical_block_size_bytes)
|
5981
6020
|
@provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
|
5982
6021
|
@region = args[:region] if args.key?(:region)
|
@@ -6323,6 +6362,28 @@ module Google
|
|
6323
6362
|
end
|
6324
6363
|
end
|
6325
6364
|
|
6365
|
+
# Additional disk params.
|
6366
|
+
class DiskParams
|
6367
|
+
include Google::Apis::Core::Hashable
|
6368
|
+
|
6369
|
+
# Resource manager tags to be bound to the disk. Tag keys and values have the
|
6370
|
+
# same definition as resource manager tags. Keys must be in the format `tagKeys/`
|
6371
|
+
# tag_key_id``, and values are in the format `tagValues/456`. The field is
|
6372
|
+
# ignored (both PUT & PATCH) when empty.
|
6373
|
+
# Corresponds to the JSON property `resourceManagerTags`
|
6374
|
+
# @return [Hash<String,String>]
|
6375
|
+
attr_accessor :resource_manager_tags
|
6376
|
+
|
6377
|
+
def initialize(**args)
|
6378
|
+
update!(**args)
|
6379
|
+
end
|
6380
|
+
|
6381
|
+
# Update properties of this object
|
6382
|
+
def update!(**args)
|
6383
|
+
@resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
|
6384
|
+
end
|
6385
|
+
end
|
6386
|
+
|
6326
6387
|
# Represents a Disk Type resource. Google Compute Engine has two Disk Type
|
6327
6388
|
# resources: * [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) * [
|
6328
6389
|
# Zonal](/compute/docs/reference/rest/v1/diskTypes) You can choose from a
|
@@ -11592,9 +11653,9 @@ module Google
|
|
11592
11653
|
# forwarding the request to the selected backend. If routeAction specifies any
|
11593
11654
|
# weightedBackendServices, service must not be set. Conversely if service is set,
|
11594
11655
|
# routeAction cannot contain any weightedBackendServices. Only one of
|
11595
|
-
# urlRedirect, service or routeAction.weightedBackendService must be set.
|
11596
|
-
#
|
11597
|
-
# within a route rule's routeAction.
|
11656
|
+
# urlRedirect, service or routeAction.weightedBackendService must be set. URL
|
11657
|
+
# maps for Classic external HTTP(S) load balancers only support the urlRewrite
|
11658
|
+
# action within a route rule's routeAction.
|
11598
11659
|
# Corresponds to the JSON property `routeAction`
|
11599
11660
|
# @return [Google::Apis::ComputeV1::HttpRouteAction]
|
11600
11661
|
attr_accessor :route_action
|
@@ -12883,6 +12944,68 @@ module Google
|
|
12883
12944
|
end
|
12884
12945
|
end
|
12885
12946
|
|
12947
|
+
#
|
12948
|
+
class InstanceConsumptionData
|
12949
|
+
include Google::Apis::Core::Hashable
|
12950
|
+
|
12951
|
+
# Resources consumed by the instance.
|
12952
|
+
# Corresponds to the JSON property `consumptionInfo`
|
12953
|
+
# @return [Google::Apis::ComputeV1::InstanceConsumptionInfo]
|
12954
|
+
attr_accessor :consumption_info
|
12955
|
+
|
12956
|
+
# Server-defined URL for the instance.
|
12957
|
+
# Corresponds to the JSON property `instance`
|
12958
|
+
# @return [String]
|
12959
|
+
attr_accessor :instance
|
12960
|
+
|
12961
|
+
def initialize(**args)
|
12962
|
+
update!(**args)
|
12963
|
+
end
|
12964
|
+
|
12965
|
+
# Update properties of this object
|
12966
|
+
def update!(**args)
|
12967
|
+
@consumption_info = args[:consumption_info] if args.key?(:consumption_info)
|
12968
|
+
@instance = args[:instance] if args.key?(:instance)
|
12969
|
+
end
|
12970
|
+
end
|
12971
|
+
|
12972
|
+
#
|
12973
|
+
class InstanceConsumptionInfo
|
12974
|
+
include Google::Apis::Core::Hashable
|
12975
|
+
|
12976
|
+
# The number of virtual CPUs that are available to the instance.
|
12977
|
+
# Corresponds to the JSON property `guestCpus`
|
12978
|
+
# @return [Fixnum]
|
12979
|
+
attr_accessor :guest_cpus
|
12980
|
+
|
12981
|
+
# The amount of local SSD storage available to the instance, defined in GiB.
|
12982
|
+
# Corresponds to the JSON property `localSsdGb`
|
12983
|
+
# @return [Fixnum]
|
12984
|
+
attr_accessor :local_ssd_gb
|
12985
|
+
|
12986
|
+
# The amount of physical memory available to the instance, defined in MiB.
|
12987
|
+
# Corresponds to the JSON property `memoryMb`
|
12988
|
+
# @return [Fixnum]
|
12989
|
+
attr_accessor :memory_mb
|
12990
|
+
|
12991
|
+
# The minimal guaranteed number of virtual CPUs that are reserved.
|
12992
|
+
# Corresponds to the JSON property `minNodeCpus`
|
12993
|
+
# @return [Fixnum]
|
12994
|
+
attr_accessor :min_node_cpus
|
12995
|
+
|
12996
|
+
def initialize(**args)
|
12997
|
+
update!(**args)
|
12998
|
+
end
|
12999
|
+
|
13000
|
+
# Update properties of this object
|
13001
|
+
def update!(**args)
|
13002
|
+
@guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
|
13003
|
+
@local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb)
|
13004
|
+
@memory_mb = args[:memory_mb] if args.key?(:memory_mb)
|
13005
|
+
@min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
|
13006
|
+
end
|
13007
|
+
end
|
13008
|
+
|
12886
13009
|
# Represents an Instance Group resource. Instance Groups can be used to
|
12887
13010
|
# configure a target for load balancing. Instance groups can either be managed
|
12888
13011
|
# or unmanaged. To create managed instance groups, use the instanceGroupManager
|
@@ -18032,7 +18155,7 @@ module Google
|
|
18032
18155
|
class LocalizedMessage
|
18033
18156
|
include Google::Apis::Core::Hashable
|
18034
18157
|
|
18035
|
-
# The locale used following the specification defined at
|
18158
|
+
# The locale used following the specification defined at https://www.rfc-editor.
|
18036
18159
|
# org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
|
18037
18160
|
# Corresponds to the JSON property `locale`
|
18038
18161
|
# @return [String]
|
@@ -21421,6 +21544,11 @@ module Google
|
|
21421
21544
|
# @return [String]
|
21422
21545
|
attr_accessor :self_link
|
21423
21546
|
|
21547
|
+
# The share setting for reservations and sole tenancy node groups.
|
21548
|
+
# Corresponds to the JSON property `shareSettings`
|
21549
|
+
# @return [Google::Apis::ComputeV1::ShareSettings]
|
21550
|
+
attr_accessor :share_settings
|
21551
|
+
|
21424
21552
|
# [Output Only] The total number of nodes in the node group.
|
21425
21553
|
# Corresponds to the JSON property `size`
|
21426
21554
|
# @return [Fixnum]
|
@@ -21455,6 +21583,7 @@ module Google
|
|
21455
21583
|
@name = args[:name] if args.key?(:name)
|
21456
21584
|
@node_template = args[:node_template] if args.key?(:node_template)
|
21457
21585
|
@self_link = args[:self_link] if args.key?(:self_link)
|
21586
|
+
@share_settings = args[:share_settings] if args.key?(:share_settings)
|
21458
21587
|
@size = args[:size] if args.key?(:size)
|
21459
21588
|
@status = args[:status] if args.key?(:status)
|
21460
21589
|
@zone = args[:zone] if args.key?(:zone)
|
@@ -21776,6 +21905,11 @@ module Google
|
|
21776
21905
|
# @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
|
21777
21906
|
attr_accessor :accelerators
|
21778
21907
|
|
21908
|
+
# Node resources that are reserved by all instances.
|
21909
|
+
# Corresponds to the JSON property `consumedResources`
|
21910
|
+
# @return [Google::Apis::ComputeV1::InstanceConsumptionInfo]
|
21911
|
+
attr_accessor :consumed_resources
|
21912
|
+
|
21779
21913
|
# CPU overcommit.
|
21780
21914
|
# Corresponds to the JSON property `cpuOvercommitType`
|
21781
21915
|
# @return [String]
|
@@ -21786,6 +21920,11 @@ module Google
|
|
21786
21920
|
# @return [Array<Google::Apis::ComputeV1::LocalDisk>]
|
21787
21921
|
attr_accessor :disks
|
21788
21922
|
|
21923
|
+
# Instance data that shows consumed resources on the node.
|
21924
|
+
# Corresponds to the JSON property `instanceConsumptionData`
|
21925
|
+
# @return [Array<Google::Apis::ComputeV1::InstanceConsumptionData>]
|
21926
|
+
attr_accessor :instance_consumption_data
|
21927
|
+
|
21789
21928
|
# Instances scheduled on this node.
|
21790
21929
|
# Corresponds to the JSON property `instances`
|
21791
21930
|
# @return [Array<String>]
|
@@ -21822,6 +21961,11 @@ module Google
|
|
21822
21961
|
# @return [String]
|
21823
21962
|
attr_accessor :status
|
21824
21963
|
|
21964
|
+
# Total amount of available resources on the node.
|
21965
|
+
# Corresponds to the JSON property `totalResources`
|
21966
|
+
# @return [Google::Apis::ComputeV1::InstanceConsumptionInfo]
|
21967
|
+
attr_accessor :total_resources
|
21968
|
+
|
21825
21969
|
def initialize(**args)
|
21826
21970
|
update!(**args)
|
21827
21971
|
end
|
@@ -21829,8 +21973,10 @@ module Google
|
|
21829
21973
|
# Update properties of this object
|
21830
21974
|
def update!(**args)
|
21831
21975
|
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
21976
|
+
@consumed_resources = args[:consumed_resources] if args.key?(:consumed_resources)
|
21832
21977
|
@cpu_overcommit_type = args[:cpu_overcommit_type] if args.key?(:cpu_overcommit_type)
|
21833
21978
|
@disks = args[:disks] if args.key?(:disks)
|
21979
|
+
@instance_consumption_data = args[:instance_consumption_data] if args.key?(:instance_consumption_data)
|
21834
21980
|
@instances = args[:instances] if args.key?(:instances)
|
21835
21981
|
@name = args[:name] if args.key?(:name)
|
21836
21982
|
@node_type = args[:node_type] if args.key?(:node_type)
|
@@ -21838,6 +21984,7 @@ module Google
|
|
21838
21984
|
@server_binding = args[:server_binding] if args.key?(:server_binding)
|
21839
21985
|
@server_id = args[:server_id] if args.key?(:server_id)
|
21840
21986
|
@status = args[:status] if args.key?(:status)
|
21987
|
+
@total_resources = args[:total_resources] if args.key?(:total_resources)
|
21841
21988
|
end
|
21842
21989
|
end
|
21843
21990
|
|
@@ -24758,8 +24905,9 @@ module Google
|
|
24758
24905
|
# If defaultRouteAction specifies any weightedBackendServices, defaultService
|
24759
24906
|
# must not be set. Conversely if defaultService is set, defaultRouteAction
|
24760
24907
|
# cannot contain any weightedBackendServices. Only one of defaultRouteAction or
|
24761
|
-
# defaultUrlRedirect must be set.
|
24762
|
-
#
|
24908
|
+
# defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load
|
24909
|
+
# balancers only support the urlRewrite action within a path matcher's
|
24910
|
+
# defaultRouteAction.
|
24763
24911
|
# Corresponds to the JSON property `defaultRouteAction`
|
24764
24912
|
# @return [Google::Apis::ComputeV1::HttpRouteAction]
|
24765
24913
|
attr_accessor :default_route_action
|
@@ -24858,8 +25006,9 @@ module Google
|
|
24858
25006
|
# the request to the selected backend. If routeAction specifies any
|
24859
25007
|
# weightedBackendServices, service must not be set. Conversely if service is set,
|
24860
25008
|
# routeAction cannot contain any weightedBackendServices. Only one of
|
24861
|
-
# routeAction or urlRedirect must be set. URL maps for external HTTP(S)
|
24862
|
-
# balancers support
|
25009
|
+
# routeAction or urlRedirect must be set. URL maps for Classic external HTTP(S)
|
25010
|
+
# load balancers only support the urlRewrite action within a path rule's
|
25011
|
+
# routeAction.
|
24863
25012
|
# Corresponds to the JSON property `routeAction`
|
24864
25013
|
# @return [Google::Apis::ComputeV1::HttpRouteAction]
|
24865
25014
|
attr_accessor :route_action
|
@@ -31836,6 +31985,12 @@ module Google
|
|
31836
31985
|
class SecurityPolicyAdvancedOptionsConfig
|
31837
31986
|
include Google::Apis::Core::Hashable
|
31838
31987
|
|
31988
|
+
# Custom configuration to apply the JSON parsing. Only applicable when
|
31989
|
+
# json_parsing is set to STANDARD.
|
31990
|
+
# Corresponds to the JSON property `jsonCustomConfig`
|
31991
|
+
# @return [Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfigJsonCustomConfig]
|
31992
|
+
attr_accessor :json_custom_config
|
31993
|
+
|
31839
31994
|
#
|
31840
31995
|
# Corresponds to the JSON property `jsonParsing`
|
31841
31996
|
# @return [String]
|
@@ -31852,11 +32007,35 @@ module Google
|
|
31852
32007
|
|
31853
32008
|
# Update properties of this object
|
31854
32009
|
def update!(**args)
|
32010
|
+
@json_custom_config = args[:json_custom_config] if args.key?(:json_custom_config)
|
31855
32011
|
@json_parsing = args[:json_parsing] if args.key?(:json_parsing)
|
31856
32012
|
@log_level = args[:log_level] if args.key?(:log_level)
|
31857
32013
|
end
|
31858
32014
|
end
|
31859
32015
|
|
32016
|
+
#
|
32017
|
+
class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
|
32018
|
+
include Google::Apis::Core::Hashable
|
32019
|
+
|
32020
|
+
# A list of custom Content-Type header values to apply the JSON parsing. As per
|
32021
|
+
# RFC 1341, a Content-Type header value has the following format: Content-Type :=
|
32022
|
+
# type "/" subtype *[";" parameter] When configuring a custom Content-Type
|
32023
|
+
# header value, only the type/subtype needs to be specified, and the parameters
|
32024
|
+
# should be excluded.
|
32025
|
+
# Corresponds to the JSON property `contentTypes`
|
32026
|
+
# @return [Array<String>]
|
32027
|
+
attr_accessor :content_types
|
32028
|
+
|
32029
|
+
def initialize(**args)
|
32030
|
+
update!(**args)
|
32031
|
+
end
|
32032
|
+
|
32033
|
+
# Update properties of this object
|
32034
|
+
def update!(**args)
|
32035
|
+
@content_types = args[:content_types] if args.key?(:content_types)
|
32036
|
+
end
|
32037
|
+
end
|
32038
|
+
|
31860
32039
|
#
|
31861
32040
|
class SecurityPolicyDdosProtectionConfig
|
31862
32041
|
include Google::Apis::Core::Hashable
|
@@ -34486,6 +34665,12 @@ module Google
|
|
34486
34665
|
# @return [String]
|
34487
34666
|
attr_accessor :profile
|
34488
34667
|
|
34668
|
+
# [Output Only] URL of the region where the regional SSL policy resides. This
|
34669
|
+
# field is not applicable to global SSL policies.
|
34670
|
+
# Corresponds to the JSON property `region`
|
34671
|
+
# @return [String]
|
34672
|
+
attr_accessor :region
|
34673
|
+
|
34489
34674
|
# [Output Only] Server-defined URL for the resource.
|
34490
34675
|
# Corresponds to the JSON property `selfLink`
|
34491
34676
|
# @return [String]
|
@@ -34513,6 +34698,7 @@ module Google
|
|
34513
34698
|
@min_tls_version = args[:min_tls_version] if args.key?(:min_tls_version)
|
34514
34699
|
@name = args[:name] if args.key?(:name)
|
34515
34700
|
@profile = args[:profile] if args.key?(:profile)
|
34701
|
+
@region = args[:region] if args.key?(:region)
|
34516
34702
|
@self_link = args[:self_link] if args.key?(:self_link)
|
34517
34703
|
@warnings = args[:warnings] if args.key?(:warnings)
|
34518
34704
|
end
|
@@ -38753,8 +38939,8 @@ module Google
|
|
38753
38939
|
# defaultRouteAction specifies any weightedBackendServices, defaultService must
|
38754
38940
|
# not be set. Conversely if defaultService is set, defaultRouteAction cannot
|
38755
38941
|
# contain any weightedBackendServices. Only one of defaultRouteAction or
|
38756
|
-
# defaultUrlRedirect must be set.
|
38757
|
-
#
|
38942
|
+
# defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load
|
38943
|
+
# balancers only support the urlRewrite action within defaultRouteAction.
|
38758
38944
|
# defaultRouteAction has no effect when the URL map is bound to a target gRPC
|
38759
38945
|
# proxy that has the validateForProxyless field set to true.
|
38760
38946
|
# Corresponds to the JSON property `defaultRouteAction`
|
@@ -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.48.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220816"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -724,6 +724,12 @@ module Google
|
|
724
724
|
include Google::Apis::Core::JsonObjectSupport
|
725
725
|
end
|
726
726
|
|
727
|
+
class DiskParams
|
728
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
729
|
+
|
730
|
+
include Google::Apis::Core::JsonObjectSupport
|
731
|
+
end
|
732
|
+
|
727
733
|
class DiskType
|
728
734
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
729
735
|
|
@@ -1492,6 +1498,18 @@ module Google
|
|
1492
1498
|
include Google::Apis::Core::JsonObjectSupport
|
1493
1499
|
end
|
1494
1500
|
|
1501
|
+
class InstanceConsumptionData
|
1502
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1503
|
+
|
1504
|
+
include Google::Apis::Core::JsonObjectSupport
|
1505
|
+
end
|
1506
|
+
|
1507
|
+
class InstanceConsumptionInfo
|
1508
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1509
|
+
|
1510
|
+
include Google::Apis::Core::JsonObjectSupport
|
1511
|
+
end
|
1512
|
+
|
1495
1513
|
class InstanceGroup
|
1496
1514
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1497
1515
|
|
@@ -4150,6 +4168,12 @@ module Google
|
|
4150
4168
|
include Google::Apis::Core::JsonObjectSupport
|
4151
4169
|
end
|
4152
4170
|
|
4171
|
+
class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
|
4172
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4173
|
+
|
4174
|
+
include Google::Apis::Core::JsonObjectSupport
|
4175
|
+
end
|
4176
|
+
|
4153
4177
|
class SecurityPolicyDdosProtectionConfig
|
4154
4178
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4155
4179
|
|
@@ -5843,6 +5867,7 @@ module Google
|
|
5843
5867
|
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
|
5844
5868
|
|
5845
5869
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
5870
|
+
property :force_attach, as: 'forceAttach'
|
5846
5871
|
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
|
5847
5872
|
|
5848
5873
|
property :index, as: 'index'
|
@@ -5871,6 +5896,7 @@ module Google
|
|
5871
5896
|
collection :licenses, as: 'licenses'
|
5872
5897
|
property :on_update_action, as: 'onUpdateAction'
|
5873
5898
|
property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
|
5899
|
+
hash :resource_manager_tags, as: 'resourceManagerTags'
|
5874
5900
|
collection :resource_policies, as: 'resourcePolicies'
|
5875
5901
|
property :source_image, as: 'sourceImage'
|
5876
5902
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
|
@@ -6606,6 +6632,7 @@ module Google
|
|
6606
6632
|
property :kind, as: 'kind'
|
6607
6633
|
property :license_resource, as: 'licenseResource', class: Google::Apis::ComputeV1::LicenseResourceCommitment, decorator: Google::Apis::ComputeV1::LicenseResourceCommitment::Representation
|
6608
6634
|
|
6635
|
+
collection :merge_source_commitments, as: 'mergeSourceCommitments'
|
6609
6636
|
property :name, as: 'name'
|
6610
6637
|
property :plan, as: 'plan'
|
6611
6638
|
property :region, as: 'region'
|
@@ -6614,6 +6641,7 @@ module Google
|
|
6614
6641
|
collection :resources, as: 'resources', class: Google::Apis::ComputeV1::ResourceCommitment, decorator: Google::Apis::ComputeV1::ResourceCommitment::Representation
|
6615
6642
|
|
6616
6643
|
property :self_link, as: 'selfLink'
|
6644
|
+
property :split_source_commitment, as: 'splitSourceCommitment'
|
6617
6645
|
property :start_timestamp, as: 'startTimestamp'
|
6618
6646
|
property :status, as: 'status'
|
6619
6647
|
property :status_message, as: 'statusMessage'
|
@@ -6825,6 +6853,8 @@ module Google
|
|
6825
6853
|
property :location_hint, as: 'locationHint'
|
6826
6854
|
property :name, as: 'name'
|
6827
6855
|
property :options, as: 'options'
|
6856
|
+
property :params, as: 'params', class: Google::Apis::ComputeV1::DiskParams, decorator: Google::Apis::ComputeV1::DiskParams::Representation
|
6857
|
+
|
6828
6858
|
property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
|
6829
6859
|
property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
|
6830
6860
|
property :region, as: 'region'
|
@@ -6934,6 +6964,13 @@ module Google
|
|
6934
6964
|
end
|
6935
6965
|
end
|
6936
6966
|
|
6967
|
+
class DiskParams
|
6968
|
+
# @private
|
6969
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6970
|
+
hash :resource_manager_tags, as: 'resourceManagerTags'
|
6971
|
+
end
|
6972
|
+
end
|
6973
|
+
|
6937
6974
|
class DiskType
|
6938
6975
|
# @private
|
6939
6976
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8459,6 +8496,25 @@ module Google
|
|
8459
8496
|
end
|
8460
8497
|
end
|
8461
8498
|
|
8499
|
+
class InstanceConsumptionData
|
8500
|
+
# @private
|
8501
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8502
|
+
property :consumption_info, as: 'consumptionInfo', class: Google::Apis::ComputeV1::InstanceConsumptionInfo, decorator: Google::Apis::ComputeV1::InstanceConsumptionInfo::Representation
|
8503
|
+
|
8504
|
+
property :instance, as: 'instance'
|
8505
|
+
end
|
8506
|
+
end
|
8507
|
+
|
8508
|
+
class InstanceConsumptionInfo
|
8509
|
+
# @private
|
8510
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8511
|
+
property :guest_cpus, as: 'guestCpus'
|
8512
|
+
property :local_ssd_gb, as: 'localSsdGb'
|
8513
|
+
property :memory_mb, as: 'memoryMb'
|
8514
|
+
property :min_node_cpus, as: 'minNodeCpus'
|
8515
|
+
end
|
8516
|
+
end
|
8517
|
+
|
8462
8518
|
class InstanceGroup
|
8463
8519
|
# @private
|
8464
8520
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -10636,6 +10692,8 @@ module Google
|
|
10636
10692
|
property :name, as: 'name'
|
10637
10693
|
property :node_template, as: 'nodeTemplate'
|
10638
10694
|
property :self_link, as: 'selfLink'
|
10695
|
+
property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeV1::ShareSettings, decorator: Google::Apis::ComputeV1::ShareSettings::Representation
|
10696
|
+
|
10639
10697
|
property :size, as: 'size'
|
10640
10698
|
property :status, as: 'status'
|
10641
10699
|
property :zone, as: 'zone'
|
@@ -10730,9 +10788,13 @@ module Google
|
|
10730
10788
|
class Representation < Google::Apis::Core::JsonRepresentation
|
10731
10789
|
collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
|
10732
10790
|
|
10791
|
+
property :consumed_resources, as: 'consumedResources', class: Google::Apis::ComputeV1::InstanceConsumptionInfo, decorator: Google::Apis::ComputeV1::InstanceConsumptionInfo::Representation
|
10792
|
+
|
10733
10793
|
property :cpu_overcommit_type, as: 'cpuOvercommitType'
|
10734
10794
|
collection :disks, as: 'disks', class: Google::Apis::ComputeV1::LocalDisk, decorator: Google::Apis::ComputeV1::LocalDisk::Representation
|
10735
10795
|
|
10796
|
+
collection :instance_consumption_data, as: 'instanceConsumptionData', class: Google::Apis::ComputeV1::InstanceConsumptionData, decorator: Google::Apis::ComputeV1::InstanceConsumptionData::Representation
|
10797
|
+
|
10736
10798
|
collection :instances, as: 'instances'
|
10737
10799
|
property :name, as: 'name'
|
10738
10800
|
property :node_type, as: 'nodeType'
|
@@ -10741,6 +10803,8 @@ module Google
|
|
10741
10803
|
|
10742
10804
|
property :server_id, as: 'serverId'
|
10743
10805
|
property :status, as: 'status'
|
10806
|
+
property :total_resources, as: 'totalResources', class: Google::Apis::ComputeV1::InstanceConsumptionInfo, decorator: Google::Apis::ComputeV1::InstanceConsumptionInfo::Representation
|
10807
|
+
|
10744
10808
|
end
|
10745
10809
|
end
|
10746
10810
|
|
@@ -13308,11 +13372,20 @@ module Google
|
|
13308
13372
|
class SecurityPolicyAdvancedOptionsConfig
|
13309
13373
|
# @private
|
13310
13374
|
class Representation < Google::Apis::Core::JsonRepresentation
|
13375
|
+
property :json_custom_config, as: 'jsonCustomConfig', class: Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfigJsonCustomConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfigJsonCustomConfig::Representation
|
13376
|
+
|
13311
13377
|
property :json_parsing, as: 'jsonParsing'
|
13312
13378
|
property :log_level, as: 'logLevel'
|
13313
13379
|
end
|
13314
13380
|
end
|
13315
13381
|
|
13382
|
+
class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
|
13383
|
+
# @private
|
13384
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
13385
|
+
collection :content_types, as: 'contentTypes'
|
13386
|
+
end
|
13387
|
+
end
|
13388
|
+
|
13316
13389
|
class SecurityPolicyDdosProtectionConfig
|
13317
13390
|
# @private
|
13318
13391
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -13978,6 +14051,7 @@ module Google
|
|
13978
14051
|
property :min_tls_version, as: 'minTlsVersion'
|
13979
14052
|
property :name, as: 'name'
|
13980
14053
|
property :profile, as: 'profile'
|
14054
|
+
property :region, as: 'region'
|
13981
14055
|
property :self_link, as: 'selfLink'
|
13982
14056
|
collection :warnings, as: 'warnings', class: Google::Apis::ComputeV1::SslPolicy::Warning, decorator: Google::Apis::ComputeV1::SslPolicy::Warning::Representation
|
13983
14057
|
|
@@ -26555,6 +26555,387 @@ module Google
|
|
26555
26555
|
execute_or_queue_command(command, &block)
|
26556
26556
|
end
|
26557
26557
|
|
26558
|
+
# Deletes the specified SSL policy. The SSL policy resource can be deleted only
|
26559
|
+
# if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
|
26560
|
+
# @param [String] project
|
26561
|
+
# Project ID for this request.
|
26562
|
+
# @param [String] region
|
26563
|
+
# Name of the region scoping this request.
|
26564
|
+
# @param [String] ssl_policy
|
26565
|
+
# Name of the SSL policy to delete. The name must be 1-63 characters long, and
|
26566
|
+
# comply with RFC1035.
|
26567
|
+
# @param [String] request_id
|
26568
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26569
|
+
# that if you must retry your request, the server will know to ignore the
|
26570
|
+
# request if it has already been completed. For example, consider a situation
|
26571
|
+
# where you make an initial request and the request times out. If you make the
|
26572
|
+
# request again with the same request ID, the server can check if original
|
26573
|
+
# operation with the same request ID was received, and if so, will ignore the
|
26574
|
+
# second request. This prevents clients from accidentally creating duplicate
|
26575
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
26576
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
26577
|
+
# @param [String] fields
|
26578
|
+
# Selector specifying which fields to include in a partial response.
|
26579
|
+
# @param [String] quota_user
|
26580
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26581
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26582
|
+
# @param [String] user_ip
|
26583
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26584
|
+
# @param [Google::Apis::RequestOptions] options
|
26585
|
+
# Request-specific options
|
26586
|
+
#
|
26587
|
+
# @yield [result, err] Result & error if block supplied
|
26588
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
26589
|
+
# @yieldparam err [StandardError] error object if request failed
|
26590
|
+
#
|
26591
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
26592
|
+
#
|
26593
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26594
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26595
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26596
|
+
def delete_region_ssl_policy(project, region, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26597
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
|
26598
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
26599
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
26600
|
+
command.params['project'] = project unless project.nil?
|
26601
|
+
command.params['region'] = region unless region.nil?
|
26602
|
+
command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
|
26603
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26604
|
+
command.query['fields'] = fields unless fields.nil?
|
26605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26606
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26607
|
+
execute_or_queue_command(command, &block)
|
26608
|
+
end
|
26609
|
+
|
26610
|
+
# Lists all of the ordered rules present in a single specified policy.
|
26611
|
+
# @param [String] project
|
26612
|
+
# Project ID for this request.
|
26613
|
+
# @param [String] region
|
26614
|
+
# Name of the region scoping this request.
|
26615
|
+
# @param [String] ssl_policy
|
26616
|
+
# Name of the SSL policy to update. The name must be 1-63 characters long, and
|
26617
|
+
# comply with RFC1035.
|
26618
|
+
# @param [String] fields
|
26619
|
+
# Selector specifying which fields to include in a partial response.
|
26620
|
+
# @param [String] quota_user
|
26621
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26622
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26623
|
+
# @param [String] user_ip
|
26624
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26625
|
+
# @param [Google::Apis::RequestOptions] options
|
26626
|
+
# Request-specific options
|
26627
|
+
#
|
26628
|
+
# @yield [result, err] Result & error if block supplied
|
26629
|
+
# @yieldparam result [Google::Apis::ComputeV1::SslPolicy] parsed result object
|
26630
|
+
# @yieldparam err [StandardError] error object if request failed
|
26631
|
+
#
|
26632
|
+
# @return [Google::Apis::ComputeV1::SslPolicy]
|
26633
|
+
#
|
26634
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26635
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26636
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26637
|
+
def get_region_ssl_policy(project, region, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26638
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
|
26639
|
+
command.response_representation = Google::Apis::ComputeV1::SslPolicy::Representation
|
26640
|
+
command.response_class = Google::Apis::ComputeV1::SslPolicy
|
26641
|
+
command.params['project'] = project unless project.nil?
|
26642
|
+
command.params['region'] = region unless region.nil?
|
26643
|
+
command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
|
26644
|
+
command.query['fields'] = fields unless fields.nil?
|
26645
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26646
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26647
|
+
execute_or_queue_command(command, &block)
|
26648
|
+
end
|
26649
|
+
|
26650
|
+
# Creates a new policy in the specified project and region using the data
|
26651
|
+
# included in the request.
|
26652
|
+
# @param [String] project
|
26653
|
+
# Project ID for this request.
|
26654
|
+
# @param [String] region
|
26655
|
+
# Name of the region scoping this request.
|
26656
|
+
# @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
|
26657
|
+
# @param [String] request_id
|
26658
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26659
|
+
# that if you must retry your request, the server will know to ignore the
|
26660
|
+
# request if it has already been completed. For example, consider a situation
|
26661
|
+
# where you make an initial request and the request times out. If you make the
|
26662
|
+
# request again with the same request ID, the server can check if original
|
26663
|
+
# operation with the same request ID was received, and if so, will ignore the
|
26664
|
+
# second request. This prevents clients from accidentally creating duplicate
|
26665
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
26666
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
26667
|
+
# @param [String] fields
|
26668
|
+
# Selector specifying which fields to include in a partial response.
|
26669
|
+
# @param [String] quota_user
|
26670
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26671
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26672
|
+
# @param [String] user_ip
|
26673
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26674
|
+
# @param [Google::Apis::RequestOptions] options
|
26675
|
+
# Request-specific options
|
26676
|
+
#
|
26677
|
+
# @yield [result, err] Result & error if block supplied
|
26678
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
26679
|
+
# @yieldparam err [StandardError] error object if request failed
|
26680
|
+
#
|
26681
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
26682
|
+
#
|
26683
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26684
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26685
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26686
|
+
def insert_region_ssl_policy(project, region, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26687
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies', options)
|
26688
|
+
command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
|
26689
|
+
command.request_object = ssl_policy_object
|
26690
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
26691
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
26692
|
+
command.params['project'] = project unless project.nil?
|
26693
|
+
command.params['region'] = region unless region.nil?
|
26694
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26695
|
+
command.query['fields'] = fields unless fields.nil?
|
26696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26697
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26698
|
+
execute_or_queue_command(command, &block)
|
26699
|
+
end
|
26700
|
+
|
26701
|
+
# Lists all the SSL policies that have been configured for the specified project
|
26702
|
+
# and region.
|
26703
|
+
# @param [String] project
|
26704
|
+
# Project ID for this request.
|
26705
|
+
# @param [String] region
|
26706
|
+
# Name of the region scoping this request.
|
26707
|
+
# @param [String] filter
|
26708
|
+
# A filter expression that filters resources listed in the response. Most
|
26709
|
+
# Compute resources support two types of filter expressions: expressions that
|
26710
|
+
# support regular expressions and expressions that follow API improvement
|
26711
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
26712
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
26713
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
26714
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
26715
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
26716
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
26717
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
26718
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
26719
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
26720
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
26721
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
26722
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
26723
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
26724
|
+
# provide each separate expression within parentheses. For example: ``` (
|
26725
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
26726
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
26727
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
26728
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
26729
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
26730
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
26731
|
+
# expression with or without quotes or against multiple parenthesized
|
26732
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
26733
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
26734
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
26735
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
26736
|
+
# match the entire field. For example, to filter for instances that do not end
|
26737
|
+
# with name "instance", you would use `name ne .*instance`.
|
26738
|
+
# @param [Fixnum] max_results
|
26739
|
+
# The maximum number of results per page that should be returned. If the number
|
26740
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
26741
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
26742
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
26743
|
+
# @param [String] order_by
|
26744
|
+
# Sorts list results by a certain order. By default, results are returned in
|
26745
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
26746
|
+
# descending order based on the creation timestamp using `orderBy="
|
26747
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
26748
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
26749
|
+
# resources like operations so that the newest operation is returned first.
|
26750
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
26751
|
+
# @param [String] page_token
|
26752
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
26753
|
+
# by a previous list request to get the next page of results.
|
26754
|
+
# @param [Boolean] return_partial_success
|
26755
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
26756
|
+
# failure. The default value is false.
|
26757
|
+
# @param [String] fields
|
26758
|
+
# Selector specifying which fields to include in a partial response.
|
26759
|
+
# @param [String] quota_user
|
26760
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26761
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26762
|
+
# @param [String] user_ip
|
26763
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26764
|
+
# @param [Google::Apis::RequestOptions] options
|
26765
|
+
# Request-specific options
|
26766
|
+
#
|
26767
|
+
# @yield [result, err] Result & error if block supplied
|
26768
|
+
# @yieldparam result [Google::Apis::ComputeV1::SslPoliciesList] parsed result object
|
26769
|
+
# @yieldparam err [StandardError] error object if request failed
|
26770
|
+
#
|
26771
|
+
# @return [Google::Apis::ComputeV1::SslPoliciesList]
|
26772
|
+
#
|
26773
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26774
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26775
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26776
|
+
def list_region_ssl_policies(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)
|
26777
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies', options)
|
26778
|
+
command.response_representation = Google::Apis::ComputeV1::SslPoliciesList::Representation
|
26779
|
+
command.response_class = Google::Apis::ComputeV1::SslPoliciesList
|
26780
|
+
command.params['project'] = project unless project.nil?
|
26781
|
+
command.params['region'] = region unless region.nil?
|
26782
|
+
command.query['filter'] = filter unless filter.nil?
|
26783
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
26784
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
26785
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
26786
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
26787
|
+
command.query['fields'] = fields unless fields.nil?
|
26788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26789
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26790
|
+
execute_or_queue_command(command, &block)
|
26791
|
+
end
|
26792
|
+
|
26793
|
+
# Lists all features that can be specified in the SSL policy when using custom
|
26794
|
+
# profile.
|
26795
|
+
# @param [String] project
|
26796
|
+
# Project ID for this request.
|
26797
|
+
# @param [String] region
|
26798
|
+
# Name of the region scoping this request.
|
26799
|
+
# @param [String] filter
|
26800
|
+
# A filter expression that filters resources listed in the response. Most
|
26801
|
+
# Compute resources support two types of filter expressions: expressions that
|
26802
|
+
# support regular expressions and expressions that follow API improvement
|
26803
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
26804
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
26805
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
26806
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
26807
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
26808
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
26809
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
26810
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
26811
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
26812
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
26813
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
26814
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
26815
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
26816
|
+
# provide each separate expression within parentheses. For example: ``` (
|
26817
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
26818
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
26819
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
26820
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
26821
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
26822
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
26823
|
+
# expression with or without quotes or against multiple parenthesized
|
26824
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
26825
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
26826
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
26827
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
26828
|
+
# match the entire field. For example, to filter for instances that do not end
|
26829
|
+
# with name "instance", you would use `name ne .*instance`.
|
26830
|
+
# @param [Fixnum] max_results
|
26831
|
+
# The maximum number of results per page that should be returned. If the number
|
26832
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
26833
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
26834
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
26835
|
+
# @param [String] order_by
|
26836
|
+
# Sorts list results by a certain order. By default, results are returned in
|
26837
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
26838
|
+
# descending order based on the creation timestamp using `orderBy="
|
26839
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
26840
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
26841
|
+
# resources like operations so that the newest operation is returned first.
|
26842
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
26843
|
+
# @param [String] page_token
|
26844
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
26845
|
+
# by a previous list request to get the next page of results.
|
26846
|
+
# @param [Boolean] return_partial_success
|
26847
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
26848
|
+
# failure. The default value is false.
|
26849
|
+
# @param [String] fields
|
26850
|
+
# Selector specifying which fields to include in a partial response.
|
26851
|
+
# @param [String] quota_user
|
26852
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26853
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26854
|
+
# @param [String] user_ip
|
26855
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26856
|
+
# @param [Google::Apis::RequestOptions] options
|
26857
|
+
# Request-specific options
|
26858
|
+
#
|
26859
|
+
# @yield [result, err] Result & error if block supplied
|
26860
|
+
# @yieldparam result [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse] parsed result object
|
26861
|
+
# @yieldparam err [StandardError] error object if request failed
|
26862
|
+
#
|
26863
|
+
# @return [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse]
|
26864
|
+
#
|
26865
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26866
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26867
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26868
|
+
def list_region_ssl_policy_available_features(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)
|
26869
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures', options)
|
26870
|
+
command.response_representation = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse::Representation
|
26871
|
+
command.response_class = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse
|
26872
|
+
command.params['project'] = project unless project.nil?
|
26873
|
+
command.params['region'] = region unless region.nil?
|
26874
|
+
command.query['filter'] = filter unless filter.nil?
|
26875
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
26876
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
26877
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
26878
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
26879
|
+
command.query['fields'] = fields unless fields.nil?
|
26880
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26881
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26882
|
+
execute_or_queue_command(command, &block)
|
26883
|
+
end
|
26884
|
+
|
26885
|
+
# Patches the specified SSL policy with the data included in the request.
|
26886
|
+
# @param [String] project
|
26887
|
+
# Project ID for this request.
|
26888
|
+
# @param [String] region
|
26889
|
+
# Name of the region scoping this request.
|
26890
|
+
# @param [String] ssl_policy
|
26891
|
+
# Name of the SSL policy to update. The name must be 1-63 characters long, and
|
26892
|
+
# comply with RFC1035.
|
26893
|
+
# @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
|
26894
|
+
# @param [String] request_id
|
26895
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26896
|
+
# that if you must retry your request, the server will know to ignore the
|
26897
|
+
# request if it has already been completed. For example, consider a situation
|
26898
|
+
# where you make an initial request and the request times out. If you make the
|
26899
|
+
# request again with the same request ID, the server can check if original
|
26900
|
+
# operation with the same request ID was received, and if so, will ignore the
|
26901
|
+
# second request. This prevents clients from accidentally creating duplicate
|
26902
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
26903
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
26904
|
+
# @param [String] fields
|
26905
|
+
# Selector specifying which fields to include in a partial response.
|
26906
|
+
# @param [String] quota_user
|
26907
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26908
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26909
|
+
# @param [String] user_ip
|
26910
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26911
|
+
# @param [Google::Apis::RequestOptions] options
|
26912
|
+
# Request-specific options
|
26913
|
+
#
|
26914
|
+
# @yield [result, err] Result & error if block supplied
|
26915
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
26916
|
+
# @yieldparam err [StandardError] error object if request failed
|
26917
|
+
#
|
26918
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
26919
|
+
#
|
26920
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26921
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26922
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26923
|
+
def patch_region_ssl_policy(project, region, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26924
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
|
26925
|
+
command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
|
26926
|
+
command.request_object = ssl_policy_object
|
26927
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
26928
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
26929
|
+
command.params['project'] = project unless project.nil?
|
26930
|
+
command.params['region'] = region unless region.nil?
|
26931
|
+
command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
|
26932
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26933
|
+
command.query['fields'] = fields unless fields.nil?
|
26934
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26935
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26936
|
+
execute_or_queue_command(command, &block)
|
26937
|
+
end
|
26938
|
+
|
26558
26939
|
# Deletes the specified TargetHttpProxy resource.
|
26559
26940
|
# @param [String] project
|
26560
26941
|
# Project ID for this request.
|
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.48.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: 2022-08-
|
11
|
+
date: 2022-08-29 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.48.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: []
|