google-apis-compute_v1 0.135.0 → 0.136.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.
@@ -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.135.0"
19
+ GEM_VERSION = "0.136.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 = "20251031"
25
+ REVISION = "20251202"
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
 
@@ -7854,6 +7932,7 @@ module Google
7854
7932
  property :creation_timestamp, as: 'creationTimestamp'
7855
7933
  property :description, as: 'description'
7856
7934
  property :id, :numeric_string => true, as: 'id'
7935
+ property :ip_collection, as: 'ipCollection'
7857
7936
  property :ip_version, as: 'ipVersion'
7858
7937
  property :ipv6_endpoint_type, as: 'ipv6EndpointType'
7859
7938
  property :kind, as: 'kind'
@@ -9055,6 +9134,30 @@ module Google
9055
9134
  end
9056
9135
  end
9057
9136
 
9137
+ class CalendarModeAdviceRequest
9138
+ # @private
9139
+ class Representation < Google::Apis::Core::JsonRepresentation
9140
+ hash :future_resources_specs, as: 'futureResourcesSpecs', class: Google::Apis::ComputeV1::FutureResourcesSpec, decorator: Google::Apis::ComputeV1::FutureResourcesSpec::Representation
9141
+
9142
+ end
9143
+ end
9144
+
9145
+ class CalendarModeAdviceResponse
9146
+ # @private
9147
+ class Representation < Google::Apis::Core::JsonRepresentation
9148
+ collection :recommendations, as: 'recommendations', class: Google::Apis::ComputeV1::CalendarModeRecommendation, decorator: Google::Apis::ComputeV1::CalendarModeRecommendation::Representation
9149
+
9150
+ end
9151
+ end
9152
+
9153
+ class CalendarModeRecommendation
9154
+ # @private
9155
+ class Representation < Google::Apis::Core::JsonRepresentation
9156
+ hash :recommendations_per_spec, as: 'recommendationsPerSpec', class: Google::Apis::ComputeV1::FutureResourcesRecommendation, decorator: Google::Apis::ComputeV1::FutureResourcesRecommendation::Representation
9157
+
9158
+ end
9159
+ end
9160
+
9058
9161
  class CircuitBreakers
9059
9162
  # @private
9060
9163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10144,6 +10247,16 @@ module Google
10144
10247
  end
10145
10248
  end
10146
10249
 
10250
+ class FlexibleTimeRange
10251
+ # @private
10252
+ class Representation < Google::Apis::Core::JsonRepresentation
10253
+ property :max_duration, as: 'maxDuration'
10254
+ property :min_duration, as: 'minDuration'
10255
+ property :start_time_not_earlier_than, as: 'startTimeNotEarlierThan'
10256
+ property :start_time_not_later_than, as: 'startTimeNotLaterThan'
10257
+ end
10258
+ end
10259
+
10147
10260
  class ForwardingRule
10148
10261
  # @private
10149
10262
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10520,6 +10633,92 @@ module Google
10520
10633
  end
10521
10634
  end
10522
10635
 
10636
+ class FutureResourcesRecommendation
10637
+ # @private
10638
+ class Representation < Google::Apis::Core::JsonRepresentation
10639
+ property :end_time, as: 'endTime'
10640
+ property :location, as: 'location'
10641
+ hash :other_locations, as: 'otherLocations', class: Google::Apis::ComputeV1::FutureResourcesRecommendationOtherLocation, decorator: Google::Apis::ComputeV1::FutureResourcesRecommendationOtherLocation::Representation
10642
+
10643
+ property :recommendation_id, as: 'recommendationId'
10644
+ property :recommendation_type, as: 'recommendationType'
10645
+ property :start_time, as: 'startTime'
10646
+ end
10647
+ end
10648
+
10649
+ class FutureResourcesRecommendationOtherLocation
10650
+ # @private
10651
+ class Representation < Google::Apis::Core::JsonRepresentation
10652
+ property :details, as: 'details'
10653
+ property :status, as: 'status'
10654
+ end
10655
+ end
10656
+
10657
+ class FutureResourcesSpec
10658
+ # @private
10659
+ class Representation < Google::Apis::Core::JsonRepresentation
10660
+ property :deployment_type, as: 'deploymentType'
10661
+ property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicy, decorator: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicy::Representation
10662
+
10663
+ property :target_resources, as: 'targetResources', class: Google::Apis::ComputeV1::FutureResourcesSpecTargetResources, decorator: Google::Apis::ComputeV1::FutureResourcesSpecTargetResources::Representation
10664
+
10665
+ property :time_range_spec, as: 'timeRangeSpec', class: Google::Apis::ComputeV1::FlexibleTimeRange, decorator: Google::Apis::ComputeV1::FlexibleTimeRange::Representation
10666
+
10667
+ end
10668
+ end
10669
+
10670
+ class FutureResourcesSpecAggregateResources
10671
+ # @private
10672
+ class Representation < Google::Apis::Core::JsonRepresentation
10673
+ property :accelerator_count, :numeric_string => true, as: 'acceleratorCount'
10674
+ property :vm_family, as: 'vmFamily'
10675
+ property :workload_type, as: 'workloadType'
10676
+ end
10677
+ end
10678
+
10679
+ class FutureResourcesSpecLocalSsdPartition
10680
+ # @private
10681
+ class Representation < Google::Apis::Core::JsonRepresentation
10682
+ property :disk_interface, as: 'diskInterface'
10683
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
10684
+ end
10685
+ end
10686
+
10687
+ class FutureResourcesSpecLocationPolicy
10688
+ # @private
10689
+ class Representation < Google::Apis::Core::JsonRepresentation
10690
+ hash :locations, as: 'locations', class: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicyLocation, decorator: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicyLocation::Representation
10691
+
10692
+ end
10693
+ end
10694
+
10695
+ class FutureResourcesSpecLocationPolicyLocation
10696
+ # @private
10697
+ class Representation < Google::Apis::Core::JsonRepresentation
10698
+ property :preference, as: 'preference'
10699
+ end
10700
+ end
10701
+
10702
+ class FutureResourcesSpecSpecificSkuResources
10703
+ # @private
10704
+ class Representation < Google::Apis::Core::JsonRepresentation
10705
+ property :instance_count, :numeric_string => true, as: 'instanceCount'
10706
+ collection :local_ssd_partitions, as: 'localSsdPartitions', class: Google::Apis::ComputeV1::FutureResourcesSpecLocalSsdPartition, decorator: Google::Apis::ComputeV1::FutureResourcesSpecLocalSsdPartition::Representation
10707
+
10708
+ property :machine_type, as: 'machineType'
10709
+ end
10710
+ end
10711
+
10712
+ class FutureResourcesSpecTargetResources
10713
+ # @private
10714
+ class Representation < Google::Apis::Core::JsonRepresentation
10715
+ property :aggregate_resources, as: 'aggregateResources', class: Google::Apis::ComputeV1::FutureResourcesSpecAggregateResources, decorator: Google::Apis::ComputeV1::FutureResourcesSpecAggregateResources::Representation
10716
+
10717
+ property :specific_sku_resources, as: 'specificSkuResources', class: Google::Apis::ComputeV1::FutureResourcesSpecSpecificSkuResources, decorator: Google::Apis::ComputeV1::FutureResourcesSpecSpecificSkuResources::Representation
10718
+
10719
+ end
10720
+ end
10721
+
10523
10722
  class GrpcHealthCheck
