google-api-client 0.17.3 → 0.17.4
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 +26 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +77 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +100 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +300 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +76 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +5 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -8
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +20 -10
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +11 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +782 -111
- data/generated/google/apis/compute_alpha/representations.rb +282 -2
- data/generated/google/apis/compute_alpha/service.rb +611 -6
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +342 -43
- data/generated/google/apis/compute_beta/representations.rb +109 -0
- data/generated/google/apis/compute_beta/service.rb +225 -6
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -43
- data/generated/google/apis/compute_v1/service.rb +6 -6
- data/generated/google/apis/container_v1beta1/classes.rb +17 -0
- data/generated/google/apis/container_v1beta1/representations.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +131 -9
- data/generated/google/apis/content_v2/representations.rb +38 -0
- data/generated/google/apis/content_v2/service.rb +35 -23
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +99 -9
- data/generated/google/apis/content_v2sandbox/representations.rb +22 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/service.rb +11 -11
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/service.rb +37 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +26 -177
- data/generated/google/apis/ml_v1/representations.rb +3 -0
- data/generated/google/apis/ml_v1/service.rb +3 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +10 -1
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/poly_v1.rb +32 -0
- data/generated/google/apis/poly_v1/classes.rb +426 -0
- data/generated/google/apis/poly_v1/representations.rb +194 -0
- data/generated/google/apis/poly_v1/service.rb +273 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +243 -0
- data/generated/google/apis/pubsub_v1/representations.rb +115 -0
- data/generated/google/apis/pubsub_v1/service.rb +269 -1
- data/generated/google/apis/speech_v1.rb +4 -1
- data/generated/google/apis/speech_v1beta1.rb +4 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +13 -0
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/lib/google/apis/core/base_service.rb +4 -1
- data/lib/google/apis/options.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -532,6 +532,12 @@ module Google
|
|
532
532
|
include Google::Apis::Core::JsonObjectSupport
|
533
533
|
end
|
534
534
|
|
535
|
+
class DailyMaintenanceWindow
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
|
+
|
538
|
+
include Google::Apis::Core::JsonObjectSupport
|
539
|
+
end
|
540
|
+
|
535
541
|
class DeprecationStatus
|
536
542
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
543
|
|
@@ -1006,6 +1012,12 @@ module Google
|
|
1006
1012
|
include Google::Apis::Core::JsonObjectSupport
|
1007
1013
|
end
|
1008
1014
|
|
1015
|
+
class HourlyMaintenanceWindow
|
1016
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
|
+
|
1018
|
+
include Google::Apis::Core::JsonObjectSupport
|
1019
|
+
end
|
1020
|
+
|
1009
1021
|
class HttpHealthCheck
|
1010
1022
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
1023
|
|
@@ -1474,6 +1486,18 @@ module Google
|
|
1474
1486
|
include Google::Apis::Core::JsonObjectSupport
|
1475
1487
|
end
|
1476
1488
|
|
1489
|
+
class InstancesAddMaintenancePoliciesRequest
|
1490
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1491
|
+
|
1492
|
+
include Google::Apis::Core::JsonObjectSupport
|
1493
|
+
end
|
1494
|
+
|
1495
|
+
class InstancesRemoveMaintenancePoliciesRequest
|
1496
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1497
|
+
|
1498
|
+
include Google::Apis::Core::JsonObjectSupport
|
1499
|
+
end
|
1500
|
+
|
1477
1501
|
class InstancesScopedList
|
1478
1502
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1479
1503
|
|
@@ -1810,6 +1834,72 @@ module Google
|
|
1810
1834
|
include Google::Apis::Core::JsonObjectSupport
|
1811
1835
|
end
|
1812
1836
|
|
1837
|
+
class MaintenancePoliciesList
|
1838
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1839
|
+
|
1840
|
+
class Warning
|
1841
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1842
|
+
|
1843
|
+
class Datum
|
1844
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1845
|
+
|
1846
|
+
include Google::Apis::Core::JsonObjectSupport
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
include Google::Apis::Core::JsonObjectSupport
|
1850
|
+
end
|
1851
|
+
|
1852
|
+
include Google::Apis::Core::JsonObjectSupport
|
1853
|
+
end
|
1854
|
+
|
1855
|
+
class MaintenancePoliciesScopedList
|
1856
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1857
|
+
|
1858
|
+
class Warning
|
1859
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1860
|
+
|
1861
|
+
class Datum
|
1862
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1863
|
+
|
1864
|
+
include Google::Apis::Core::JsonObjectSupport
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
include Google::Apis::Core::JsonObjectSupport
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
include Google::Apis::Core::JsonObjectSupport
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
class MaintenancePolicy
|
1874
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1875
|
+
|
1876
|
+
include Google::Apis::Core::JsonObjectSupport
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
class MaintenancePolicyAggregatedList
|
1880
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1881
|
+
|
1882
|
+
class Warning
|
1883
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1884
|
+
|
1885
|
+
class Datum
|
1886
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1887
|
+
|
1888
|
+
include Google::Apis::Core::JsonObjectSupport
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
include Google::Apis::Core::JsonObjectSupport
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
include Google::Apis::Core::JsonObjectSupport
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
class MaintenanceWindow
|
1898
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1899
|
+
|
1900
|
+
include Google::Apis::Core::JsonObjectSupport
|
1901
|
+
end
|
1902
|
+
|
1813
1903
|
class ManagedInstance
|
1814
1904
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1815
1905
|
|
@@ -2674,6 +2764,12 @@ module Google
|
|
2674
2764
|
include Google::Apis::Core::JsonObjectSupport
|
2675
2765
|
end
|
2676
2766
|
|
2767
|
+
class ShieldedVmConfig
|
2768
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2769
|
+
|
2770
|
+
include Google::Apis::Core::JsonObjectSupport
|
2771
|
+
end
|
2772
|
+
|
2677
2773
|
class SignedUrlKey
|
2678
2774
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2679
2775
|
|
@@ -3352,6 +3448,12 @@ module Google
|
|
3352
3448
|
include Google::Apis::Core::JsonObjectSupport
|
3353
3449
|
end
|
3354
3450
|
|
3451
|
+
class VmMaintenancePolicy
|
3452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3453
|
+
|
3454
|
+
include Google::Apis::Core::JsonObjectSupport
|
3455
|
+
end
|
3456
|
+
|
3355
3457
|
class VpnTunnel
|
3356
3458
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3357
3459
|
|
@@ -4405,6 +4507,15 @@ module Google
|
|
4405
4507
|
end
|
4406
4508
|
end
|
4407
4509
|
|
4510
|
+
class DailyMaintenanceWindow
|
4511
|
+
# @private
|
4512
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4513
|
+
property :days_in_cycle, as: 'daysInCycle'
|
4514
|
+
property :duration, as: 'duration'
|
4515
|
+
property :start_time, as: 'startTime'
|
4516
|
+
end
|
4517
|
+
end
|
4518
|
+
|
4408
4519
|
class DeprecationStatus
|
4409
4520
|
# @private
|
4410
4521
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5305,6 +5416,15 @@ module Google
|
|
5305
5416
|
end
|
5306
5417
|
end
|
5307
5418
|
|
5419
|
+
class HourlyMaintenanceWindow
|
5420
|
+
# @private
|
5421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5422
|
+
property :duration, as: 'duration'
|
5423
|
+
property :hours_in_cycle, as: 'hoursInCycle'
|
5424
|
+
property :start_time, as: 'startTime'
|
5425
|
+
end
|
5426
|
+
end
|
5427
|
+
|
5308
5428
|
class HttpHealthCheck
|
5309
5429
|
# @private
|
5310
5430
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5439,6 +5559,10 @@ module Google
|
|
5439
5559
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
5440
5560
|
|
5441
5561
|
property :source_image_id, as: 'sourceImageId'
|
5562
|
+
property :source_snapshot, as: 'sourceSnapshot'
|
5563
|
+
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
5564
|
+
|
5565
|
+
property :source_snapshot_id, as: 'sourceSnapshotId'
|
5442
5566
|
property :source_type, as: 'sourceType'
|
5443
5567
|
property :status, as: 'status'
|
5444
5568
|
end
|
@@ -5517,6 +5641,8 @@ module Google
|
|
5517
5641
|
property :self_link, as: 'selfLink'
|
5518
5642
|
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
|
5519
5643
|
|
5644
|
+
property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeAlpha::ShieldedVmConfig, decorator: Google::Apis::ComputeAlpha::ShieldedVmConfig::Representation
|
5645
|
+
|
5520
5646
|
property :start_restricted, as: 'startRestricted'
|
5521
5647
|
property :status, as: 'status'
|
5522
5648
|
property :status_message, as: 'statusMessage'
|
@@ -5749,6 +5875,7 @@ module Google
|
|
5749
5875
|
property :initial_delay_sec, as: 'initialDelaySec'
|
5750
5876
|
property :max_unavailable, as: 'maxUnavailable', class: Google::Apis::ComputeAlpha::FixedOrPercent, decorator: Google::Apis::ComputeAlpha::FixedOrPercent::Representation
|
5751
5877
|
|
5878
|
+
property :mode, as: 'mode'
|
5752
5879
|
end
|
5753
5880
|
end
|
5754
5881
|
|
@@ -6215,6 +6342,20 @@ module Google
|
|
6215
6342
|
end
|
6216
6343
|
end
|
6217
6344
|
|
6345
|
+
class InstancesAddMaintenancePoliciesRequest
|
6346
|
+
# @private
|
6347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6348
|
+
collection :maintenance_policies, as: 'maintenancePolicies'
|
6349
|
+
end
|
6350
|
+
end
|
6351
|
+
|
6352
|
+
class InstancesRemoveMaintenancePoliciesRequest
|
6353
|
+
# @private
|
6354
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6355
|
+
collection :maintenance_policies, as: 'maintenancePolicies'
|
6356
|
+
end
|
6357
|
+
end
|
6358
|
+
|
6218
6359
|
class InstancesScopedList
|
6219
6360
|
# @private
|
6220
6361
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6323,6 +6464,10 @@ module Google
|
|
6323
6464
|
class InterconnectAttachment
|
6324
6465
|
# @private
|
6325
6466
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6467
|
+
property :admin_enabled, as: 'adminEnabled'
|
6468
|
+
property :availability_zone, as: 'availabilityZone'
|
6469
|
+
property :bandwidth, as: 'bandwidth'
|
6470
|
+
collection :candidate_subnets, as: 'candidateSubnets'
|
6326
6471
|
property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
|
6327
6472
|
property :creation_timestamp, as: 'creationTimestamp'
|
6328
6473
|
property :customer_router_ip_address, as: 'customerRouterIpAddress'
|
@@ -6333,11 +6478,15 @@ module Google
|
|
6333
6478
|
property :kind, as: 'kind'
|
6334
6479
|
property :name, as: 'name'
|
6335
6480
|
property :operational_status, as: 'operationalStatus'
|
6481
|
+
property :pairing_key, as: 'pairingKey'
|
6336
6482
|
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeAlpha::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeAlpha::InterconnectAttachmentPrivateInfo::Representation
|
6337
6483
|
|
6338
6484
|
property :region, as: 'region'
|
6339
6485
|
property :router, as: 'router'
|
6340
6486
|
property :self_link, as: 'selfLink'
|
6487
|
+
property :state, as: 'state'
|
6488
|
+
property :type, as: 'type'
|
6489
|
+
property :vlan_tag8021q, as: 'vlanTag8021q'
|
6341
6490
|
end
|
6342
6491
|
end
|
6343
6492
|
|
@@ -6826,6 +6975,123 @@ module Google
|
|
6826
6975
|
end
|
6827
6976
|
end
|
6828
6977
|
|
6978
|
+
class MaintenancePoliciesList
|
6979
|
+
# @private
|
6980
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6981
|
+
property :id, as: 'id'
|
6982
|
+
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::MaintenancePolicy, decorator: Google::Apis::ComputeAlpha::MaintenancePolicy::Representation
|
6983
|
+
|
6984
|
+
property :kind, as: 'kind'
|
6985
|
+
property :next_page_token, as: 'nextPageToken'
|
6986
|
+
property :self_link, as: 'selfLink'
|
6987
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::MaintenancePoliciesList::Warning, decorator: Google::Apis::ComputeAlpha::MaintenancePoliciesList::Warning::Representation
|
6988
|
+
|
6989
|
+
end
|
6990
|
+
|
6991
|
+
class Warning
|
6992
|
+
# @private
|
6993
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6994
|
+
property :code, as: 'code'
|
6995
|
+
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::MaintenancePoliciesList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::MaintenancePoliciesList::Warning::Datum::Representation
|
6996
|
+
|
6997
|
+
property :message, as: 'message'
|
6998
|
+
end
|
6999
|
+
|
7000
|
+
class Datum
|
7001
|
+
# @private
|
7002
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7003
|
+
property :key, as: 'key'
|
7004
|
+
property :value, as: 'value'
|
7005
|
+
end
|
7006
|
+
end
|
7007
|
+
end
|
7008
|
+
end
|
7009
|
+
|
7010
|
+
class MaintenancePoliciesScopedList
|
7011
|
+
# @private
|
7012
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7013
|
+
collection :maintenance_policies, as: 'maintenancePolicies', class: Google::Apis::ComputeAlpha::MaintenancePolicy, decorator: Google::Apis::ComputeAlpha::MaintenancePolicy::Representation
|
7014
|
+
|
7015
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList::Warning, decorator: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList::Warning::Representation
|
7016
|
+
|
7017
|
+
end
|
7018
|
+
|
7019
|
+
class Warning
|
7020
|
+
# @private
|
7021
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7022
|
+
property :code, as: 'code'
|
7023
|
+
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList::Warning::Datum::Representation
|
7024
|
+
|
7025
|
+
property :message, as: 'message'
|
7026
|
+
end
|
7027
|
+
|
7028
|
+
class Datum
|
7029
|
+
# @private
|
7030
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7031
|
+
property :key, as: 'key'
|
7032
|
+
property :value, as: 'value'
|
7033
|
+
end
|
7034
|
+
end
|
7035
|
+
end
|
7036
|
+
end
|
7037
|
+
|
7038
|
+
class MaintenancePolicy
|
7039
|
+
# @private
|
7040
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7041
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
7042
|
+
property :description, as: 'description'
|
7043
|
+
property :id, :numeric_string => true, as: 'id'
|
7044
|
+
property :kind, as: 'kind'
|
7045
|
+
property :name, as: 'name'
|
7046
|
+
property :region, as: 'region'
|
7047
|
+
property :self_link, as: 'selfLink'
|
7048
|
+
property :vm_maintenance_policy, as: 'vmMaintenancePolicy', class: Google::Apis::ComputeAlpha::VmMaintenancePolicy, decorator: Google::Apis::ComputeAlpha::VmMaintenancePolicy::Representation
|
7049
|
+
|
7050
|
+
end
|
7051
|
+
end
|
7052
|
+
|
7053
|
+
class MaintenancePolicyAggregatedList
|
7054
|
+
# @private
|
7055
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7056
|
+
property :id, as: 'id'
|
7057
|
+
hash :items, as: 'items', class: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList, decorator: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList::Representation
|
7058
|
+
|
7059
|
+
property :kind, as: 'kind'
|
7060
|
+
property :next_page_token, as: 'nextPageToken'
|
7061
|
+
property :self_link, as: 'selfLink'
|
7062
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList::Warning::Representation
|
7063
|
+
|
7064
|
+
end
|
7065
|
+
|
7066
|
+
class Warning
|
7067
|
+
# @private
|
7068
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7069
|
+
property :code, as: 'code'
|
7070
|
+
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList::Warning::Datum::Representation
|
7071
|
+
|
7072
|
+
property :message, as: 'message'
|
7073
|
+
end
|
7074
|
+
|
7075
|
+
class Datum
|
7076
|
+
# @private
|
7077
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7078
|
+
property :key, as: 'key'
|
7079
|
+
property :value, as: 'value'
|
7080
|
+
end
|
7081
|
+
end
|
7082
|
+
end
|
7083
|
+
end
|
7084
|
+
|
7085
|
+
class MaintenanceWindow
|
7086
|
+
# @private
|
7087
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7088
|
+
property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ComputeAlpha::DailyMaintenanceWindow, decorator: Google::Apis::ComputeAlpha::DailyMaintenanceWindow::Representation
|
7089
|
+
|
7090
|
+
property :hourly_maintenance_window, as: 'hourlyMaintenanceWindow', class: Google::Apis::ComputeAlpha::HourlyMaintenanceWindow, decorator: Google::Apis::ComputeAlpha::HourlyMaintenanceWindow::Representation
|
7091
|
+
|
7092
|
+
end
|
7093
|
+
end
|
7094
|
+
|
6829
7095
|
class ManagedInstance
|
6830
7096
|
# @private
|
6831
7097
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8339,6 +8605,14 @@ module Google
|
|
8339
8605
|
end
|
8340
8606
|
end
|
8341
8607
|
|
8608
|
+
class ShieldedVmConfig
|
8609
|
+
# @private
|
8610
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8611
|
+
property :enable_secure_boot, as: 'enableSecureBoot'
|
8612
|
+
property :enable_vtpm, as: 'enableVtpm'
|
8613
|
+
end
|
8614
|
+
end
|
8615
|
+
|
8342
8616
|
class SignedUrlKey
|
8343
8617
|
# @private
|
8344
8618
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8545,8 +8819,6 @@ module Google
|
|
8545
8819
|
class StatefulPolicy
|
8546
8820
|
# @private
|
8547
8821
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8548
|
-
collection :preserved_disks, as: 'preservedDisks', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk::Representation
|
8549
|
-
|
8550
8822
|
property :preserved_resources, as: 'preservedResources', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources::Representation
|
8551
8823
|
|
8552
8824
|
end
|
@@ -9515,6 +9787,14 @@ module Google
|
|
9515
9787
|
end
|
9516
9788
|
end
|
9517
9789
|
|
9790
|
+
class VmMaintenancePolicy
|
9791
|
+
# @private
|
9792
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9793
|
+
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComputeAlpha::MaintenanceWindow, decorator: Google::Apis::ComputeAlpha::MaintenanceWindow::Representation
|
9794
|
+
|
9795
|
+
end
|
9796
|
+
end
|
9797
|
+
|
9518
9798
|
class VpnTunnel
|
9519
9799
|
# @private
|
9520
9800
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7003,12 +7003,12 @@ module Google
|
|
7003
7003
|
execute_or_queue_command(command, &block)
|
7004
7004
|
end
|
7005
7005
|
|
7006
|
-
# Retrieves the list of
|
7007
|
-
#
|
7008
|
-
#
|
7009
|
-
#
|
7010
|
-
#
|
7011
|
-
#
|
7006
|
+
# Retrieves the list of custom images available to the specified project. Custom
|
7007
|
+
# images are images you create that belong to your project. This method does not
|
7008
|
+
# get any images that belong to other projects, including publicly-available
|
7009
|
+
# images, like Debian 8. If you want to get a list of publicly-available images,
|
7010
|
+
# use this method to make a request to the respective image project, such as
|
7011
|
+
# debian-cloud or windows-cloud.
|
7012
7012
|
# @param [String] project
|
7013
7013
|
# Project ID for this request.
|
7014
7014
|
# @param [String] filter
|
@@ -9412,6 +9412,64 @@ module Google
|
|
9412
9412
|
execute_or_queue_command(command, &block)
|
9413
9413
|
end
|
9414
9414
|
|
9415
|
+
# Adds existing maintenance policies to an instance. You can only add one policy
|
9416
|
+
# right now which will be applied to this instance for scheduling live
|
9417
|
+
# migrations.
|
9418
|
+
# @param [String] project
|
9419
|
+
# Project ID for this request.
|
9420
|
+
# @param [String] zone
|
9421
|
+
# The name of the zone for this request.
|
9422
|
+
# @param [String] instance
|
9423
|
+
# The instance name for this request.
|
9424
|
+
# @param [Google::Apis::ComputeAlpha::InstancesAddMaintenancePoliciesRequest] instances_add_maintenance_policies_request_object
|
9425
|
+
# @param [String] request_id
|
9426
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9427
|
+
# that if you must retry your request, the server will know to ignore the
|
9428
|
+
# request if it has already been completed.
|
9429
|
+
# For example, consider a situation where you make an initial request and the
|
9430
|
+
# request times out. If you make the request again with the same request ID, the
|
9431
|
+
# server can check if original operation with the same request ID was received,
|
9432
|
+
# and if so, will ignore the second request. This prevents clients from
|
9433
|
+
# accidentally creating duplicate commitments.
|
9434
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
9435
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
9436
|
+
# @param [String] fields
|
9437
|
+
# Selector specifying which fields to include in a partial response.
|
9438
|
+
# @param [String] quota_user
|
9439
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9440
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9441
|
+
# Overrides userIp if both are provided.
|
9442
|
+
# @param [String] user_ip
|
9443
|
+
# IP address of the site where the request originates. Use this if you want to
|
9444
|
+
# enforce per-user limits.
|
9445
|
+
# @param [Google::Apis::RequestOptions] options
|
9446
|
+
# Request-specific options
|
9447
|
+
#
|
9448
|
+
# @yield [result, err] Result & error if block supplied
|
9449
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
9450
|
+
# @yieldparam err [StandardError] error object if request failed
|
9451
|
+
#
|
9452
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
9453
|
+
#
|
9454
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9455
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9456
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9457
|
+
def add_instance_maintenance_policies(project, zone, instance, instances_add_maintenance_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9458
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/addMaintenancePolicies', options)
|
9459
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstancesAddMaintenancePoliciesRequest::Representation
|
9460
|
+
command.request_object = instances_add_maintenance_policies_request_object
|
9461
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
9462
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
9463
|
+
command.params['project'] = project unless project.nil?
|
9464
|
+
command.params['zone'] = zone unless zone.nil?
|
9465
|
+
command.params['instance'] = instance unless instance.nil?
|
9466
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9467
|
+
command.query['fields'] = fields unless fields.nil?
|
9468
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9469
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9470
|
+
execute_or_queue_command(command, &block)
|
9471
|
+
end
|
9472
|
+
|
9415
9473
|
# Retrieves aggregated list of instances.
|
9416
9474
|
# @param [String] project
|
9417
9475
|
# Project ID for this request.
|
@@ -10124,6 +10182,62 @@ module Google
|
|
10124
10182
|
execute_or_queue_command(command, &block)
|
10125
10183
|
end
|
10126
10184
|
|
10185
|
+
# Removes maintenance policies from an instance.
|
10186
|
+
# @param [String] project
|
10187
|
+
# Project ID for this request.
|
10188
|
+
# @param [String] zone
|
10189
|
+
# The name of the zone for this request.
|
10190
|
+
# @param [String] instance
|
10191
|
+
# The instance name for this request.
|
10192
|
+
# @param [Google::Apis::ComputeAlpha::InstancesRemoveMaintenancePoliciesRequest] instances_remove_maintenance_policies_request_object
|
10193
|
+
# @param [String] request_id
|
10194
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10195
|
+
# that if you must retry your request, the server will know to ignore the
|
10196
|
+
# request if it has already been completed.
|
10197
|
+
# For example, consider a situation where you make an initial request and the
|
10198
|
+
# request times out. If you make the request again with the same request ID, the
|
10199
|
+
# server can check if original operation with the same request ID was received,
|
10200
|
+
# and if so, will ignore the second request. This prevents clients from
|
10201
|
+
# accidentally creating duplicate commitments.
|
10202
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10203
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10204
|
+
# @param [String] fields
|
10205
|
+
# Selector specifying which fields to include in a partial response.
|
10206
|
+
# @param [String] quota_user
|
10207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10209
|
+
# Overrides userIp if both are provided.
|
10210
|
+
# @param [String] user_ip
|
10211
|
+
# IP address of the site where the request originates. Use this if you want to
|
10212
|
+
# enforce per-user limits.
|
10213
|
+
# @param [Google::Apis::RequestOptions] options
|
10214
|
+
# Request-specific options
|
10215
|
+
#
|
10216
|
+
# @yield [result, err] Result & error if block supplied
|
10217
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10218
|
+
# @yieldparam err [StandardError] error object if request failed
|
10219
|
+
#
|
10220
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10221
|
+
#
|
10222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10225
|
+
def remove_instance_maintenance_policies(project, zone, instance, instances_remove_maintenance_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10226
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/removeMaintenancePolicies', options)
|
10227
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstancesRemoveMaintenancePoliciesRequest::Representation
|
10228
|
+
command.request_object = instances_remove_maintenance_policies_request_object
|
10229
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10230
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10231
|
+
command.params['project'] = project unless project.nil?
|
10232
|
+
command.params['zone'] = zone unless zone.nil?
|
10233
|
+
command.params['instance'] = instance unless instance.nil?
|
10234
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10235
|
+
command.query['fields'] = fields unless fields.nil?
|
10236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10237
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10238
|
+
execute_or_queue_command(command, &block)
|
10239
|
+
end
|
10240
|
+
|
10127
10241
|
# Performs a reset on the instance. For more information, see Resetting an
|
10128
10242
|
# instance.
|
10129
10243
|
# @param [String] project
|
@@ -11231,6 +11345,63 @@ module Google
|
|
11231
11345
|
execute_or_queue_command(command, &block)
|
11232
11346
|
end
|
11233
11347
|
|
11348
|
+
# Updates the Shielded VM config for an instance. This method supports PATCH
|
11349
|
+
# semantics and uses the JSON merge patch format and processing rules.
|
11350
|
+
# @param [String] project
|
11351
|
+
# Project ID for this request.
|
11352
|
+
# @param [String] zone
|
11353
|
+
# The name of the zone for this request.
|
11354
|
+
# @param [String] instance
|
11355
|
+
# Name of the instance scoping this request.
|
11356
|
+
# @param [Google::Apis::ComputeAlpha::ShieldedVmConfig] shielded_vm_config_object
|
11357
|
+
# @param [String] request_id
|
11358
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11359
|
+
# that if you must retry your request, the server will know to ignore the
|
11360
|
+
# request if it has already been completed.
|
11361
|
+
# For example, consider a situation where you make an initial request and the
|
11362
|
+
# request times out. If you make the request again with the same request ID, the
|
11363
|
+
# server can check if original operation with the same request ID was received,
|
11364
|
+
# and if so, will ignore the second request. This prevents clients from
|
11365
|
+
# accidentally creating duplicate commitments.
|
11366
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
11367
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
11368
|
+
# @param [String] fields
|
11369
|
+
# Selector specifying which fields to include in a partial response.
|
11370
|
+
# @param [String] quota_user
|
11371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
11372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
11373
|
+
# Overrides userIp if both are provided.
|
11374
|
+
# @param [String] user_ip
|
11375
|
+
# IP address of the site where the request originates. Use this if you want to
|
11376
|
+
# enforce per-user limits.
|
11377
|
+
# @param [Google::Apis::RequestOptions] options
|
11378
|
+
# Request-specific options
|
11379
|
+
#
|
11380
|
+
# @yield [result, err] Result & error if block supplied
|
11381
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
11382
|
+
# @yieldparam err [StandardError] error object if request failed
|
11383
|
+
#
|
11384
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
11385
|
+
#
|
11386
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11387
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11388
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11389
|
+
def update_instance_shielded_vm_config(project, zone, instance, shielded_vm_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11390
|
+
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig', options)
|
11391
|
+
command.request_representation = Google::Apis::ComputeAlpha::ShieldedVmConfig::Representation
|
11392
|
+
command.request_object = shielded_vm_config_object
|
11393
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
11394
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
11395
|
+
command.params['project'] = project unless project.nil?
|
11396
|
+
command.params['zone'] = zone unless zone.nil?
|
11397
|
+
command.params['instance'] = instance unless instance.nil?
|
11398
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11399
|
+
command.query['fields'] = fields unless fields.nil?
|
11400
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11401
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11402
|
+
execute_or_queue_command(command, &block)
|
11403
|
+
end
|
11404
|
+
|
11234
11405
|
# Retrieves an aggregated list of interconnect attachments.
|
11235
11406
|
# @param [String] project
|
11236
11407
|
# Project ID for this request.
|
@@ -12914,6 +13085,440 @@ module Google
|
|
12914
13085
|
execute_or_queue_command(command, &block)
|
12915
13086
|
end
|
12916
13087
|
|
13088
|
+
# Retrieves an aggregated list of maintenance policies.
|
13089
|
+
# @param [String] project
|
13090
|
+
# Project ID for this request.
|
13091
|
+
# @param [String] filter
|
13092
|
+
# Sets a filter `expression` for filtering listed resources. Your `expression`
|
13093
|
+
# must be in the format: field_name comparison_string literal_string.
|
13094
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
13095
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
13096
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
13097
|
+
# to filter to. The literal value must be valid for the type of field you are
|
13098
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
13099
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
13100
|
+
# must match the entire field.
|
13101
|
+
# For example, to filter for instances that do not have a name of example-
|
13102
|
+
# instance, you would use name ne example-instance.
|
13103
|
+
# You can filter on nested fields. For example, you could filter on instances
|
13104
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
13105
|
+
# nested fields to take advantage of labels to organize and search for results
|
13106
|
+
# based on label values.
|
13107
|
+
# To filter on multiple expressions, provide each separate expression within
|
13108
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
13109
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
13110
|
+
# resources must match all expressions to pass the filters.
|
13111
|
+
# @param [Fixnum] max_results
|
13112
|
+
# The maximum number of results per page that should be returned. If the number
|
13113
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
13114
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
13115
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
13116
|
+
# @param [String] order_by
|
13117
|
+
# Sorts list results by a certain order. By default, results are returned in
|
13118
|
+
# alphanumerical order based on the resource name.
|
13119
|
+
# You can also sort results in descending order based on the creation timestamp
|
13120
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
13121
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
13122
|
+
# Use this to sort resources like operations so that the newest operation is
|
13123
|
+
# returned first.
|
13124
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
13125
|
+
# @param [String] page_token
|
13126
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
13127
|
+
# a previous list request to get the next page of results.
|
13128
|
+
# @param [String] fields
|
13129
|
+
# Selector specifying which fields to include in a partial response.
|
13130
|
+
# @param [String] quota_user
|
13131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13133
|
+
# Overrides userIp if both are provided.
|
13134
|
+
# @param [String] user_ip
|
13135
|
+
# IP address of the site where the request originates. Use this if you want to
|
13136
|
+
# enforce per-user limits.
|
13137
|
+
# @param [Google::Apis::RequestOptions] options
|
13138
|
+
# Request-specific options
|
13139
|
+
#
|
13140
|
+
# @yield [result, err] Result & error if block supplied
|
13141
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList] parsed result object
|
13142
|
+
# @yieldparam err [StandardError] error object if request failed
|
13143
|
+
#
|
13144
|
+
# @return [Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList]
|
13145
|
+
#
|
13146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13149
|
+
def aggregated_maintenance_policy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13150
|
+
command = make_simple_command(:get, '{project}/aggregated/maintenancePolicies', options)
|
13151
|
+
command.response_representation = Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList::Representation
|
13152
|
+
command.response_class = Google::Apis::ComputeAlpha::MaintenancePolicyAggregatedList
|
13153
|
+
command.params['project'] = project unless project.nil?
|
13154
|
+
command.query['filter'] = filter unless filter.nil?
|
13155
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
13156
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
13157
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
13158
|
+
command.query['fields'] = fields unless fields.nil?
|
13159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13160
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13161
|
+
execute_or_queue_command(command, &block)
|
13162
|
+
end
|
13163
|
+
|
13164
|
+
# Deletes the specified maintenance policy.
|
13165
|
+
# @param [String] project
|
13166
|
+
# Project ID for this request.
|
13167
|
+
# @param [String] region
|
13168
|
+
# Name of the region for this request.
|
13169
|
+
# @param [String] maintenance_policy
|
13170
|
+
# Name of the maintenance policy to delete.
|
13171
|
+
# @param [String] request_id
|
13172
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13173
|
+
# that if you must retry your request, the server will know to ignore the
|
13174
|
+
# request if it has already been completed.
|
13175
|
+
# For example, consider a situation where you make an initial request and the
|
13176
|
+
# request times out. If you make the request again with the same request ID, the
|
13177
|
+
# server can check if original operation with the same request ID was received,
|
13178
|
+
# and if so, will ignore the second request. This prevents clients from
|
13179
|
+
# accidentally creating duplicate commitments.
|
13180
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13181
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
13182
|
+
# @param [String] fields
|
13183
|
+
# Selector specifying which fields to include in a partial response.
|
13184
|
+
# @param [String] quota_user
|
13185
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13186
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13187
|
+
# Overrides userIp if both are provided.
|
13188
|
+
# @param [String] user_ip
|
13189
|
+
# IP address of the site where the request originates. Use this if you want to
|
13190
|
+
# enforce per-user limits.
|
13191
|
+
# @param [Google::Apis::RequestOptions] options
|
13192
|
+
# Request-specific options
|
13193
|
+
#
|
13194
|
+
# @yield [result, err] Result & error if block supplied
|
13195
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
13196
|
+
# @yieldparam err [StandardError] error object if request failed
|
13197
|
+
#
|
13198
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
13199
|
+
#
|
13200
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13201
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13202
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13203
|
+
def delete_maintenance_policy(project, region, maintenance_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13204
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/maintenancePolicies/{maintenancePolicy}', options)
|
13205
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
13206
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
13207
|
+
command.params['project'] = project unless project.nil?
|
13208
|
+
command.params['region'] = region unless region.nil?
|
13209
|
+
command.params['maintenancePolicy'] = maintenance_policy unless maintenance_policy.nil?
|
13210
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13211
|
+
command.query['fields'] = fields unless fields.nil?
|
13212
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13213
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13214
|
+
execute_or_queue_command(command, &block)
|
13215
|
+
end
|
13216
|
+
|
13217
|
+
# Retrieves all information of the specified maintenance policy.
|
13218
|
+
# @param [String] project
|
13219
|
+
# Project ID for this request.
|
13220
|
+
# @param [String] region
|
13221
|
+
# Name of the region for this request.
|
13222
|
+
# @param [String] maintenance_policy
|
13223
|
+
# Name of the maintenance policy to retrieve.
|
13224
|
+
# @param [String] fields
|
13225
|
+
# Selector specifying which fields to include in a partial response.
|
13226
|
+
# @param [String] quota_user
|
13227
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13228
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13229
|
+
# Overrides userIp if both are provided.
|
13230
|
+
# @param [String] user_ip
|
13231
|
+
# IP address of the site where the request originates. Use this if you want to
|
13232
|
+
# enforce per-user limits.
|
13233
|
+
# @param [Google::Apis::RequestOptions] options
|
13234
|
+
# Request-specific options
|
13235
|
+
#
|
13236
|
+
# @yield [result, err] Result & error if block supplied
|
13237
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MaintenancePolicy] parsed result object
|
13238
|
+
# @yieldparam err [StandardError] error object if request failed
|
13239
|
+
#
|
13240
|
+
# @return [Google::Apis::ComputeAlpha::MaintenancePolicy]
|
13241
|
+
#
|
13242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13245
|
+
def get_maintenance_policy(project, region, maintenance_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13246
|
+
command = make_simple_command(:get, '{project}/regions/{region}/maintenancePolicies/{maintenancePolicy}', options)
|
13247
|
+
command.response_representation = Google::Apis::ComputeAlpha::MaintenancePolicy::Representation
|
13248
|
+
command.response_class = Google::Apis::ComputeAlpha::MaintenancePolicy
|
13249
|
+
command.params['project'] = project unless project.nil?
|
13250
|
+
command.params['region'] = region unless region.nil?
|
13251
|
+
command.params['maintenancePolicy'] = maintenance_policy unless maintenance_policy.nil?
|
13252
|
+
command.query['fields'] = fields unless fields.nil?
|
13253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13254
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13255
|
+
execute_or_queue_command(command, &block)
|
13256
|
+
end
|
13257
|
+
|
13258
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
13259
|
+
# or resource exists.
|
13260
|
+
# @param [String] project
|
13261
|
+
# Project ID for this request.
|
13262
|
+
# @param [String] region
|
13263
|
+
# The name of the region for this request.
|
13264
|
+
# @param [String] resource
|
13265
|
+
# Name of the resource for this request.
|
13266
|
+
# @param [String] fields
|
13267
|
+
# Selector specifying which fields to include in a partial response.
|
13268
|
+
# @param [String] quota_user
|
13269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13271
|
+
# Overrides userIp if both are provided.
|
13272
|
+
# @param [String] user_ip
|
13273
|
+
# IP address of the site where the request originates. Use this if you want to
|
13274
|
+
# enforce per-user limits.
|
13275
|
+
# @param [Google::Apis::RequestOptions] options
|
13276
|
+
# Request-specific options
|
13277
|
+
#
|
13278
|
+
# @yield [result, err] Result & error if block supplied
|
13279
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
13280
|
+
# @yieldparam err [StandardError] error object if request failed
|
13281
|
+
#
|
13282
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
13283
|
+
#
|
13284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13287
|
+
def get_maintenance_policy_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13288
|
+
command = make_simple_command(:get, '{project}/regions/{region}/maintenancePolicies/{resource}/getIamPolicy', options)
|
13289
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
13290
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
13291
|
+
command.params['project'] = project unless project.nil?
|
13292
|
+
command.params['region'] = region unless region.nil?
|
13293
|
+
command.params['resource'] = resource unless resource.nil?
|
13294
|
+
command.query['fields'] = fields unless fields.nil?
|
13295
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13296
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13297
|
+
execute_or_queue_command(command, &block)
|
13298
|
+
end
|
13299
|
+
|
13300
|
+
# Creates a new maintenance policy.
|
13301
|
+
# @param [String] project
|
13302
|
+
# Project ID for this request.
|
13303
|
+
# @param [String] region
|
13304
|
+
# Name of the region for this request.
|
13305
|
+
# @param [Google::Apis::ComputeAlpha::MaintenancePolicy] maintenance_policy_object
|
13306
|
+
# @param [String] request_id
|
13307
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13308
|
+
# that if you must retry your request, the server will know to ignore the
|
13309
|
+
# request if it has already been completed.
|
13310
|
+
# For example, consider a situation where you make an initial request and the
|
13311
|
+
# request times out. If you make the request again with the same request ID, the
|
13312
|
+
# server can check if original operation with the same request ID was received,
|
13313
|
+
# and if so, will ignore the second request. This prevents clients from
|
13314
|
+
# accidentally creating duplicate commitments.
|
13315
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13316
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
13317
|
+
# @param [String] fields
|
13318
|
+
# Selector specifying which fields to include in a partial response.
|
13319
|
+
# @param [String] quota_user
|
13320
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13321
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13322
|
+
# Overrides userIp if both are provided.
|
13323
|
+
# @param [String] user_ip
|
13324
|
+
# IP address of the site where the request originates. Use this if you want to
|
13325
|
+
# enforce per-user limits.
|
13326
|
+
# @param [Google::Apis::RequestOptions] options
|
13327
|
+
# Request-specific options
|
13328
|
+
#
|
13329
|
+
# @yield [result, err] Result & error if block supplied
|
13330
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
13331
|
+
# @yieldparam err [StandardError] error object if request failed
|
13332
|
+
#
|
13333
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
13334
|
+
#
|
13335
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13336
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13337
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13338
|
+
def insert_maintenance_policy(project, region, maintenance_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13339
|
+
command = make_simple_command(:post, '{project}/regions/{region}/maintenancePolicies', options)
|
13340
|
+
command.request_representation = Google::Apis::ComputeAlpha::MaintenancePolicy::Representation
|
13341
|
+
command.request_object = maintenance_policy_object
|
13342
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
13343
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
13344
|
+
command.params['project'] = project unless project.nil?
|
13345
|
+
command.params['region'] = region unless region.nil?
|
13346
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13347
|
+
command.query['fields'] = fields unless fields.nil?
|
13348
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13349
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13350
|
+
execute_or_queue_command(command, &block)
|
13351
|
+
end
|
13352
|
+
|
13353
|
+
# List all the maintenance policies that have been configured for the specified
|
13354
|
+
# project in specified region.
|
13355
|
+
# @param [String] project
|
13356
|
+
# Project ID for this request.
|
13357
|
+
# @param [String] region
|
13358
|
+
# Name of the region for this request.
|
13359
|
+
# @param [String] filter
|
13360
|
+
# Sets a filter `expression` for filtering listed resources. Your `expression`
|
13361
|
+
# must be in the format: field_name comparison_string literal_string.
|
13362
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
13363
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
13364
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
13365
|
+
# to filter to. The literal value must be valid for the type of field you are
|
13366
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
13367
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
13368
|
+
# must match the entire field.
|
13369
|
+
# For example, to filter for instances that do not have a name of example-
|
13370
|
+
# instance, you would use name ne example-instance.
|
13371
|
+
# You can filter on nested fields. For example, you could filter on instances
|
13372
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
13373
|
+
# nested fields to take advantage of labels to organize and search for results
|
13374
|
+
# based on label values.
|
13375
|
+
# To filter on multiple expressions, provide each separate expression within
|
13376
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
13377
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
13378
|
+
# resources must match all expressions to pass the filters.
|
13379
|
+
# @param [Fixnum] max_results
|
13380
|
+
# The maximum number of results per page that should be returned. If the number
|
13381
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
13382
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
13383
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
13384
|
+
# @param [String] order_by
|
13385
|
+
# Sorts list results by a certain order. By default, results are returned in
|
13386
|
+
# alphanumerical order based on the resource name.
|
13387
|
+
# You can also sort results in descending order based on the creation timestamp
|
13388
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
13389
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
13390
|
+
# Use this to sort resources like operations so that the newest operation is
|
13391
|
+
# returned first.
|
13392
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
13393
|
+
# @param [String] page_token
|
13394
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
13395
|
+
# a previous list request to get the next page of results.
|
13396
|
+
# @param [String] fields
|
13397
|
+
# Selector specifying which fields to include in a partial response.
|
13398
|
+
# @param [String] quota_user
|
13399
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13400
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13401
|
+
# Overrides userIp if both are provided.
|
13402
|
+
# @param [String] user_ip
|
13403
|
+
# IP address of the site where the request originates. Use this if you want to
|
13404
|
+
# enforce per-user limits.
|
13405
|
+
# @param [Google::Apis::RequestOptions] options
|
13406
|
+
# Request-specific options
|
13407
|
+
#
|
13408
|
+
# @yield [result, err] Result & error if block supplied
|
13409
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MaintenancePoliciesList] parsed result object
|
13410
|
+
# @yieldparam err [StandardError] error object if request failed
|
13411
|
+
#
|
13412
|
+
# @return [Google::Apis::ComputeAlpha::MaintenancePoliciesList]
|
13413
|
+
#
|
13414
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13415
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13416
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13417
|
+
def list_maintenance_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13418
|
+
command = make_simple_command(:get, '{project}/regions/{region}/maintenancePolicies', options)
|
13419
|
+
command.response_representation = Google::Apis::ComputeAlpha::MaintenancePoliciesList::Representation
|
13420
|
+
command.response_class = Google::Apis::ComputeAlpha::MaintenancePoliciesList
|
13421
|
+
command.params['project'] = project unless project.nil?
|
13422
|
+
command.params['region'] = region unless region.nil?
|
13423
|
+
command.query['filter'] = filter unless filter.nil?
|
13424
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
13425
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
13426
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
13427
|
+
command.query['fields'] = fields unless fields.nil?
|
13428
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13429
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13430
|
+
execute_or_queue_command(command, &block)
|
13431
|
+
end
|
13432
|
+
|
13433
|
+
# Sets the access control policy on the specified resource. Replaces any
|
13434
|
+
# existing policy.
|
13435
|
+
# @param [String] project
|
13436
|
+
# Project ID for this request.
|
13437
|
+
# @param [String] region
|
13438
|
+
# The name of the region for this request.
|
13439
|
+
# @param [String] resource
|
13440
|
+
# Name of the resource for this request.
|
13441
|
+
# @param [Google::Apis::ComputeAlpha::Policy] policy_object
|
13442
|
+
# @param [String] fields
|
13443
|
+
# Selector specifying which fields to include in a partial response.
|
13444
|
+
# @param [String] quota_user
|
13445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13447
|
+
# Overrides userIp if both are provided.
|
13448
|
+
# @param [String] user_ip
|
13449
|
+
# IP address of the site where the request originates. Use this if you want to
|
13450
|
+
# enforce per-user limits.
|
13451
|
+
# @param [Google::Apis::RequestOptions] options
|
13452
|
+
# Request-specific options
|
13453
|
+
#
|
13454
|
+
# @yield [result, err] Result & error if block supplied
|
13455
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
13456
|
+
# @yieldparam err [StandardError] error object if request failed
|
13457
|
+
#
|
13458
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
13459
|
+
#
|
13460
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13461
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13462
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13463
|
+
def set_maintenance_policy_iam_policy(project, region, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13464
|
+
command = make_simple_command(:post, '{project}/regions/{region}/maintenancePolicies/{resource}/setIamPolicy', options)
|
13465
|
+
command.request_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
13466
|
+
command.request_object = policy_object
|
13467
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
13468
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
13469
|
+
command.params['project'] = project unless project.nil?
|
13470
|
+
command.params['region'] = region unless region.nil?
|
13471
|
+
command.params['resource'] = resource unless resource.nil?
|
13472
|
+
command.query['fields'] = fields unless fields.nil?
|
13473
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13474
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13475
|
+
execute_or_queue_command(command, &block)
|
13476
|
+
end
|
13477
|
+
|
13478
|
+
# Returns permissions that a caller has on the specified resource.
|
13479
|
+
# @param [String] project
|
13480
|
+
# Project ID for this request.
|
13481
|
+
# @param [String] region
|
13482
|
+
# The name of the region for this request.
|
13483
|
+
# @param [String] resource
|
13484
|
+
# Name of the resource for this request.
|
13485
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
13486
|
+
# @param [String] fields
|
13487
|
+
# Selector specifying which fields to include in a partial response.
|
13488
|
+
# @param [String] quota_user
|
13489
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13490
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13491
|
+
# Overrides userIp if both are provided.
|
13492
|
+
# @param [String] user_ip
|
13493
|
+
# IP address of the site where the request originates. Use this if you want to
|
13494
|
+
# enforce per-user limits.
|
13495
|
+
# @param [Google::Apis::RequestOptions] options
|
13496
|
+
# Request-specific options
|
13497
|
+
#
|
13498
|
+
# @yield [result, err] Result & error if block supplied
|
13499
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
13500
|
+
# @yieldparam err [StandardError] error object if request failed
|
13501
|
+
#
|
13502
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
13503
|
+
#
|
13504
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13505
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13506
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13507
|
+
def test_maintenance_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13508
|
+
command = make_simple_command(:post, '{project}/regions/{region}/maintenancePolicies/{resource}/testIamPermissions', options)
|
13509
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
13510
|
+
command.request_object = test_permissions_request_object
|
13511
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
13512
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
13513
|
+
command.params['project'] = project unless project.nil?
|
13514
|
+
command.params['region'] = region unless region.nil?
|
13515
|
+
command.params['resource'] = resource unless resource.nil?
|
13516
|
+
command.query['fields'] = fields unless fields.nil?
|
13517
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13518
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13519
|
+
execute_or_queue_command(command, &block)
|
13520
|
+
end
|
13521
|
+
|
12917
13522
|
# Retrieves the list of network endpoint groups and sorts them by zone.
|
12918
13523
|
# @param [String] project
|
12919
13524
|
# Project ID for this request.
|