google-apis-compute_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/compute_v1/classes.rb +808 -134
- data/lib/google/apis/compute_v1/gem_version.rb +3 -3
- data/lib/google/apis/compute_v1/representations.rb +231 -0
- data/lib/google/apis/compute_v1/service.rb +966 -3
- metadata +4 -4
@@ -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.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210111"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -154,6 +154,12 @@ module Google
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
+
class AdvancedMachineFeatures
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
157
163
|
class AliasIpRange
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
165
|
|
@@ -856,6 +862,60 @@ module Google
|
|
856
862
|
include Google::Apis::Core::JsonObjectSupport
|
857
863
|
end
|
858
864
|
|
865
|
+
class FirewallPoliciesListAssociationsResponse
|
866
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
867
|
+
|
868
|
+
include Google::Apis::Core::JsonObjectSupport
|
869
|
+
end
|
870
|
+
|
871
|
+
class FirewallPolicy
|
872
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
873
|
+
|
874
|
+
include Google::Apis::Core::JsonObjectSupport
|
875
|
+
end
|
876
|
+
|
877
|
+
class FirewallPolicyAssociation
|
878
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
879
|
+
|
880
|
+
include Google::Apis::Core::JsonObjectSupport
|
881
|
+
end
|
882
|
+
|
883
|
+
class FirewallPolicyList
|
884
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
885
|
+
|
886
|
+
class Warning
|
887
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
888
|
+
|
889
|
+
class Datum
|
890
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
891
|
+
|
892
|
+
include Google::Apis::Core::JsonObjectSupport
|
893
|
+
end
|
894
|
+
|
895
|
+
include Google::Apis::Core::JsonObjectSupport
|
896
|
+
end
|
897
|
+
|
898
|
+
include Google::Apis::Core::JsonObjectSupport
|
899
|
+
end
|
900
|
+
|
901
|
+
class FirewallPolicyRule
|
902
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
903
|
+
|
904
|
+
include Google::Apis::Core::JsonObjectSupport
|
905
|
+
end
|
906
|
+
|
907
|
+
class FirewallPolicyRuleMatcher
|
908
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
909
|
+
|
910
|
+
include Google::Apis::Core::JsonObjectSupport
|
911
|
+
end
|
912
|
+
|
913
|
+
class FirewallPolicyRuleMatcherLayer4Config
|
914
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
915
|
+
|
916
|
+
include Google::Apis::Core::JsonObjectSupport
|
917
|
+
end
|
918
|
+
|
859
919
|
class FixedOrPercent
|
860
920
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
921
|
|
@@ -946,6 +1006,12 @@ module Google
|
|
946
1006
|
include Google::Apis::Core::JsonObjectSupport
|
947
1007
|
end
|
948
1008
|
|
1009
|
+
class GlobalOrganizationSetPolicyRequest
|
1010
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
|
+
|
1012
|
+
include Google::Apis::Core::JsonObjectSupport
|
1013
|
+
end
|
1014
|
+
|
949
1015
|
class GlobalSetLabelsRequest
|
950
1016
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
951
1017
|
|
@@ -4432,6 +4498,12 @@ module Google
|
|
4432
4498
|
include Google::Apis::Core::JsonObjectSupport
|
4433
4499
|
end
|
4434
4500
|
|
4501
|
+
class UrlMapTestHeader
|
4502
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4503
|
+
|
4504
|
+
include Google::Apis::Core::JsonObjectSupport
|
4505
|
+
end
|
4506
|
+
|
4435
4507
|
class UrlMapValidationResult
|
4436
4508
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4437
4509
|
|
@@ -5038,6 +5110,13 @@ module Google
|
|
5038
5110
|
end
|
5039
5111
|
end
|
5040
5112
|
|
5113
|
+
class AdvancedMachineFeatures
|
5114
|
+
# @private
|
5115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5116
|
+
property :enable_nested_virtualization, as: 'enableNestedVirtualization'
|
5117
|
+
end
|
5118
|
+
end
|
5119
|
+
|
5041
5120
|
class AliasIpRange
|
5042
5121
|
# @private
|
5043
5122
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5863,12 +5942,14 @@ module Google
|
|
5863
5942
|
property :last_detach_timestamp, as: 'lastDetachTimestamp'
|
5864
5943
|
collection :license_codes, as: 'licenseCodes'
|
5865
5944
|
collection :licenses, as: 'licenses'
|
5945
|
+
property :location_hint, as: 'locationHint'
|
5866
5946
|
property :name, as: 'name'
|
5867
5947
|
property :options, as: 'options'
|
5868
5948
|
property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
|
5869
5949
|
property :region, as: 'region'
|
5870
5950
|
collection :replica_zones, as: 'replicaZones'
|
5871
5951
|
collection :resource_policies, as: 'resourcePolicies'
|
5952
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
5872
5953
|
property :self_link, as: 'selfLink'
|
5873
5954
|
property :size_gb, :numeric_string => true, as: 'sizeGb'
|
5874
5955
|
property :source_disk, as: 'sourceDisk'
|
@@ -5881,6 +5962,7 @@ module Google
|
|
5881
5962
|
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
|
5882
5963
|
|
5883
5964
|
property :source_snapshot_id, as: 'sourceSnapshotId'
|
5965
|
+
property :source_storage_object, as: 'sourceStorageObject'
|
5884
5966
|
property :status, as: 'status'
|
5885
5967
|
property :type, as: 'type'
|
5886
5968
|
collection :users, as: 'users'
|
@@ -6364,6 +6446,115 @@ module Google
|
|
6364
6446
|
end
|
6365
6447
|
end
|
6366
6448
|
|
6449
|
+
class FirewallPoliciesListAssociationsResponse
|
6450
|
+
# @private
|
6451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6452
|
+
collection :associations, as: 'associations', class: Google::Apis::ComputeV1::FirewallPolicyAssociation, decorator: Google::Apis::ComputeV1::FirewallPolicyAssociation::Representation
|
6453
|
+
|
6454
|
+
property :kind, as: 'kind'
|
6455
|
+
end
|
6456
|
+
end
|
6457
|
+
|
6458
|
+
class FirewallPolicy
|
6459
|
+
# @private
|
6460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6461
|
+
collection :associations, as: 'associations', class: Google::Apis::ComputeV1::FirewallPolicyAssociation, decorator: Google::Apis::ComputeV1::FirewallPolicyAssociation::Representation
|
6462
|
+
|
6463
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
6464
|
+
property :description, as: 'description'
|
6465
|
+
property :display_name, as: 'displayName'
|
6466
|
+
property :fingerprint, :base64 => true, as: 'fingerprint'
|
6467
|
+
property :id, :numeric_string => true, as: 'id'
|
6468
|
+
property :kind, as: 'kind'
|
6469
|
+
property :name, as: 'name'
|
6470
|
+
property :parent, as: 'parent'
|
6471
|
+
property :rule_tuple_count, as: 'ruleTupleCount'
|
6472
|
+
collection :rules, as: 'rules', class: Google::Apis::ComputeV1::FirewallPolicyRule, decorator: Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
6473
|
+
|
6474
|
+
property :self_link, as: 'selfLink'
|
6475
|
+
property :self_link_with_id, as: 'selfLinkWithId'
|
6476
|
+
end
|
6477
|
+
end
|
6478
|
+
|
6479
|
+
class FirewallPolicyAssociation
|
6480
|
+
# @private
|
6481
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6482
|
+
property :attachment_target, as: 'attachmentTarget'
|
6483
|
+
property :display_name, as: 'displayName'
|
6484
|
+
property :firewall_policy_id, as: 'firewallPolicyId'
|
6485
|
+
property :name, as: 'name'
|
6486
|
+
end
|
6487
|
+
end
|
6488
|
+
|
6489
|
+
class FirewallPolicyList
|
6490
|
+
# @private
|
6491
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6492
|
+
property :id, as: 'id'
|
6493
|
+
collection :items, as: 'items', class: Google::Apis::ComputeV1::FirewallPolicy, decorator: Google::Apis::ComputeV1::FirewallPolicy::Representation
|
6494
|
+
|
6495
|
+
property :kind, as: 'kind'
|
6496
|
+
property :next_page_token, as: 'nextPageToken'
|
6497
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeV1::FirewallPolicyList::Warning, decorator: Google::Apis::ComputeV1::FirewallPolicyList::Warning::Representation
|
6498
|
+
|
6499
|
+
end
|
6500
|
+
|
6501
|
+
class Warning
|
6502
|
+
# @private
|
6503
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6504
|
+
property :code, as: 'code'
|
6505
|
+
collection :data, as: 'data', class: Google::Apis::ComputeV1::FirewallPolicyList::Warning::Datum, decorator: Google::Apis::ComputeV1::FirewallPolicyList::Warning::Datum::Representation
|
6506
|
+
|
6507
|
+
property :message, as: 'message'
|
6508
|
+
end
|
6509
|
+
|
6510
|
+
class Datum
|
6511
|
+
# @private
|
6512
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6513
|
+
property :key, as: 'key'
|
6514
|
+
property :value, as: 'value'
|
6515
|
+
end
|
6516
|
+
end
|
6517
|
+
end
|
6518
|
+
end
|
6519
|
+
|
6520
|
+
class FirewallPolicyRule
|
6521
|
+
# @private
|
6522
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6523
|
+
property :action, as: 'action'
|
6524
|
+
property :description, as: 'description'
|
6525
|
+
property :direction, as: 'direction'
|
6526
|
+
property :disabled, as: 'disabled'
|
6527
|
+
property :enable_logging, as: 'enableLogging'
|
6528
|
+
property :kind, as: 'kind'
|
6529
|
+
property :match, as: 'match', class: Google::Apis::ComputeV1::FirewallPolicyRuleMatcher, decorator: Google::Apis::ComputeV1::FirewallPolicyRuleMatcher::Representation
|
6530
|
+
|
6531
|
+
property :priority, as: 'priority'
|
6532
|
+
property :rule_tuple_count, as: 'ruleTupleCount'
|
6533
|
+
collection :target_resources, as: 'targetResources'
|
6534
|
+
collection :target_secure_labels, as: 'targetSecureLabels'
|
6535
|
+
collection :target_service_accounts, as: 'targetServiceAccounts'
|
6536
|
+
end
|
6537
|
+
end
|
6538
|
+
|
6539
|
+
class FirewallPolicyRuleMatcher
|
6540
|
+
# @private
|
6541
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6542
|
+
collection :dest_ip_ranges, as: 'destIpRanges'
|
6543
|
+
collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeV1::FirewallPolicyRuleMatcherLayer4Config::Representation
|
6544
|
+
|
6545
|
+
collection :src_ip_ranges, as: 'srcIpRanges'
|
6546
|
+
collection :src_secure_labels, as: 'srcSecureLabels'
|
6547
|
+
end
|
6548
|
+
end
|
6549
|
+
|
6550
|
+
class FirewallPolicyRuleMatcherLayer4Config
|
6551
|
+
# @private
|
6552
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6553
|
+
property :ip_protocol, as: 'ipProtocol'
|
6554
|
+
collection :ports, as: 'ports'
|
6555
|
+
end
|
6556
|
+
end
|
6557
|
+
|
6367
6558
|
class FixedOrPercent
|
6368
6559
|
# @private
|
6369
6560
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6388,6 +6579,8 @@ module Google
|
|
6388
6579
|
property :ip_version, as: 'ipVersion'
|
6389
6580
|
property :is_mirroring_collector, as: 'isMirroringCollector'
|
6390
6581
|
property :kind, as: 'kind'
|
6582
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
6583
|
+
hash :labels, as: 'labels'
|
6391
6584
|
property :load_balancing_scheme, as: 'loadBalancingScheme'
|
6392
6585
|
collection :metadata_filters, as: 'metadataFilters', class: Google::Apis::ComputeV1::MetadataFilter, decorator: Google::Apis::ComputeV1::MetadataFilter::Representation
|
6393
6586
|
|
@@ -6531,6 +6724,17 @@ module Google
|
|
6531
6724
|
end
|
6532
6725
|
end
|
6533
6726
|
|
6727
|
+
class GlobalOrganizationSetPolicyRequest
|
6728
|
+
# @private
|
6729
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6730
|
+
collection :bindings, as: 'bindings', class: Google::Apis::ComputeV1::Binding, decorator: Google::Apis::ComputeV1::Binding::Representation
|
6731
|
+
|
6732
|
+
property :etag, :base64 => true, as: 'etag'
|
6733
|
+
property :policy, as: 'policy', class: Google::Apis::ComputeV1::Policy, decorator: Google::Apis::ComputeV1::Policy::Representation
|
6734
|
+
|
6735
|
+
end
|
6736
|
+
end
|
6737
|
+
|
6534
6738
|
class GlobalSetLabelsRequest
|
6535
6739
|
# @private
|
6536
6740
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7211,6 +7415,8 @@ module Google
|
|
7211
7415
|
class Instance
|
7212
7416
|
# @private
|
7213
7417
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7418
|
+
property :advanced_machine_features, as: 'advancedMachineFeatures', class: Google::Apis::ComputeV1::AdvancedMachineFeatures, decorator: Google::Apis::ComputeV1::AdvancedMachineFeatures::Representation
|
7419
|
+
|
7214
7420
|
property :can_ip_forward, as: 'canIpForward'
|
7215
7421
|
property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::ComputeV1::ConfidentialInstanceConfig, decorator: Google::Apis::ComputeV1::ConfidentialInstanceConfig::Representation
|
7216
7422
|
|
@@ -7244,6 +7450,7 @@ module Google
|
|
7244
7450
|
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeV1::ReservationAffinity, decorator: Google::Apis::ComputeV1::ReservationAffinity::Representation
|
7245
7451
|
|
7246
7452
|
collection :resource_policies, as: 'resourcePolicies'
|
7453
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
7247
7454
|
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeV1::Scheduling, decorator: Google::Apis::ComputeV1::Scheduling::Representation
|
7248
7455
|
|
7249
7456
|
property :self_link, as: 'selfLink'
|
@@ -7911,6 +8118,8 @@ module Google
|
|
7911
8118
|
class InstanceProperties
|
7912
8119
|
# @private
|
7913
8120
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8121
|
+
property :advanced_machine_features, as: 'advancedMachineFeatures', class: Google::Apis::ComputeV1::AdvancedMachineFeatures, decorator: Google::Apis::ComputeV1::AdvancedMachineFeatures::Representation
|
8122
|
+
|
7914
8123
|
property :can_ip_forward, as: 'canIpForward'
|
7915
8124
|
property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::ComputeV1::ConfidentialInstanceConfig, decorator: Google::Apis::ComputeV1::ConfidentialInstanceConfig::Representation
|
7916
8125
|
|
@@ -10204,6 +10413,7 @@ module Google
|
|
10204
10413
|
|
10205
10414
|
property :self_link, as: 'selfLink'
|
10206
10415
|
property :status, as: 'status'
|
10416
|
+
property :supports_pzs, as: 'supportsPzs'
|
10207
10417
|
collection :zones, as: 'zones'
|
10208
10418
|
end
|
10209
10419
|
end
|
@@ -11532,7 +11742,9 @@ module Google
|
|
11532
11742
|
hash :labels, as: 'labels'
|
11533
11743
|
collection :license_codes, as: 'licenseCodes'
|
11534
11744
|
collection :licenses, as: 'licenses'
|
11745
|
+
property :location_hint, as: 'locationHint'
|
11535
11746
|
property :name, as: 'name'
|
11747
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
11536
11748
|
property :self_link, as: 'selfLink'
|
11537
11749
|
property :snapshot_encryption_key, as: 'snapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
|
11538
11750
|
|
@@ -12773,8 +12985,14 @@ module Google
|
|
12773
12985
|
class TestFailure
|
12774
12986
|
# @private
|
12775
12987
|
class Representation < Google::Apis::Core::JsonRepresentation
|
12988
|
+
property :actual_output_url, as: 'actualOutputUrl'
|
12989
|
+
property :actual_redirect_response_code, as: 'actualRedirectResponseCode'
|
12776
12990
|
property :actual_service, as: 'actualService'
|
12991
|
+
property :expected_output_url, as: 'expectedOutputUrl'
|
12992
|
+
property :expected_redirect_response_code, as: 'expectedRedirectResponseCode'
|
12777
12993
|
property :expected_service, as: 'expectedService'
|
12994
|
+
collection :headers, as: 'headers', class: Google::Apis::ComputeV1::UrlMapTestHeader, decorator: Google::Apis::ComputeV1::UrlMapTestHeader::Representation
|
12995
|
+
|
12778
12996
|
property :host, as: 'host'
|
12779
12997
|
property :path, as: 'path'
|
12780
12998
|
end
|
@@ -12864,12 +13082,24 @@ module Google
|
|
12864
13082
|
# @private
|
12865
13083
|
class Representation < Google::Apis::Core::JsonRepresentation
|
12866
13084
|
property :description, as: 'description'
|
13085
|
+
property :expected_output_url, as: 'expectedOutputUrl'
|
13086
|
+
property :expected_redirect_response_code, as: 'expectedRedirectResponseCode'
|
13087
|
+
collection :headers, as: 'headers', class: Google::Apis::ComputeV1::UrlMapTestHeader, decorator: Google::Apis::ComputeV1::UrlMapTestHeader::Representation
|
13088
|
+
|
12867
13089
|
property :host, as: 'host'
|
12868
13090
|
property :path, as: 'path'
|
12869
13091
|
property :service, as: 'service'
|
12870
13092
|
end
|
12871
13093
|
end
|
12872
13094
|
|
13095
|
+
class UrlMapTestHeader
|
13096
|
+
# @private
|
13097
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
13098
|
+
property :name, as: 'name'
|
13099
|
+
property :value, as: 'value'
|
13100
|
+
end
|
13101
|
+
end
|
13102
|
+
|
12873
13103
|
class UrlMapValidationResult
|
12874
13104
|
# @private
|
12875
13105
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -13444,6 +13674,7 @@ module Google
|
|
13444
13674
|
property :region, as: 'region'
|
13445
13675
|
property :self_link, as: 'selfLink'
|
13446
13676
|
property :status, as: 'status'
|
13677
|
+
property :supports_pzs, as: 'supportsPzs'
|
13447
13678
|
end
|
13448
13679
|
end
|
13449
13680
|
|
@@ -2544,7 +2544,7 @@ module Google
|
|
2544
2544
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
2545
2545
|
# supported (00000000-0000-0000-0000-000000000000).
|
2546
2546
|
# @param [String] source_image
|
2547
|
-
#
|
2547
|
+
# Source image to restore onto a disk. This field is optional.
|
2548
2548
|
# @param [String] fields
|
2549
2549
|
# Selector specifying which fields to include in a partial response.
|
2550
2550
|
# @param [String] quota_user
|
@@ -3195,6 +3195,817 @@ module Google
|
|
3195
3195
|
execute_or_queue_command(command, &block)
|
3196
3196
|
end
|
3197
3197
|
|
3198
|
+
# Inserts an association for the specified firewall policy.
|
3199
|
+
# @param [String] firewall_policy
|
3200
|
+
# Name of the firewall policy to update.
|
3201
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicyAssociation] firewall_policy_association_object
|
3202
|
+
# @param [Boolean] replace_existing_association
|
3203
|
+
# Indicates whether or not to replace it if an association of the attachment
|
3204
|
+
# already exists. This is false by default, in which case an error will be
|
3205
|
+
# returned if an association already exists.
|
3206
|
+
# @param [String] request_id
|
3207
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3208
|
+
# that if you must retry your request, the server will know to ignore the
|
3209
|
+
# request if it has already been completed.
|
3210
|
+
# For example, consider a situation where you make an initial request and the
|
3211
|
+
# request times out. If you make the request again with the same request ID, the
|
3212
|
+
# server can check if original operation with the same request ID was received,
|
3213
|
+
# and if so, will ignore the second request. This prevents clients from
|
3214
|
+
# accidentally creating duplicate commitments.
|
3215
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3216
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3217
|
+
# @param [String] fields
|
3218
|
+
# Selector specifying which fields to include in a partial response.
|
3219
|
+
# @param [String] quota_user
|
3220
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3221
|
+
# characters.
|
3222
|
+
# @param [String] user_ip
|
3223
|
+
# Deprecated. Please use quotaUser instead.
|
3224
|
+
# @param [Google::Apis::RequestOptions] options
|
3225
|
+
# Request-specific options
|
3226
|
+
#
|
3227
|
+
# @yield [result, err] Result & error if block supplied
|
3228
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3229
|
+
# @yieldparam err [StandardError] error object if request failed
|
3230
|
+
#
|
3231
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3232
|
+
#
|
3233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3236
|
+
def add_firewall_policy_association(firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3237
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addAssociation', options)
|
3238
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyAssociation::Representation
|
3239
|
+
command.request_object = firewall_policy_association_object
|
3240
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3241
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3242
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3243
|
+
command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
|
3244
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3245
|
+
command.query['fields'] = fields unless fields.nil?
|
3246
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3247
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3248
|
+
execute_or_queue_command(command, &block)
|
3249
|
+
end
|
3250
|
+
|
3251
|
+
# Inserts a rule into a firewall policy.
|
3252
|
+
# @param [String] firewall_policy
|
3253
|
+
# Name of the firewall policy to update.
|
3254
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
|
3255
|
+
# @param [String] request_id
|
3256
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3257
|
+
# that if you must retry your request, the server will know to ignore the
|
3258
|
+
# request if it has already been completed.
|
3259
|
+
# For example, consider a situation where you make an initial request and the
|
3260
|
+
# request times out. If you make the request again with the same request ID, the
|
3261
|
+
# server can check if original operation with the same request ID was received,
|
3262
|
+
# and if so, will ignore the second request. This prevents clients from
|
3263
|
+
# accidentally creating duplicate commitments.
|
3264
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3265
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3266
|
+
# @param [String] fields
|
3267
|
+
# Selector specifying which fields to include in a partial response.
|
3268
|
+
# @param [String] quota_user
|
3269
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3270
|
+
# characters.
|
3271
|
+
# @param [String] user_ip
|
3272
|
+
# Deprecated. Please use quotaUser instead.
|
3273
|
+
# @param [Google::Apis::RequestOptions] options
|
3274
|
+
# Request-specific options
|
3275
|
+
#
|
3276
|
+
# @yield [result, err] Result & error if block supplied
|
3277
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3278
|
+
# @yieldparam err [StandardError] error object if request failed
|
3279
|
+
#
|
3280
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3281
|
+
#
|
3282
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3283
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3284
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3285
|
+
def add_firewall_policy_rule(firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3286
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addRule', options)
|
3287
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
3288
|
+
command.request_object = firewall_policy_rule_object
|
3289
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3290
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3291
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3292
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3293
|
+
command.query['fields'] = fields unless fields.nil?
|
3294
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3295
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3296
|
+
execute_or_queue_command(command, &block)
|
3297
|
+
end
|
3298
|
+
|
3299
|
+
# Copies rules to the specified firewall policy.
|
3300
|
+
# @param [String] firewall_policy
|
3301
|
+
# Name of the firewall policy to update.
|
3302
|
+
# @param [String] request_id
|
3303
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3304
|
+
# that if you must retry your request, the server will know to ignore the
|
3305
|
+
# request if it has already been completed.
|
3306
|
+
# For example, consider a situation where you make an initial request and the
|
3307
|
+
# request times out. If you make the request again with the same request ID, the
|
3308
|
+
# server can check if original operation with the same request ID was received,
|
3309
|
+
# and if so, will ignore the second request. This prevents clients from
|
3310
|
+
# accidentally creating duplicate commitments.
|
3311
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3312
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3313
|
+
# @param [String] source_firewall_policy
|
3314
|
+
# The firewall policy from which to copy rules.
|
3315
|
+
# @param [String] fields
|
3316
|
+
# Selector specifying which fields to include in a partial response.
|
3317
|
+
# @param [String] quota_user
|
3318
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3319
|
+
# characters.
|
3320
|
+
# @param [String] user_ip
|
3321
|
+
# Deprecated. Please use quotaUser instead.
|
3322
|
+
# @param [Google::Apis::RequestOptions] options
|
3323
|
+
# Request-specific options
|
3324
|
+
#
|
3325
|
+
# @yield [result, err] Result & error if block supplied
|
3326
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3327
|
+
# @yieldparam err [StandardError] error object if request failed
|
3328
|
+
#
|
3329
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3330
|
+
#
|
3331
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3332
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3333
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3334
|
+
def clone_firewall_policy_rules(firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3335
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/cloneRules', options)
|
3336
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3337
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3338
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3339
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3340
|
+
command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
|
3341
|
+
command.query['fields'] = fields unless fields.nil?
|
3342
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3343
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3344
|
+
execute_or_queue_command(command, &block)
|
3345
|
+
end
|
3346
|
+
|
3347
|
+
# Deletes the specified policy.
|
3348
|
+
# @param [String] firewall_policy
|
3349
|
+
# Name of the firewall policy to delete.
|
3350
|
+
# @param [String] request_id
|
3351
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3352
|
+
# that if you must retry your request, the server will know to ignore the
|
3353
|
+
# request if it has already been completed.
|
3354
|
+
# For example, consider a situation where you make an initial request and the
|
3355
|
+
# request times out. If you make the request again with the same request ID, the
|
3356
|
+
# server can check if original operation with the same request ID was received,
|
3357
|
+
# and if so, will ignore the second request. This prevents clients from
|
3358
|
+
# accidentally creating duplicate commitments.
|
3359
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3360
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3361
|
+
# @param [String] fields
|
3362
|
+
# Selector specifying which fields to include in a partial response.
|
3363
|
+
# @param [String] quota_user
|
3364
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3365
|
+
# characters.
|
3366
|
+
# @param [String] user_ip
|
3367
|
+
# Deprecated. Please use quotaUser instead.
|
3368
|
+
# @param [Google::Apis::RequestOptions] options
|
3369
|
+
# Request-specific options
|
3370
|
+
#
|
3371
|
+
# @yield [result, err] Result & error if block supplied
|
3372
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3373
|
+
# @yieldparam err [StandardError] error object if request failed
|
3374
|
+
#
|
3375
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3376
|
+
#
|
3377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3380
|
+
def delete_firewall_policy(firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3381
|
+
command = make_simple_command(:delete, 'locations/global/firewallPolicies/{firewallPolicy}', options)
|
3382
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3383
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3384
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3385
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3386
|
+
command.query['fields'] = fields unless fields.nil?
|
3387
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3388
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3389
|
+
execute_or_queue_command(command, &block)
|
3390
|
+
end
|
3391
|
+
|
3392
|
+
# Returns the specified firewall policy.
|
3393
|
+
# @param [String] firewall_policy
|
3394
|
+
# Name of the firewall policy to get.
|
3395
|
+
# @param [String] fields
|
3396
|
+
# Selector specifying which fields to include in a partial response.
|
3397
|
+
# @param [String] quota_user
|
3398
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3399
|
+
# characters.
|
3400
|
+
# @param [String] user_ip
|
3401
|
+
# Deprecated. Please use quotaUser instead.
|
3402
|
+
# @param [Google::Apis::RequestOptions] options
|
3403
|
+
# Request-specific options
|
3404
|
+
#
|
3405
|
+
# @yield [result, err] Result & error if block supplied
|
3406
|
+
# @yieldparam result [Google::Apis::ComputeV1::FirewallPolicy] parsed result object
|
3407
|
+
# @yieldparam err [StandardError] error object if request failed
|
3408
|
+
#
|
3409
|
+
# @return [Google::Apis::ComputeV1::FirewallPolicy]
|
3410
|
+
#
|
3411
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3412
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3413
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3414
|
+
def get_firewall_policy(firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3415
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}', options)
|
3416
|
+
command.response_representation = Google::Apis::ComputeV1::FirewallPolicy::Representation
|
3417
|
+
command.response_class = Google::Apis::ComputeV1::FirewallPolicy
|
3418
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3419
|
+
command.query['fields'] = fields unless fields.nil?
|
3420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3421
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3422
|
+
execute_or_queue_command(command, &block)
|
3423
|
+
end
|
3424
|
+
|
3425
|
+
# Gets an association with the specified name.
|
3426
|
+
# @param [String] firewall_policy
|
3427
|
+
# Name of the firewall policy to which the queried rule belongs.
|
3428
|
+
# @param [String] name
|
3429
|
+
# The name of the association to get from the firewall policy.
|
3430
|
+
# @param [String] fields
|
3431
|
+
# Selector specifying which fields to include in a partial response.
|
3432
|
+
# @param [String] quota_user
|
3433
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3434
|
+
# characters.
|
3435
|
+
# @param [String] user_ip
|
3436
|
+
# Deprecated. Please use quotaUser instead.
|
3437
|
+
# @param [Google::Apis::RequestOptions] options
|
3438
|
+
# Request-specific options
|
3439
|
+
#
|
3440
|
+
# @yield [result, err] Result & error if block supplied
|
3441
|
+
# @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyAssociation] parsed result object
|
3442
|
+
# @yieldparam err [StandardError] error object if request failed
|
3443
|
+
#
|
3444
|
+
# @return [Google::Apis::ComputeV1::FirewallPolicyAssociation]
|
3445
|
+
#
|
3446
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3447
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3448
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3449
|
+
def get_firewall_policy_association(firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3450
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getAssociation', options)
|
3451
|
+
command.response_representation = Google::Apis::ComputeV1::FirewallPolicyAssociation::Representation
|
3452
|
+
command.response_class = Google::Apis::ComputeV1::FirewallPolicyAssociation
|
3453
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3454
|
+
command.query['name'] = name unless name.nil?
|
3455
|
+
command.query['fields'] = fields unless fields.nil?
|
3456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3457
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3458
|
+
execute_or_queue_command(command, &block)
|
3459
|
+
end
|
3460
|
+
|
3461
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
3462
|
+
# or resource exists.
|
3463
|
+
# @param [String] resource
|
3464
|
+
# Name or id of the resource for this request.
|
3465
|
+
# @param [Fixnum] options_requested_policy_version
|
3466
|
+
# Requested IAM Policy version.
|
3467
|
+
# @param [String] fields
|
3468
|
+
# Selector specifying which fields to include in a partial response.
|
3469
|
+
# @param [String] quota_user
|
3470
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3471
|
+
# characters.
|
3472
|
+
# @param [String] user_ip
|
3473
|
+
# Deprecated. Please use quotaUser instead.
|
3474
|
+
# @param [Google::Apis::RequestOptions] options
|
3475
|
+
# Request-specific options
|
3476
|
+
#
|
3477
|
+
# @yield [result, err] Result & error if block supplied
|
3478
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
3479
|
+
# @yieldparam err [StandardError] error object if request failed
|
3480
|
+
#
|
3481
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
3482
|
+
#
|
3483
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3484
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3485
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3486
|
+
def get_firewall_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3487
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{resource}/getIamPolicy', options)
|
3488
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
3489
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
3490
|
+
command.params['resource'] = resource unless resource.nil?
|
3491
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
3492
|
+
command.query['fields'] = fields unless fields.nil?
|
3493
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3494
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3495
|
+
execute_or_queue_command(command, &block)
|
3496
|
+
end
|
3497
|
+
|
3498
|
+
# Gets a rule of the specified priority.
|
3499
|
+
# @param [String] firewall_policy
|
3500
|
+
# Name of the firewall policy to which the queried rule belongs.
|
3501
|
+
# @param [Fixnum] priority
|
3502
|
+
# The priority of the rule to get from the firewall policy.
|
3503
|
+
# @param [String] fields
|
3504
|
+
# Selector specifying which fields to include in a partial response.
|
3505
|
+
# @param [String] quota_user
|
3506
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3507
|
+
# characters.
|
3508
|
+
# @param [String] user_ip
|
3509
|
+
# Deprecated. Please use quotaUser instead.
|
3510
|
+
# @param [Google::Apis::RequestOptions] options
|
3511
|
+
# Request-specific options
|
3512
|
+
#
|
3513
|
+
# @yield [result, err] Result & error if block supplied
|
3514
|
+
# @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyRule] parsed result object
|
3515
|
+
# @yieldparam err [StandardError] error object if request failed
|
3516
|
+
#
|
3517
|
+
# @return [Google::Apis::ComputeV1::FirewallPolicyRule]
|
3518
|
+
#
|
3519
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3520
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3521
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3522
|
+
def get_firewall_policy_rule(firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3523
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getRule', options)
|
3524
|
+
command.response_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
3525
|
+
command.response_class = Google::Apis::ComputeV1::FirewallPolicyRule
|
3526
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3527
|
+
command.query['priority'] = priority unless priority.nil?
|
3528
|
+
command.query['fields'] = fields unless fields.nil?
|
3529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3530
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3531
|
+
execute_or_queue_command(command, &block)
|
3532
|
+
end
|
3533
|
+
|
3534
|
+
# Creates a new policy in the specified project using the data included in the
|
3535
|
+
# request.
|
3536
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicy] firewall_policy_object
|
3537
|
+
# @param [String] parent_id
|
3538
|
+
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
|
3539
|
+
# the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
|
3540
|
+
# an organization.
|
3541
|
+
# @param [String] request_id
|
3542
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3543
|
+
# that if you must retry your request, the server will know to ignore the
|
3544
|
+
# request if it has already been completed.
|
3545
|
+
# For example, consider a situation where you make an initial request and the
|
3546
|
+
# request times out. If you make the request again with the same request ID, the
|
3547
|
+
# server can check if original operation with the same request ID was received,
|
3548
|
+
# and if so, will ignore the second request. This prevents clients from
|
3549
|
+
# accidentally creating duplicate commitments.
|
3550
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3551
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3552
|
+
# @param [String] fields
|
3553
|
+
# Selector specifying which fields to include in a partial response.
|
3554
|
+
# @param [String] quota_user
|
3555
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3556
|
+
# characters.
|
3557
|
+
# @param [String] user_ip
|
3558
|
+
# Deprecated. Please use quotaUser instead.
|
3559
|
+
# @param [Google::Apis::RequestOptions] options
|
3560
|
+
# Request-specific options
|
3561
|
+
#
|
3562
|
+
# @yield [result, err] Result & error if block supplied
|
3563
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3564
|
+
# @yieldparam err [StandardError] error object if request failed
|
3565
|
+
#
|
3566
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3567
|
+
#
|
3568
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3569
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3570
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3571
|
+
def insert_firewall_policy(firewall_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3572
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies', options)
|
3573
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicy::Representation
|
3574
|
+
command.request_object = firewall_policy_object
|
3575
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3576
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3577
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
3578
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3579
|
+
command.query['fields'] = fields unless fields.nil?
|
3580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3581
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3582
|
+
execute_or_queue_command(command, &block)
|
3583
|
+
end
|
3584
|
+
|
3585
|
+
# Lists all the policies that have been configured for the specified project.
|
3586
|
+
# @param [String] filter
|
3587
|
+
# A filter expression that filters resources listed in the response. The
|
3588
|
+
# expression must specify the field name, a comparison operator, and the value
|
3589
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
3590
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
3591
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
3592
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
3593
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
3594
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
3595
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
3596
|
+
# on resource labels.
|
3597
|
+
# To filter on multiple expressions, provide each separate expression within
|
3598
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
3599
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
3600
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
3601
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
3602
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
3603
|
+
# @param [Fixnum] max_results
|
3604
|
+
# The maximum number of results per page that should be returned. If the number
|
3605
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
3606
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
3607
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
3608
|
+
# @param [String] order_by
|
3609
|
+
# Sorts list results by a certain order. By default, results are returned in
|
3610
|
+
# alphanumerical order based on the resource name.
|
3611
|
+
# You can also sort results in descending order based on the creation timestamp
|
3612
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
3613
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
3614
|
+
# Use this to sort resources like operations so that the newest operation is
|
3615
|
+
# returned first.
|
3616
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
3617
|
+
# @param [String] page_token
|
3618
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
3619
|
+
# by a previous list request to get the next page of results.
|
3620
|
+
# @param [String] parent_id
|
3621
|
+
# Parent ID for this request.
|
3622
|
+
# @param [Boolean] return_partial_success
|
3623
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
3624
|
+
# failure. The default value is false and the logic is the same as today.
|
3625
|
+
# @param [String] fields
|
3626
|
+
# Selector specifying which fields to include in a partial response.
|
3627
|
+
# @param [String] quota_user
|
3628
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3629
|
+
# characters.
|
3630
|
+
# @param [String] user_ip
|
3631
|
+
# Deprecated. Please use quotaUser instead.
|
3632
|
+
# @param [Google::Apis::RequestOptions] options
|
3633
|
+
# Request-specific options
|
3634
|
+
#
|
3635
|
+
# @yield [result, err] Result & error if block supplied
|
3636
|
+
# @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyList] parsed result object
|
3637
|
+
# @yieldparam err [StandardError] error object if request failed
|
3638
|
+
#
|
3639
|
+
# @return [Google::Apis::ComputeV1::FirewallPolicyList]
|
3640
|
+
#
|
3641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3644
|
+
def list_firewall_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3645
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies', options)
|
3646
|
+
command.response_representation = Google::Apis::ComputeV1::FirewallPolicyList::Representation
|
3647
|
+
command.response_class = Google::Apis::ComputeV1::FirewallPolicyList
|
3648
|
+
command.query['filter'] = filter unless filter.nil?
|
3649
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
3650
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3651
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3652
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
3653
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
3654
|
+
command.query['fields'] = fields unless fields.nil?
|
3655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3656
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3657
|
+
execute_or_queue_command(command, &block)
|
3658
|
+
end
|
3659
|
+
|
3660
|
+
# Lists associations of a specified target, i.e., organization or folder.
|
3661
|
+
# @param [String] target_resource
|
3662
|
+
# The target resource to list associations. It is an organization, or a folder.
|
3663
|
+
# @param [String] fields
|
3664
|
+
# Selector specifying which fields to include in a partial response.
|
3665
|
+
# @param [String] quota_user
|
3666
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3667
|
+
# characters.
|
3668
|
+
# @param [String] user_ip
|
3669
|
+
# Deprecated. Please use quotaUser instead.
|
3670
|
+
# @param [Google::Apis::RequestOptions] options
|
3671
|
+
# Request-specific options
|
3672
|
+
#
|
3673
|
+
# @yield [result, err] Result & error if block supplied
|
3674
|
+
# @yieldparam result [Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse] parsed result object
|
3675
|
+
# @yieldparam err [StandardError] error object if request failed
|
3676
|
+
#
|
3677
|
+
# @return [Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse]
|
3678
|
+
#
|
3679
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3680
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3681
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3682
|
+
def list_firewall_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3683
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/listAssociations', options)
|
3684
|
+
command.response_representation = Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse::Representation
|
3685
|
+
command.response_class = Google::Apis::ComputeV1::FirewallPoliciesListAssociationsResponse
|
3686
|
+
command.query['targetResource'] = target_resource unless target_resource.nil?
|
3687
|
+
command.query['fields'] = fields unless fields.nil?
|
3688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3689
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3690
|
+
execute_or_queue_command(command, &block)
|
3691
|
+
end
|
3692
|
+
|
3693
|
+
# Moves the specified firewall policy.
|
3694
|
+
# @param [String] firewall_policy
|
3695
|
+
# Name of the firewall policy to update.
|
3696
|
+
# @param [String] parent_id
|
3697
|
+
# The new parent of the firewall policy.
|
3698
|
+
# @param [String] request_id
|
3699
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3700
|
+
# that if you must retry your request, the server will know to ignore the
|
3701
|
+
# request if it has already been completed.
|
3702
|
+
# For example, consider a situation where you make an initial request and the
|
3703
|
+
# request times out. If you make the request again with the same request ID, the
|
3704
|
+
# server can check if original operation with the same request ID was received,
|
3705
|
+
# and if so, will ignore the second request. This prevents clients from
|
3706
|
+
# accidentally creating duplicate commitments.
|
3707
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3708
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3709
|
+
# @param [String] fields
|
3710
|
+
# Selector specifying which fields to include in a partial response.
|
3711
|
+
# @param [String] quota_user
|
3712
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3713
|
+
# characters.
|
3714
|
+
# @param [String] user_ip
|
3715
|
+
# Deprecated. Please use quotaUser instead.
|
3716
|
+
# @param [Google::Apis::RequestOptions] options
|
3717
|
+
# Request-specific options
|
3718
|
+
#
|
3719
|
+
# @yield [result, err] Result & error if block supplied
|
3720
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3721
|
+
# @yieldparam err [StandardError] error object if request failed
|
3722
|
+
#
|
3723
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3724
|
+
#
|
3725
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3726
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3727
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3728
|
+
def move_firewall_policy(firewall_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3729
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/move', options)
|
3730
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3731
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3732
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3733
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
3734
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3735
|
+
command.query['fields'] = fields unless fields.nil?
|
3736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3737
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3738
|
+
execute_or_queue_command(command, &block)
|
3739
|
+
end
|
3740
|
+
|
3741
|
+
# Patches the specified policy with the data included in the request.
|
3742
|
+
# @param [String] firewall_policy
|
3743
|
+
# Name of the firewall policy to update.
|
3744
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicy] firewall_policy_object
|
3745
|
+
# @param [String] request_id
|
3746
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3747
|
+
# that if you must retry your request, the server will know to ignore the
|
3748
|
+
# request if it has already been completed.
|
3749
|
+
# For example, consider a situation where you make an initial request and the
|
3750
|
+
# request times out. If you make the request again with the same request ID, the
|
3751
|
+
# server can check if original operation with the same request ID was received,
|
3752
|
+
# and if so, will ignore the second request. This prevents clients from
|
3753
|
+
# accidentally creating duplicate commitments.
|
3754
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3755
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3756
|
+
# @param [String] fields
|
3757
|
+
# Selector specifying which fields to include in a partial response.
|
3758
|
+
# @param [String] quota_user
|
3759
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3760
|
+
# characters.
|
3761
|
+
# @param [String] user_ip
|
3762
|
+
# Deprecated. Please use quotaUser instead.
|
3763
|
+
# @param [Google::Apis::RequestOptions] options
|
3764
|
+
# Request-specific options
|
3765
|
+
#
|
3766
|
+
# @yield [result, err] Result & error if block supplied
|
3767
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3768
|
+
# @yieldparam err [StandardError] error object if request failed
|
3769
|
+
#
|
3770
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3771
|
+
#
|
3772
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3773
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3774
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3775
|
+
def patch_firewall_policy(firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3776
|
+
command = make_simple_command(:patch, 'locations/global/firewallPolicies/{firewallPolicy}', options)
|
3777
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicy::Representation
|
3778
|
+
command.request_object = firewall_policy_object
|
3779
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3780
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3781
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3782
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3783
|
+
command.query['fields'] = fields unless fields.nil?
|
3784
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3785
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3786
|
+
execute_or_queue_command(command, &block)
|
3787
|
+
end
|
3788
|
+
|
3789
|
+
# Patches a rule of the specified priority.
|
3790
|
+
# @param [String] firewall_policy
|
3791
|
+
# Name of the firewall policy to update.
|
3792
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
|
3793
|
+
# @param [Fixnum] priority
|
3794
|
+
# The priority of the rule to patch.
|
3795
|
+
# @param [String] request_id
|
3796
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3797
|
+
# that if you must retry your request, the server will know to ignore the
|
3798
|
+
# request if it has already been completed.
|
3799
|
+
# For example, consider a situation where you make an initial request and the
|
3800
|
+
# request times out. If you make the request again with the same request ID, the
|
3801
|
+
# server can check if original operation with the same request ID was received,
|
3802
|
+
# and if so, will ignore the second request. This prevents clients from
|
3803
|
+
# accidentally creating duplicate commitments.
|
3804
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3805
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3806
|
+
# @param [String] fields
|
3807
|
+
# Selector specifying which fields to include in a partial response.
|
3808
|
+
# @param [String] quota_user
|
3809
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3810
|
+
# characters.
|
3811
|
+
# @param [String] user_ip
|
3812
|
+
# Deprecated. Please use quotaUser instead.
|
3813
|
+
# @param [Google::Apis::RequestOptions] options
|
3814
|
+
# Request-specific options
|
3815
|
+
#
|
3816
|
+
# @yield [result, err] Result & error if block supplied
|
3817
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3818
|
+
# @yieldparam err [StandardError] error object if request failed
|
3819
|
+
#
|
3820
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3821
|
+
#
|
3822
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3823
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3824
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3825
|
+
def patch_firewall_policy_rule(firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3826
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/patchRule', options)
|
3827
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
3828
|
+
command.request_object = firewall_policy_rule_object
|
3829
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3830
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3831
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3832
|
+
command.query['priority'] = priority unless priority.nil?
|
3833
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3834
|
+
command.query['fields'] = fields unless fields.nil?
|
3835
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3836
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3837
|
+
execute_or_queue_command(command, &block)
|
3838
|
+
end
|
3839
|
+
|
3840
|
+
# Removes an association for the specified firewall policy.
|
3841
|
+
# @param [String] firewall_policy
|
3842
|
+
# Name of the firewall policy to update.
|
3843
|
+
# @param [String] name
|
3844
|
+
# Name for the attachment that will be removed.
|
3845
|
+
# @param [String] request_id
|
3846
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3847
|
+
# that if you must retry your request, the server will know to ignore the
|
3848
|
+
# request if it has already been completed.
|
3849
|
+
# For example, consider a situation where you make an initial request and the
|
3850
|
+
# request times out. If you make the request again with the same request ID, the
|
3851
|
+
# server can check if original operation with the same request ID was received,
|
3852
|
+
# and if so, will ignore the second request. This prevents clients from
|
3853
|
+
# accidentally creating duplicate commitments.
|
3854
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3855
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3856
|
+
# @param [String] fields
|
3857
|
+
# Selector specifying which fields to include in a partial response.
|
3858
|
+
# @param [String] quota_user
|
3859
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3860
|
+
# characters.
|
3861
|
+
# @param [String] user_ip
|
3862
|
+
# Deprecated. Please use quotaUser instead.
|
3863
|
+
# @param [Google::Apis::RequestOptions] options
|
3864
|
+
# Request-specific options
|
3865
|
+
#
|
3866
|
+
# @yield [result, err] Result & error if block supplied
|
3867
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3868
|
+
# @yieldparam err [StandardError] error object if request failed
|
3869
|
+
#
|
3870
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3871
|
+
#
|
3872
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3873
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3874
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3875
|
+
def remove_firewall_policy_association(firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3876
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
3877
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3878
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3879
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3880
|
+
command.query['name'] = name unless name.nil?
|
3881
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3882
|
+
command.query['fields'] = fields unless fields.nil?
|
3883
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3884
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3885
|
+
execute_or_queue_command(command, &block)
|
3886
|
+
end
|
3887
|
+
|
3888
|
+
# Deletes a rule of the specified priority.
|
3889
|
+
# @param [String] firewall_policy
|
3890
|
+
# Name of the firewall policy to update.
|
3891
|
+
# @param [Fixnum] priority
|
3892
|
+
# The priority of the rule to remove from the firewall policy.
|
3893
|
+
# @param [String] request_id
|
3894
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3895
|
+
# that if you must retry your request, the server will know to ignore the
|
3896
|
+
# request if it has already been completed.
|
3897
|
+
# For example, consider a situation where you make an initial request and the
|
3898
|
+
# request times out. If you make the request again with the same request ID, the
|
3899
|
+
# server can check if original operation with the same request ID was received,
|
3900
|
+
# and if so, will ignore the second request. This prevents clients from
|
3901
|
+
# accidentally creating duplicate commitments.
|
3902
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3903
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3904
|
+
# @param [String] fields
|
3905
|
+
# Selector specifying which fields to include in a partial response.
|
3906
|
+
# @param [String] quota_user
|
3907
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3908
|
+
# characters.
|
3909
|
+
# @param [String] user_ip
|
3910
|
+
# Deprecated. Please use quotaUser instead.
|
3911
|
+
# @param [Google::Apis::RequestOptions] options
|
3912
|
+
# Request-specific options
|
3913
|
+
#
|
3914
|
+
# @yield [result, err] Result & error if block supplied
|
3915
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
3916
|
+
# @yieldparam err [StandardError] error object if request failed
|
3917
|
+
#
|
3918
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
3919
|
+
#
|
3920
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3921
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3922
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3923
|
+
def remove_firewall_policy_rule(firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3924
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removeRule', options)
|
3925
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
3926
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
3927
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3928
|
+
command.query['priority'] = priority unless priority.nil?
|
3929
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3930
|
+
command.query['fields'] = fields unless fields.nil?
|
3931
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3932
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3933
|
+
execute_or_queue_command(command, &block)
|
3934
|
+
end
|
3935
|
+
|
3936
|
+
# Sets the access control policy on the specified resource. Replaces any
|
3937
|
+
# existing policy.
|
3938
|
+
# @param [String] resource
|
3939
|
+
# Name or id of the resource for this request.
|
3940
|
+
# @param [Google::Apis::ComputeV1::GlobalOrganizationSetPolicyRequest] global_organization_set_policy_request_object
|
3941
|
+
# @param [String] fields
|
3942
|
+
# Selector specifying which fields to include in a partial response.
|
3943
|
+
# @param [String] quota_user
|
3944
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3945
|
+
# characters.
|
3946
|
+
# @param [String] user_ip
|
3947
|
+
# Deprecated. Please use quotaUser instead.
|
3948
|
+
# @param [Google::Apis::RequestOptions] options
|
3949
|
+
# Request-specific options
|
3950
|
+
#
|
3951
|
+
# @yield [result, err] Result & error if block supplied
|
3952
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
3953
|
+
# @yieldparam err [StandardError] error object if request failed
|
3954
|
+
#
|
3955
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
3956
|
+
#
|
3957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3960
|
+
def set_firewall_policy_iam_policy(resource, global_organization_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3961
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{resource}/setIamPolicy', options)
|
3962
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalOrganizationSetPolicyRequest::Representation
|
3963
|
+
command.request_object = global_organization_set_policy_request_object
|
3964
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
3965
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
3966
|
+
command.params['resource'] = resource unless resource.nil?
|
3967
|
+
command.query['fields'] = fields unless fields.nil?
|
3968
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3969
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3970
|
+
execute_or_queue_command(command, &block)
|
3971
|
+
end
|
3972
|
+
|
3973
|
+
# Returns permissions that a caller has on the specified resource.
|
3974
|
+
# @param [String] resource
|
3975
|
+
# Name or id of the resource for this request.
|
3976
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
3977
|
+
# @param [String] fields
|
3978
|
+
# Selector specifying which fields to include in a partial response.
|
3979
|
+
# @param [String] quota_user
|
3980
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3981
|
+
# characters.
|
3982
|
+
# @param [String] user_ip
|
3983
|
+
# Deprecated. Please use quotaUser instead.
|
3984
|
+
# @param [Google::Apis::RequestOptions] options
|
3985
|
+
# Request-specific options
|
3986
|
+
#
|
3987
|
+
# @yield [result, err] Result & error if block supplied
|
3988
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
3989
|
+
# @yieldparam err [StandardError] error object if request failed
|
3990
|
+
#
|
3991
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
3992
|
+
#
|
3993
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3994
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3995
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3996
|
+
def test_firewall_policy_iam_permissions(resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3997
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{resource}/testIamPermissions', options)
|
3998
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
3999
|
+
command.request_object = test_permissions_request_object
|
4000
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
4001
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
4002
|
+
command.params['resource'] = resource unless resource.nil?
|
4003
|
+
command.query['fields'] = fields unless fields.nil?
|
4004
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4005
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4006
|
+
execute_or_queue_command(command, &block)
|
4007
|
+
end
|
4008
|
+
|
3198
4009
|
# Deletes the specified firewall.
|
3199
4010
|
# @param [String] project
|
3200
4011
|
# Project ID for this request.
|
@@ -3869,6 +4680,61 @@ module Google
|
|
3869
4680
|
execute_or_queue_command(command, &block)
|
3870
4681
|
end
|
3871
4682
|
|
4683
|
+
# Sets the labels on the specified resource. To learn more about labels, read
|
4684
|
+
# the Labeling Resources documentation.
|
4685
|
+
# @param [String] project
|
4686
|
+
# Project ID for this request.
|
4687
|
+
# @param [String] region
|
4688
|
+
# The region for this request.
|
4689
|
+
# @param [String] resource
|
4690
|
+
# Name or id of the resource for this request.
|
4691
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
4692
|
+
# @param [String] request_id
|
4693
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4694
|
+
# that if you must retry your request, the server will know to ignore the
|
4695
|
+
# request if it has already been completed.
|
4696
|
+
# For example, consider a situation where you make an initial request and the
|
4697
|
+
# request times out. If you make the request again with the same request ID, the
|
4698
|
+
# server can check if original operation with the same request ID was received,
|
4699
|
+
# and if so, will ignore the second request. This prevents clients from
|
4700
|
+
# accidentally creating duplicate commitments.
|
4701
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4702
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4703
|
+
# @param [String] fields
|
4704
|
+
# Selector specifying which fields to include in a partial response.
|
4705
|
+
# @param [String] quota_user
|
4706
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4707
|
+
# characters.
|
4708
|
+
# @param [String] user_ip
|
4709
|
+
# Deprecated. Please use quotaUser instead.
|
4710
|
+
# @param [Google::Apis::RequestOptions] options
|
4711
|
+
# Request-specific options
|
4712
|
+
#
|
4713
|
+
# @yield [result, err] Result & error if block supplied
|
4714
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
4715
|
+
# @yieldparam err [StandardError] error object if request failed
|
4716
|
+
#
|
4717
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
4718
|
+
#
|
4719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4722
|
+
def set_forwarding_rule_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4723
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels', options)
|
4724
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
4725
|
+
command.request_object = region_set_labels_request_object
|
4726
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
4727
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
4728
|
+
command.params['project'] = project unless project.nil?
|
4729
|
+
command.params['region'] = region unless region.nil?
|
4730
|
+
command.params['resource'] = resource unless resource.nil?
|
4731
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4732
|
+
command.query['fields'] = fields unless fields.nil?
|
4733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4734
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4735
|
+
execute_or_queue_command(command, &block)
|
4736
|
+
end
|
4737
|
+
|
3872
4738
|
# Changes target URL for forwarding rule. The new target should be of the same
|
3873
4739
|
# type as the old target.
|
3874
4740
|
# @param [String] project
|
@@ -4396,6 +5262,46 @@ module Google
|
|
4396
5262
|
execute_or_queue_command(command, &block)
|
4397
5263
|
end
|
4398
5264
|
|
5265
|
+
# Sets the labels on the specified resource. To learn more about labels, read
|
5266
|
+
# the Labeling Resources documentation.
|
5267
|
+
# @param [String] project
|
5268
|
+
# Project ID for this request.
|
5269
|
+
# @param [String] resource
|
5270
|
+
# Name or id of the resource for this request.
|
5271
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
5272
|
+
# @param [String] fields
|
5273
|
+
# Selector specifying which fields to include in a partial response.
|
5274
|
+
# @param [String] quota_user
|
5275
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5276
|
+
# characters.
|
5277
|
+
# @param [String] user_ip
|
5278
|
+
# Deprecated. Please use quotaUser instead.
|
5279
|
+
# @param [Google::Apis::RequestOptions] options
|
5280
|
+
# Request-specific options
|
5281
|
+
#
|
5282
|
+
# @yield [result, err] Result & error if block supplied
|
5283
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
5284
|
+
# @yieldparam err [StandardError] error object if request failed
|
5285
|
+
#
|
5286
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
5287
|
+
#
|
5288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5291
|
+
def set_global_forwarding_rule_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5292
|
+
command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{resource}/setLabels', options)
|
5293
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
5294
|
+
command.request_object = global_set_labels_request_object
|
5295
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
5296
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
5297
|
+
command.params['project'] = project unless project.nil?
|
5298
|
+
command.params['resource'] = resource unless resource.nil?
|
5299
|
+
command.query['fields'] = fields unless fields.nil?
|
5300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5301
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5302
|
+
execute_or_queue_command(command, &block)
|
5303
|
+
end
|
5304
|
+
|
4399
5305
|
# Changes target URL for the GlobalForwardingRule resource. The new target
|
4400
5306
|
# should be of the same type as the old target.
|
4401
5307
|
# @param [String] project
|
@@ -11064,7 +11970,11 @@ module Google
|
|
11064
11970
|
execute_or_queue_command(command, &block)
|
11065
11971
|
end
|
11066
11972
|
|
11067
|
-
# Updates an instance's network interface. This method
|
11973
|
+
# Updates an instance's network interface. This method can only update an
|
11974
|
+
# interface's alias IP range and attached network. See Modifying alias IP ranges
|
11975
|
+
# for an existing instance for instructions on changing alias IP ranges. See
|
11976
|
+
# Migrating a VM between networks for instructions on migrating an interface.
|
11977
|
+
# This method follows PATCH semantics.
|
11068
11978
|
# @param [String] project
|
11069
11979
|
# Project ID for this request.
|
11070
11980
|
# @param [String] zone
|
@@ -17442,7 +18352,7 @@ module Google
|
|
17442
18352
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17443
18353
|
# supported (00000000-0000-0000-0000-000000000000).
|
17444
18354
|
# @param [String] source_image
|
17445
|
-
#
|
18355
|
+
# Source image to restore onto a disk. This field is optional.
|
17446
18356
|
# @param [String] fields
|
17447
18357
|
# Selector specifying which fields to include in a partial response.
|
17448
18358
|
# @param [String] quota_user
|
@@ -26554,6 +27464,59 @@ module Google
|
|
26554
27464
|
execute_or_queue_command(command, &block)
|
26555
27465
|
end
|
26556
27466
|
|
27467
|
+
# Patches the specified TargetHttpsProxy resource with the data included in the
|
27468
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
27469
|
+
# and processing rules. (== suppress_warning http-rest-shadowed ==)
|
27470
|
+
# @param [String] project
|
27471
|
+
# Project ID for this request.
|
27472
|
+
# @param [String] target_https_proxy
|
27473
|
+
# Name of the TargetHttpsProxy resource to patch.
|
27474
|
+
# @param [Google::Apis::ComputeV1::TargetHttpsProxy] target_https_proxy_object
|
27475
|
+
# @param [String] request_id
|
27476
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27477
|
+
# that if you must retry your request, the server will know to ignore the
|
27478
|
+
# request if it has already been completed.
|
27479
|
+
# For example, consider a situation where you make an initial request and the
|
27480
|
+
# request times out. If you make the request again with the same request ID, the
|
27481
|
+
# server can check if original operation with the same request ID was received,
|
27482
|
+
# and if so, will ignore the second request. This prevents clients from
|
27483
|
+
# accidentally creating duplicate commitments.
|
27484
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27485
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27486
|
+
# @param [String] fields
|
27487
|
+
# Selector specifying which fields to include in a partial response.
|
27488
|
+
# @param [String] quota_user
|
27489
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27490
|
+
# characters.
|
27491
|
+
# @param [String] user_ip
|
27492
|
+
# Deprecated. Please use quotaUser instead.
|
27493
|
+
# @param [Google::Apis::RequestOptions] options
|
27494
|
+
# Request-specific options
|
27495
|
+
#
|
27496
|
+
# @yield [result, err] Result & error if block supplied
|
27497
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
27498
|
+
# @yieldparam err [StandardError] error object if request failed
|
27499
|
+
#
|
27500
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
27501
|
+
#
|
27502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27505
|
+
def patch_target_https_proxy(project, target_https_proxy, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27506
|
+
command = make_simple_command(:patch, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
|
27507
|
+
command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation
|
27508
|
+
command.request_object = target_https_proxy_object
|
27509
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
27510
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
27511
|
+
command.params['project'] = project unless project.nil?
|
27512
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
27513
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27514
|
+
command.query['fields'] = fields unless fields.nil?
|
27515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27516
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27517
|
+
execute_or_queue_command(command, &block)
|
27518
|
+
end
|
27519
|
+
|
26557
27520
|
# Sets the QUIC override policy for TargetHttpsProxy.
|
26558
27521
|
# @param [String] project
|
26559
27522
|
# Project ID for this request.
|