10524
10723
  # @private
10525
10724
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12873,6 +13072,10 @@ module Google
12873
13072
  property :admin_enabled, as: 'adminEnabled'
12874
13073
  property :attachment_group, as: 'attachmentGroup'
12875
13074
  property :bandwidth, as: 'bandwidth'
13075
+ property :candidate_cloud_router_ip_address, as: 'candidateCloudRouterIpAddress'
13076
+ property :candidate_cloud_router_ipv6_address, as: 'candidateCloudRouterIpv6Address'
13077
+ property :candidate_customer_router_ip_address, as: 'candidateCustomerRouterIpAddress'
13078
+ property :candidate_customer_router_ipv6_address, as: 'candidateCustomerRouterIpv6Address'
12876
13079
  collection :candidate_ipv6_subnets, as: 'candidateIpv6Subnets'
12877
13080
  collection :candidate_subnets, as: 'candidateSubnets'
12878
13081
  property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
@@ -16360,6 +16563,7 @@ module Google
16360
16563
  property :byoip_api_version, as: 'byoipApiVersion'
16361
16564
  property :creation_timestamp, as: 'creationTimestamp'
16362
16565
  property :description, as: 'description'
16566
+ property :enable_enhanced_ipv4_allocation, as: 'enableEnhancedIpv4Allocation'
16363
16567
  property :fingerprint, :base64 => true, as: 'fingerprint'
16364
16568
  property :id, :numeric_string => true, as: 'id'
16365
16569
  property :ip_cidr_range, as: 'ipCidrRange'
@@ -16448,6 +16652,7 @@ module Google
16448
16652
  property :allocatable_prefix_length, as: 'allocatablePrefixLength'
16449
16653
  property :delegatee_project, as: 'delegateeProject'
16450
16654
  property :description, as: 'description'
16655
+ property :enable_enhanced_ipv4_allocation, as: 'enableEnhancedIpv4Allocation'
16451
16656
  property :ip_cidr_range, as: 'ipCidrRange'
16452
16657
  property :ipv6_access_type, as: 'ipv6AccessType'
16453
16658
  property :is_address, as: 'isAddress'
@@ -17757,6 +17962,7 @@ module Google
17757
17962
  property :next_hop_ilb, as: 'nextHopIlb'
17758
17963
  property :next_hop_instance, as: 'nextHopInstance'
17759
17964
  property :next_hop_inter_region_cost, as: 'nextHopInterRegionCost'
17965
+ property :next_hop_interconnect_attachment, as: 'nextHopInterconnectAttachment'
17760
17966
  property :next_hop_ip, as: 'nextHopIp'
17761
17967
  property :next_hop_med, as: 'nextHopMed'
17762
17968
  property :next_hop_network, as: 'nextHopNetwork'
@@ -18590,6 +18796,7 @@ module Google
18590
18796
 
18591
18797
  property :json_parsing, as: 'jsonParsing'
18592
18798
  property :log_level, as: 'logLevel'
18799
+ property :request_body_inspection_size, as: 'requestBodyInspectionSize'
18593
18800
  collection :user_ip_request_headers, as: 'userIpRequestHeaders'
18594
18801
  end
18595
18802
  end
@@ -19897,6 +20104,7 @@ module Google
19897
20104
  class Subnetwork
19898
20105
  # @private
19899
20106
  class Representation < Google::Apis::Core::JsonRepresentation
20107
+ property :allow_subnet_cidr_routes_overlap, as: 'allowSubnetCidrRoutesOverlap'
19900
20108
  property :creation_timestamp, as: 'creationTimestamp'
19901
20109
  property :description, as: 'description'
19902
20110
  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.135.0
4
+ version: 0.136.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.135.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.136.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: