google-apis-compute_v1 0.135.0 → 0.137.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 +8 -0
- data/lib/google/apis/compute_v1/classes.rb +2325 -1349
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +229 -0
- data/lib/google/apis/compute_v1/service.rb +42 -0
- metadata +2 -2
|
@@ -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.137.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251210"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -742,6 +742,24 @@ module Google
|
|
|
742
742
|
include Google::Apis::Core::JsonObjectSupport
|
|
743
743
|
end
|
|
744
744
|
|
|
745
|
+
class CalendarModeAdviceRequest
|
|
746
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
747
|
+
|
|
748
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
class CalendarModeAdviceResponse
|
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
753
|
+
|
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
class CalendarModeRecommendation
|
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
759
|
+
|
|
760
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
761
|
+
end
|
|
762
|
+
|
|
745
763
|
class CircuitBreakers
|
|
746
764
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
747
765
|
|
|
@@ -1324,6 +1342,12 @@ module Google
|
|
|
1324
1342
|
include Google::Apis::Core::JsonObjectSupport
|
|
1325
1343
|
end
|
|
1326
1344
|
|
|
1345
|
+
class FlexibleTimeRange
|
|
1346
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1347
|
+
|
|
1348
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1327
1351
|
class ForwardingRule
|
|
1328
1352
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1329
1353
|
|
|
@@ -1504,6 +1528,60 @@ module Google
|
|
|
1504
1528
|
include Google::Apis::Core::JsonObjectSupport
|
|
1505
1529
|
end
|
|
1506
1530
|
|
|
1531
|
+
class FutureResourcesRecommendation
|
|
1532
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1533
|
+
|
|
1534
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1535
|
+
end
|
|
1536
|
+
|
|
1537
|
+
class FutureResourcesRecommendationOtherLocation
|
|
1538
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1539
|
+
|
|
1540
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
class FutureResourcesSpec
|
|
1544
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1545
|
+
|
|
1546
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1547
|
+
end
|
|
1548
|
+
|
|
1549
|
+
class FutureResourcesSpecAggregateResources
|
|
1550
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1551
|
+
|
|
1552
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1553
|
+
end
|
|
1554
|
+
|
|
1555
|
+
class FutureResourcesSpecLocalSsdPartition
|
|
1556
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1557
|
+
|
|
1558
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1559
|
+
end
|
|
1560
|
+
|
|
1561
|
+
class FutureResourcesSpecLocationPolicy
|
|
1562
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1563
|
+
|
|
1564
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1565
|
+
end
|
|
1566
|
+
|
|
1567
|
+
class FutureResourcesSpecLocationPolicyLocation
|
|
1568
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1569
|
+
|
|
1570
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1571
|
+
end
|
|
1572
|
+
|
|
1573
|
+
class FutureResourcesSpecSpecificSkuResources
|
|
1574
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1575
|
+
|
|
1576
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1579
|
+
class FutureResourcesSpecTargetResources
|
|
1580
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1581
|
+
|
|
1582
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1583
|
+
end
|
|
1584
|
+
|
|
1507
1585
|
class GrpcHealthCheck
|
|
1508
1586
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1509
1587
|
|
|
@@ -6400,6 +6478,12 @@ module Google
|
|
|
6400
6478
|
include Google::Apis::Core::JsonObjectSupport
|
|
6401
6479
|
end
|
|
6402
6480
|
|
|
6481
|
+
class StoragePoolExapoolProvisionedCapacityGb
|
|
6482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6483
|
+
|
|
6484
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
6485
|
+
end
|
|
6486
|
+
|
|
6403
6487
|
class StoragePoolList
|
|
6404
6488
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
6405
6489
|
|
|
@@ -7854,6 +7938,7 @@ module Google
|
|
|
7854
7938
|
property :creation_timestamp, as: 'creationTimestamp'
|
|
7855
7939
|
property :description, as: 'description'
|
|
7856
7940
|
property :id, :numeric_string => true, as: 'id'
|
|
7941
|
+
property :ip_collection, as: 'ipCollection'
|
|
7857
7942
|
property :ip_version, as: 'ipVersion'
|
|
7858
7943
|
property :ipv6_endpoint_type, as: 'ipv6EndpointType'
|
|
7859
7944
|
property :kind, as: 'kind'
|
|
@@ -9055,6 +9140,30 @@ module Google
|
|
|
9055
9140
|
end
|
|
9056
9141
|
end
|
|
9057
9142
|
|
|
9143
|
+
class CalendarModeAdviceRequest
|
|
9144
|
+
# @private
|
|
9145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
9146
|
+
hash :future_resources_specs, as: 'futureResourcesSpecs', class: Google::Apis::ComputeV1::FutureResourcesSpec, decorator: Google::Apis::ComputeV1::FutureResourcesSpec::Representation
|
|
9147
|
+
|
|
9148
|
+
end
|
|
9149
|
+
end
|
|
9150
|
+
|
|
9151
|
+
class CalendarModeAdviceResponse
|
|
9152
|
+
# @private
|
|
9153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
9154
|
+
collection :recommendations, as: 'recommendations', class: Google::Apis::ComputeV1::CalendarModeRecommendation, decorator: Google::Apis::ComputeV1::CalendarModeRecommendation::Representation
|
|
9155
|
+
|
|
9156
|
+
end
|
|
9157
|
+
end
|
|
9158
|
+
|
|
9159
|
+
class CalendarModeRecommendation
|
|
9160
|
+
# @private
|
|
9161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
9162
|
+
hash :recommendations_per_spec, as: 'recommendationsPerSpec', class: Google::Apis::ComputeV1::FutureResourcesRecommendation, decorator: Google::Apis::ComputeV1::FutureResourcesRecommendation::Representation
|
|
9163
|
+
|
|
9164
|
+
end
|
|
9165
|
+
end
|
|
9166
|
+
|
|
9058
9167
|
class CircuitBreakers
|
|
9059
9168
|
# @private
|
|
9060
9169
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -10144,6 +10253,16 @@ module Google
|
|
|
10144
10253
|
end
|
|
10145
10254
|
end
|
|
10146
10255
|
|
|
10256
|
+
class FlexibleTimeRange
|
|
10257
|
+
# @private
|
|
10258
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10259
|
+
property :max_duration, as: 'maxDuration'
|
|
10260
|
+
property :min_duration, as: 'minDuration'
|
|
10261
|
+
property :start_time_not_earlier_than, as: 'startTimeNotEarlierThan'
|
|
10262
|
+
property :start_time_not_later_than, as: 'startTimeNotLaterThan'
|
|
10263
|
+
end
|
|
10264
|
+
end
|
|
10265
|
+
|
|
10147
10266
|
class ForwardingRule
|
|
10148
10267
|
# @private
|
|
10149
10268
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -10520,6 +10639,92 @@ module Google
|
|
|
10520
10639
|
end
|
|
10521
10640
|
end
|
|
10522
10641
|
|
|
10642
|
+
class FutureResourcesRecommendation
|
|
10643
|
+
# @private
|
|
10644
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10645
|
+
property :end_time, as: 'endTime'
|
|
10646
|
+
property :location, as: 'location'
|
|
10647
|
+
hash :other_locations, as: 'otherLocations', class: Google::Apis::ComputeV1::FutureResourcesRecommendationOtherLocation, decorator: Google::Apis::ComputeV1::FutureResourcesRecommendationOtherLocation::Representation
|
|
10648
|
+
|
|
10649
|
+
property :recommendation_id, as: 'recommendationId'
|
|
10650
|
+
property :recommendation_type, as: 'recommendationType'
|
|
10651
|
+
property :start_time, as: 'startTime'
|
|
10652
|
+
end
|
|
10653
|
+
end
|
|
10654
|
+
|
|
10655
|
+
class FutureResourcesRecommendationOtherLocation
|
|
10656
|
+
# @private
|
|
10657
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10658
|
+
property :details, as: 'details'
|
|
10659
|
+
property :status, as: 'status'
|
|
10660
|
+
end
|
|
10661
|
+
end
|
|
10662
|
+
|
|
10663
|
+
class FutureResourcesSpec
|
|
10664
|
+
# @private
|
|
10665
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10666
|
+
property :deployment_type, as: 'deploymentType'
|
|
10667
|
+
property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicy, decorator: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicy::Representation
|
|
10668
|
+
|
|
10669
|
+
property :target_resources, as: 'targetResources', class: Google::Apis::ComputeV1::FutureResourcesSpecTargetResources, decorator: Google::Apis::ComputeV1::FutureResourcesSpecTargetResources::Representation
|
|
10670
|
+
|
|
10671
|
+
property :time_range_spec, as: 'timeRangeSpec', class: Google::Apis::ComputeV1::FlexibleTimeRange, decorator: Google::Apis::ComputeV1::FlexibleTimeRange::Representation
|
|
10672
|
+
|
|
10673
|
+
end
|
|
10674
|
+
end
|
|
10675
|
+
|
|
10676
|
+
class FutureResourcesSpecAggregateResources
|
|
10677
|
+
# @private
|
|
10678
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10679
|
+
property :accelerator_count, :numeric_string => true, as: 'acceleratorCount'
|
|
10680
|
+
property :vm_family, as: 'vmFamily'
|
|
10681
|
+
property :workload_type, as: 'workloadType'
|
|
10682
|
+
end
|
|
10683
|
+
end
|
|
10684
|
+
|
|
10685
|
+
class FutureResourcesSpecLocalSsdPartition
|
|
10686
|
+
# @private
|
|
10687
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10688
|
+
property :disk_interface, as: 'diskInterface'
|
|
10689
|
+
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
|
10690
|
+
end
|
|
10691
|
+
end
|
|
10692
|
+
|
|
10693
|
+
class FutureResourcesSpecLocationPolicy
|
|
10694
|
+
# @private
|
|
10695
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10696
|
+
hash :locations, as: 'locations', class: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicyLocation, decorator: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicyLocation::Representation
|
|
10697
|
+
|
|
10698
|
+
end
|
|
10699
|
+
end
|
|
10700
|
+
|
|
10701
|
+
class FutureResourcesSpecLocationPolicyLocation
|
|
10702
|
+
# @private
|
|
10703
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10704
|
+
property :preference, as: 'preference'
|
|
10705
|
+
end
|
|
10706
|
+
end
|
|
10707
|
+
|
|
10708
|
+
class FutureResourcesSpecSpecificSkuResources
|
|
10709
|
+
# @private
|
|
10710
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10711
|
+
property :instance_count, :numeric_string => true, as: 'instanceCount'
|
|
10712
|
+
collection :local_ssd_partitions, as: 'localSsdPartitions', class: Google::Apis::ComputeV1::FutureResourcesSpecLocalSsdPartition, decorator: Google::Apis::ComputeV1::FutureResourcesSpecLocalSsdPartition::Representation
|
|
10713
|
+
|
|
10714
|
+
property :machine_type, as: 'machineType'
|
|
10715
|
+
end
|
|
10716
|
+
end
|
|
10717
|
+
|
|
10718
|
+
class FutureResourcesSpecTargetResources
|
|
10719
|
+
# @private
|
|
10720
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
10721
|
+
property :aggregate_resources, as: 'aggregateResources', class: Google::Apis::ComputeV1::FutureResourcesSpecAggregateResources, decorator: Google::Apis::ComputeV1::FutureResourcesSpecAggregateResources::Representation
|
|
10722
|
+
|
|
10723
|
+
property :specific_sku_resources, as: 'specificSkuResources', class: Google::Apis::ComputeV1::FutureResourcesSpecSpecificSkuResources, decorator: Google::Apis::ComputeV1::FutureResourcesSpecSpecificSkuResources::Representation
|
|
10724
|
+
|
|
10725
|
+
end
|
|
10726
|
+
end
|
|
10727
|
+
|
|
10523
10728
|
class GrpcHealthCheck
|
|
10524
10729
|
# @private
|
|
10525
10730
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -12873,6 +13078,10 @@ module Google
|
|
|
12873
13078
|
property :admin_enabled, as: 'adminEnabled'
|
|
12874
13079
|
property :attachment_group, as: 'attachmentGroup'
|
|
12875
13080
|
property :bandwidth, as: 'bandwidth'
|
|
13081
|
+
property :candidate_cloud_router_ip_address, as: 'candidateCloudRouterIpAddress'
|
|
13082
|
+
property :candidate_cloud_router_ipv6_address, as: 'candidateCloudRouterIpv6Address'
|
|
13083
|
+
property :candidate_customer_router_ip_address, as: 'candidateCustomerRouterIpAddress'
|
|
13084
|
+
property :candidate_customer_router_ipv6_address, as: 'candidateCustomerRouterIpv6Address'
|
|
12876
13085
|
collection :candidate_ipv6_subnets, as: 'candidateIpv6Subnets'
|
|
12877
13086
|
collection :candidate_subnets, as: 'candidateSubnets'
|
|
12878
13087
|
property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
|
|
@@ -16360,6 +16569,7 @@ module Google
|
|
|
16360
16569
|
property :byoip_api_version, as: 'byoipApiVersion'
|
|
16361
16570
|
property :creation_timestamp, as: 'creationTimestamp'
|
|
16362
16571
|
property :description, as: 'description'
|
|
16572
|
+
property :enable_enhanced_ipv4_allocation, as: 'enableEnhancedIpv4Allocation'
|
|
16363
16573
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
|
16364
16574
|
property :id, :numeric_string => true, as: 'id'
|
|
16365
16575
|
property :ip_cidr_range, as: 'ipCidrRange'
|
|
@@ -16448,6 +16658,7 @@ module Google
|
|
|
16448
16658
|
property :allocatable_prefix_length, as: 'allocatablePrefixLength'
|
|
16449
16659
|
property :delegatee_project, as: 'delegateeProject'
|
|
16450
16660
|
property :description, as: 'description'
|
|
16661
|
+
property :enable_enhanced_ipv4_allocation, as: 'enableEnhancedIpv4Allocation'
|
|
16451
16662
|
property :ip_cidr_range, as: 'ipCidrRange'
|
|
16452
16663
|
property :ipv6_access_type, as: 'ipv6AccessType'
|
|
16453
16664
|
property :is_address, as: 'isAddress'
|
|
@@ -17757,6 +17968,7 @@ module Google
|
|
|
17757
17968
|
property :next_hop_ilb, as: 'nextHopIlb'
|
|
17758
17969
|
property :next_hop_instance, as: 'nextHopInstance'
|
|
17759
17970
|
property :next_hop_inter_region_cost, as: 'nextHopInterRegionCost'
|
|
17971
|
+
property :next_hop_interconnect_attachment, as: 'nextHopInterconnectAttachment'
|
|
17760
17972
|
property :next_hop_ip, as: 'nextHopIp'
|
|
17761
17973
|
property :next_hop_med, as: 'nextHopMed'
|
|
17762
17974
|
property :next_hop_network, as: 'nextHopNetwork'
|
|
@@ -18590,6 +18802,7 @@ module Google
|
|
|
18590
18802
|
|
|
18591
18803
|
property :json_parsing, as: 'jsonParsing'
|
|
18592
18804
|
property :log_level, as: 'logLevel'
|
|
18805
|
+
property :request_body_inspection_size, as: 'requestBodyInspectionSize'
|
|
18593
18806
|
collection :user_ip_request_headers, as: 'userIpRequestHeaders'
|
|
18594
18807
|
end
|
|
18595
18808
|
end
|
|
@@ -19594,6 +19807,8 @@ module Google
|
|
|
19594
19807
|
property :capacity_provisioning_type, as: 'capacityProvisioningType'
|
|
19595
19808
|
property :creation_timestamp, as: 'creationTimestamp'
|
|
19596
19809
|
property :description, as: 'description'
|
|
19810
|
+
property :exapool_provisioned_capacity_gb, as: 'exapoolProvisionedCapacityGb', class: Google::Apis::ComputeV1::StoragePoolExapoolProvisionedCapacityGb, decorator: Google::Apis::ComputeV1::StoragePoolExapoolProvisionedCapacityGb::Representation
|
|
19811
|
+
|
|
19597
19812
|
property :id, :numeric_string => true, as: 'id'
|
|
19598
19813
|
property :kind, as: 'kind'
|
|
19599
19814
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
@@ -19666,6 +19881,15 @@ module Google
|
|
|
19666
19881
|
end
|
|
19667
19882
|
end
|
|
19668
19883
|
|
|
19884
|
+
class StoragePoolExapoolProvisionedCapacityGb
|
|
19885
|
+
# @private
|
|
19886
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
19887
|
+
property :capacity_optimized, :numeric_string => true, as: 'capacityOptimized'
|
|
19888
|
+
property :read_optimized, :numeric_string => true, as: 'readOptimized'
|
|
19889
|
+
property :write_optimized, :numeric_string => true, as: 'writeOptimized'
|
|
19890
|
+
end
|
|
19891
|
+
end
|
|
19892
|
+
|
|
19669
19893
|
class StoragePoolList
|
|
19670
19894
|
# @private
|
|
19671
19895
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -19738,6 +19962,10 @@ module Google
|
|
|
19738
19962
|
# @private
|
|
19739
19963
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
19740
19964
|
property :disk_count, :numeric_string => true, as: 'diskCount'
|
|
19965
|
+
property :exapool_max_read_iops, :numeric_string => true, as: 'exapoolMaxReadIops'
|
|
19966
|
+
property :exapool_max_read_throughput, :numeric_string => true, as: 'exapoolMaxReadThroughput'
|
|
19967
|
+
property :exapool_max_write_iops, :numeric_string => true, as: 'exapoolMaxWriteIops'
|
|
19968
|
+
property :exapool_max_write_throughput, :numeric_string => true, as: 'exapoolMaxWriteThroughput'
|
|
19741
19969
|
property :last_resize_timestamp, as: 'lastResizeTimestamp'
|
|
19742
19970
|
property :max_total_provisioned_disk_capacity_gb, :numeric_string => true, as: 'maxTotalProvisionedDiskCapacityGb'
|
|
19743
19971
|
property :pool_used_capacity_bytes, :numeric_string => true, as: 'poolUsedCapacityBytes'
|
|
@@ -19897,6 +20125,7 @@ module Google
|
|
|
19897
20125
|
class Subnetwork
|
|
19898
20126
|
# @private
|
|
19899
20127
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
20128
|
+
property :allow_subnet_cidr_routes_overlap, as: 'allowSubnetCidrRoutesOverlap'
|
|
19900
20129
|
property :creation_timestamp, as: 'creationTimestamp'
|
|
19901
20130
|
property :description, as: 'description'
|
|
19902
20131
|
property :enable_flow_logs, as: 'enableFlowLogs'
|
|
@@ -885,6 +885,48 @@ module Google
|
|
|
885
885
|
execute_or_queue_command(command, &block)
|
|
886
886
|
end
|
|
887
887
|
|
|
888
|
+
# Advise how, where and when to create the requested amount of instances
|
|
889
|
+
# with specified accelerators, within the specified time and location limits.
|
|
890
|
+
# The method recommends creating future reservations for the requested
|
|
891
|
+
# resources.
|
|
892
|
+
# @param [String] project
|
|
893
|
+
# Project ID for this request.
|
|
894
|
+
# @param [String] region
|
|
895
|
+
# Name of the region for this request.
|
|
896
|
+
# @param [Google::Apis::ComputeV1::CalendarModeAdviceRequest] calendar_mode_advice_request_object
|
|
897
|
+
# @param [String] fields
|
|
898
|
+
# Selector specifying which fields to include in a partial response.
|
|
899
|
+
# @param [String] quota_user
|
|
900
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
901
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
902
|
+
# @param [String] user_ip
|
|
903
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
904
|
+
# @param [Google::Apis::RequestOptions] options
|
|
905
|
+
# Request-specific options
|
|
906
|
+
#
|
|
907
|
+
# @yield [result, err] Result & error if block supplied
|
|
908
|
+
# @yieldparam result [Google::Apis::ComputeV1::CalendarModeAdviceResponse] parsed result object
|
|
909
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
910
|
+
#
|
|
911
|
+
# @return [Google::Apis::ComputeV1::CalendarModeAdviceResponse]
|
|
912
|
+
#
|
|
913
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
914
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
915
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
916
|
+
def calendar_mode_advice(project, region, calendar_mode_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
917
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarMode', options)
|
|
918
|
+
command.request_representation = Google::Apis::ComputeV1::CalendarModeAdviceRequest::Representation
|
|
919
|
+
command.request_object = calendar_mode_advice_request_object
|
|
920
|
+
command.response_representation = Google::Apis::ComputeV1::CalendarModeAdviceResponse::Representation
|
|
921
|
+
command.response_class = Google::Apis::ComputeV1::CalendarModeAdviceResponse
|
|
922
|
+
command.params['project'] = project unless project.nil?
|
|
923
|
+
command.params['region'] = region unless region.nil?
|
|
924
|
+
command.query['fields'] = fields unless fields.nil?
|
|
925
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
926
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
927
|
+
execute_or_queue_command(command, &block)
|
|
928
|
+
end
|
|
929
|
+
|
|
888
930
|
# Retrieves an aggregated list of autoscalers.
|
|
889
931
|
# To prevent failure, it is recommended that you set the
|
|
890
932
|
# `returnPartialSuccess` parameter to `true`.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-compute_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.137.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.137.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|