google-apis-compute_beta 0.131.0 → 0.132.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4371ddd742479b30c6c542ba60418f65e534d3aaeaafdbc803e6dde8b88e2d1
4
- data.tar.gz: 8306da7b52dc2466a6014a96ace2b1a7ec329f8f5ca7832a526cbbd3748d74df
3
+ metadata.gz: e7e2dfe85021195de8cb917df21e86c316c57850b23f8bc001b3ccb43e8622a3
4
+ data.tar.gz: 1fdc5ba4365c6c90d9e6a2676ed57b9620fd0f515dc20c7f280ccdc6738cafba
5
5
  SHA512:
6
- metadata.gz: 676bac7cee183a7f59bdb7a1e3aa196b4e1e405dd016f7cfedac1ec60b5de7f50843df3eb17499552c91fbdaabbb63b3eeef0470344fe852b614ce0899f05d3b
7
- data.tar.gz: e7449062ae6c744c5f782b0e3bd8ccea56a7f2b346669b97f5a3e3f4b02a0f2167196787b875689f33ededb0b341d361c03016ba5cd73a8237d02332cbd6c2a8
6
+ metadata.gz: 5f85dec40d917a585efb8ba25e643c6d49812927ab817c3a2897eb59c0a6ee378bc0ece6980f113959b98c48ed39d79fbde6b1f69d6d5d413b279d916ac1eda6
7
+ data.tar.gz: ce70159a178e57abb397f871f23860ed8830db6863e2dce8c5f2d3b0b2ea62fb668a322936e11869567a1a638d81d1238335eed1811d310572865a849eadb8c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_beta
2
2
 
3
+ ### v0.132.0 (2026-01-25)
4
+
5
+ * Regenerated from discovery document revision 20260113
6
+
3
7
  ### v0.131.0 (2026-01-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20260106
@@ -48599,6 +48599,303 @@ module Google
48599
48599
  end
48600
48600
  end
48601
48601
 
48602
+ # Represents a reservation slot resource.
48603
+ class ReservationSlot
48604
+ include Google::Apis::Core::Hashable
48605
+
48606
+ # Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
48607
+ # Corresponds to the JSON property `creationTimestamp`
48608
+ # @return [String]
48609
+ attr_accessor :creation_timestamp
48610
+
48611
+ # Output only. [Output Only] The unique identifier for this resource. This
48612
+ # identifier is
48613
+ # defined by the server.
48614
+ # Corresponds to the JSON property `id`
48615
+ # @return [Fixnum]
48616
+ attr_accessor :id
48617
+
48618
+ # Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot
48619
+ # for reservation slots.
48620
+ # Corresponds to the JSON property `kind`
48621
+ # @return [String]
48622
+ attr_accessor :kind
48623
+
48624
+ # Output only. [Output Only] The name of the reservation slot.
48625
+ # Corresponds to the JSON property `name`
48626
+ # @return [String]
48627
+ attr_accessor :name
48628
+
48629
+ # Output only. [Output Only] The physical topology of the reservation slot.
48630
+ # Corresponds to the JSON property `physicalTopology`
48631
+ # @return [Google::Apis::ComputeBeta::ReservationSlotPhysicalTopology]
48632
+ attr_accessor :physical_topology
48633
+
48634
+ # Output only. [Output Only] A server-defined fully-qualified URL for this
48635
+ # resource.
48636
+ # Corresponds to the JSON property `selfLink`
48637
+ # @return [String]
48638
+ attr_accessor :self_link
48639
+
48640
+ # Output only. [Output Only] A server-defined URL for this resource with the
48641
+ # resource ID.
48642
+ # Corresponds to the JSON property `selfLinkWithId`
48643
+ # @return [String]
48644
+ attr_accessor :self_link_with_id
48645
+
48646
+ # The share setting for reservations and sole tenancy node groups.
48647
+ # Corresponds to the JSON property `shareSettings`
48648
+ # @return [Google::Apis::ComputeBeta::ShareSettings]
48649
+ attr_accessor :share_settings
48650
+
48651
+ # Output only. [Output Only] The state of the reservation slot.
48652
+ # Corresponds to the JSON property `state`
48653
+ # @return [String]
48654
+ attr_accessor :state
48655
+
48656
+ # Output only. [Output Only] The status of the reservation slot.
48657
+ # Corresponds to the JSON property `status`
48658
+ # @return [Google::Apis::ComputeBeta::ReservationSlotStatus]
48659
+ attr_accessor :status
48660
+
48661
+ # Output only. [Output Only] The zone in which the reservation slot resides.
48662
+ # Corresponds to the JSON property `zone`
48663
+ # @return [String]
48664
+ attr_accessor :zone
48665
+
48666
+ def initialize(**args)
48667
+ update!(**args)
48668
+ end
48669
+
48670
+ # Update properties of this object
48671
+ def update!(**args)
48672
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
48673
+ @id = args[:id] if args.key?(:id)
48674
+ @kind = args[:kind] if args.key?(:kind)
48675
+ @name = args[:name] if args.key?(:name)
48676
+ @physical_topology = args[:physical_topology] if args.key?(:physical_topology)
48677
+ @self_link = args[:self_link] if args.key?(:self_link)
48678
+ @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
48679
+ @share_settings = args[:share_settings] if args.key?(:share_settings)
48680
+ @state = args[:state] if args.key?(:state)
48681
+ @status = args[:status] if args.key?(:status)
48682
+ @zone = args[:zone] if args.key?(:zone)
48683
+ end
48684
+ end
48685
+
48686
+ #
48687
+ class ReservationSlotPhysicalTopology
48688
+ include Google::Apis::Core::Hashable
48689
+
48690
+ # The unique identifier of the capacity block within the cluster.
48691
+ # Corresponds to the JSON property `block`
48692
+ # @return [String]
48693
+ attr_accessor :block
48694
+
48695
+ # The cluster name of the reservation sub-block.
48696
+ # Corresponds to the JSON property `cluster`
48697
+ # @return [String]
48698
+ attr_accessor :cluster
48699
+
48700
+ # The unique identifier of the capacity host within the capacity sub-block.
48701
+ # Corresponds to the JSON property `host`
48702
+ # @return [String]
48703
+ attr_accessor :host
48704
+
48705
+ # The unique identifier of the capacity sub-block within the capacity
48706
+ # block.
48707
+ # Corresponds to the JSON property `subBlock`
48708
+ # @return [String]
48709
+ attr_accessor :sub_block
48710
+
48711
+ def initialize(**args)
48712
+ update!(**args)
48713
+ end
48714
+
48715
+ # Update properties of this object
48716
+ def update!(**args)
48717
+ @block = args[:block] if args.key?(:block)
48718
+ @cluster = args[:cluster] if args.key?(:cluster)
48719
+ @host = args[:host] if args.key?(:host)
48720
+ @sub_block = args[:sub_block] if args.key?(:sub_block)
48721
+ end
48722
+ end
48723
+
48724
+ #
48725
+ class ReservationSlotStatus
48726
+ include Google::Apis::Core::Hashable
48727
+
48728
+ # Output only. [Output Only] The physical topology of the reservation sub-block.
48729
+ # Corresponds to the JSON property `physicalTopology`
48730
+ # @return [Google::Apis::ComputeBeta::ReservationSlotPhysicalTopology]
48731
+ attr_accessor :physical_topology
48732
+
48733
+ # Output only. The RDMA IP address of the physical host.
48734
+ # Corresponds to the JSON property `rdmaIpAddresses`
48735
+ # @return [Array<String>]
48736
+ attr_accessor :rdma_ip_addresses
48737
+
48738
+ # Output only. The URIs of the instances currently running on this slot.
48739
+ # Corresponds to the JSON property `runningInstances`
48740
+ # @return [Array<String>]
48741
+ attr_accessor :running_instances
48742
+
48743
+ def initialize(**args)
48744
+ update!(**args)
48745
+ end
48746
+
48747
+ # Update properties of this object
48748
+ def update!(**args)
48749
+ @physical_topology = args[:physical_topology] if args.key?(:physical_topology)
48750
+ @rdma_ip_addresses = args[:rdma_ip_addresses] if args.key?(:rdma_ip_addresses)
48751
+ @running_instances = args[:running_instances] if args.key?(:running_instances)
48752
+ end
48753
+ end
48754
+
48755
+ #
48756
+ class ReservationSlotsGetResponse
48757
+ include Google::Apis::Core::Hashable
48758
+
48759
+ # Represents a reservation slot resource.
48760
+ # Corresponds to the JSON property `resource`
48761
+ # @return [Google::Apis::ComputeBeta::ReservationSlot]
48762
+ attr_accessor :resource
48763
+
48764
+ def initialize(**args)
48765
+ update!(**args)
48766
+ end
48767
+
48768
+ # Update properties of this object
48769
+ def update!(**args)
48770
+ @resource = args[:resource] if args.key?(:resource)
48771
+ end
48772
+ end
48773
+
48774
+ # A list of reservation slots within a single reservation.
48775
+ class ReservationSlotsListResponse
48776
+ include Google::Apis::Core::Hashable
48777
+
48778
+ # The unique identifier for the resource; defined by the server.
48779
+ # Corresponds to the JSON property `id`
48780
+ # @return [String]
48781
+ attr_accessor :id
48782
+
48783
+ # A list of reservation slot resources.
48784
+ # Corresponds to the JSON property `items`
48785
+ # @return [Array<Google::Apis::ComputeBeta::ReservationSlot>]
48786
+ attr_accessor :items
48787
+
48788
+ # The type of resource. Alwayscompute#reservationSlot for a list of reservation
48789
+ # slots.
48790
+ # Corresponds to the JSON property `kind`
48791
+ # @return [String]
48792
+ attr_accessor :kind
48793
+
48794
+ # This token allows you to get the next page of results for
48795
+ # list requests. If the number of results is larger thanmaxResults, use the
48796
+ # nextPageToken as a value for
48797
+ # the query parameter pageToken in the next list request.
48798
+ # Subsequent list requests will have their own nextPageToken to
48799
+ # continue paging through the results.
48800
+ # Corresponds to the JSON property `nextPageToken`
48801
+ # @return [String]
48802
+ attr_accessor :next_page_token
48803
+
48804
+ # The server-defined URL for this resource.
48805
+ # Corresponds to the JSON property `selfLink`
48806
+ # @return [String]
48807
+ attr_accessor :self_link
48808
+
48809
+ # An informational warning message.
48810
+ # Corresponds to the JSON property `warning`
48811
+ # @return [Google::Apis::ComputeBeta::ReservationSlotsListResponse::Warning]
48812
+ attr_accessor :warning
48813
+
48814
+ def initialize(**args)
48815
+ update!(**args)
48816
+ end
48817
+
48818
+ # Update properties of this object
48819
+ def update!(**args)
48820
+ @id = args[:id] if args.key?(:id)
48821
+ @items = args[:items] if args.key?(:items)
48822
+ @kind = args[:kind] if args.key?(:kind)
48823
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
48824
+ @self_link = args[:self_link] if args.key?(:self_link)
48825
+ @warning = args[:warning] if args.key?(:warning)
48826
+ end
48827
+
48828
+ # An informational warning message.
48829
+ class Warning
48830
+ include Google::Apis::Core::Hashable
48831
+
48832
+ # [Output Only] A warning code, if applicable. For example, Compute
48833
+ # Engine returns NO_RESULTS_ON_PAGE if there
48834
+ # are no results in the response.
48835
+ # Corresponds to the JSON property `code`
48836
+ # @return [String]
48837
+ attr_accessor :code
48838
+
48839
+ # [Output Only] Metadata about this warning in key:
48840
+ # value format. For example:
48841
+ # "data": [
48842
+ # `
48843
+ # "key": "scope",
48844
+ # "value": "zones/us-east1-d"
48845
+ # `
48846
+ # Corresponds to the JSON property `data`
48847
+ # @return [Array<Google::Apis::ComputeBeta::ReservationSlotsListResponse::Warning::Datum>]
48848
+ attr_accessor :data
48849
+
48850
+ # [Output Only] A human-readable description of the warning code.
48851
+ # Corresponds to the JSON property `message`
48852
+ # @return [String]
48853
+ attr_accessor :message
48854
+
48855
+ def initialize(**args)
48856
+ update!(**args)
48857
+ end
48858
+
48859
+ # Update properties of this object
48860
+ def update!(**args)
48861
+ @code = args[:code] if args.key?(:code)
48862
+ @data = args[:data] if args.key?(:data)
48863
+ @message = args[:message] if args.key?(:message)
48864
+ end
48865
+
48866
+ #
48867
+ class Datum
48868
+ include Google::Apis::Core::Hashable
48869
+
48870
+ # [Output Only] A key that provides more detail on the warning being
48871
+ # returned. For example, for warnings where there are no results in a list
48872
+ # request for a particular zone, this key might be scope and
48873
+ # the key value might be the zone name. Other examples might be a key
48874
+ # indicating a deprecated resource and a suggested replacement, or a
48875
+ # warning about invalid network settings (for example, if an instance
48876
+ # attempts to perform IP forwarding but is not enabled for IP forwarding).
48877
+ # Corresponds to the JSON property `key`
48878
+ # @return [String]
48879
+ attr_accessor :key
48880
+
48881
+ # [Output Only] A warning data value corresponding to the key.
48882
+ # Corresponds to the JSON property `value`
48883
+ # @return [String]
48884
+ attr_accessor :value
48885
+
48886
+ def initialize(**args)
48887
+ update!(**args)
48888
+ end
48889
+
48890
+ # Update properties of this object
48891
+ def update!(**args)
48892
+ @key = args[:key] if args.key?(:key)
48893
+ @value = args[:value] if args.key?(:value)
48894
+ end
48895
+ end
48896
+ end
48897
+ end
48898
+
48602
48899
  # Represents a reservation subBlock resource.
48603
48900
  class ReservationSubBlock
48604
48901
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeBeta
18
18
  # Version of the google-apis-compute_beta gem
19
- GEM_VERSION = "0.131.0"
19
+ GEM_VERSION = "0.132.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 = "20260106"
25
+ REVISION = "20260113"
26
26
  end
27
27
  end
28
28
  end
@@ -5968,6 +5968,48 @@ module Google
5968
5968
  include Google::Apis::Core::JsonObjectSupport
5969
5969
  end
5970
5970
 
5971
+ class ReservationSlot
5972
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5973
+
5974
+ include Google::Apis::Core::JsonObjectSupport
5975
+ end
5976
+
5977
+ class ReservationSlotPhysicalTopology
5978
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5979
+
5980
+ include Google::Apis::Core::JsonObjectSupport
5981
+ end
5982
+
5983
+ class ReservationSlotStatus
5984
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5985
+
5986
+ include Google::Apis::Core::JsonObjectSupport
5987
+ end
5988
+
5989
+ class ReservationSlotsGetResponse
5990
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5991
+
5992
+ include Google::Apis::Core::JsonObjectSupport
5993
+ end
5994
+
5995
+ class ReservationSlotsListResponse
5996
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5997
+
5998
+ class Warning
5999
+ class Representation < Google::Apis::Core::JsonRepresentation; end
6000
+
6001
+ class Datum
6002
+ class Representation < Google::Apis::Core::JsonRepresentation; end
6003
+
6004
+ include Google::Apis::Core::JsonObjectSupport
6005
+ end
6006
+
6007
+ include Google::Apis::Core::JsonObjectSupport
6008
+ end
6009
+
6010
+ include Google::Apis::Core::JsonObjectSupport
6011
+ end
6012
+
5971
6013
  class ReservationSubBlock
5972
6014
  class Representation < Google::Apis::Core::JsonRepresentation; end
5973
6015
 
@@ -19984,6 +20026,86 @@ module Google
19984
20026
  end
19985
20027
  end
19986
20028
 
20029
+ class ReservationSlot
20030
+ # @private
20031
+ class Representation < Google::Apis::Core::JsonRepresentation
20032
+ property :creation_timestamp, as: 'creationTimestamp'
20033
+ property :id, :numeric_string => true, as: 'id'
20034
+ property :kind, as: 'kind'
20035
+ property :name, as: 'name'
20036
+ property :physical_topology, as: 'physicalTopology', class: Google::Apis::ComputeBeta::ReservationSlotPhysicalTopology, decorator: Google::Apis::ComputeBeta::ReservationSlotPhysicalTopology::Representation
20037
+
20038
+ property :self_link, as: 'selfLink'
20039
+ property :self_link_with_id, as: 'selfLinkWithId'
20040
+ property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeBeta::ShareSettings, decorator: Google::Apis::ComputeBeta::ShareSettings::Representation
20041
+
20042
+ property :state, as: 'state'
20043
+ property :status, as: 'status', class: Google::Apis::ComputeBeta::ReservationSlotStatus, decorator: Google::Apis::ComputeBeta::ReservationSlotStatus::Representation
20044
+
20045
+ property :zone, as: 'zone'
20046
+ end
20047
+ end
20048
+
20049
+ class ReservationSlotPhysicalTopology
20050
+ # @private
20051
+ class Representation < Google::Apis::Core::JsonRepresentation
20052
+ property :block, as: 'block'
20053
+ property :cluster, as: 'cluster'
20054
+ property :host, as: 'host'
20055
+ property :sub_block, as: 'subBlock'
20056
+ end
20057
+ end
20058
+
20059
+ class ReservationSlotStatus
20060
+ # @private
20061
+ class Representation < Google::Apis::Core::JsonRepresentation
20062
+ property :physical_topology, as: 'physicalTopology', class: Google::Apis::ComputeBeta::ReservationSlotPhysicalTopology, decorator: Google::Apis::ComputeBeta::ReservationSlotPhysicalTopology::Representation
20063
+
20064
+ collection :rdma_ip_addresses, as: 'rdmaIpAddresses'
20065
+ collection :running_instances, as: 'runningInstances'
20066
+ end
20067
+ end
20068
+
20069
+ class ReservationSlotsGetResponse
20070
+ # @private
20071
+ class Representation < Google::Apis::Core::JsonRepresentation
20072
+ property :resource, as: 'resource', class: Google::Apis::ComputeBeta::ReservationSlot, decorator: Google::Apis::ComputeBeta::ReservationSlot::Representation
20073
+
20074
+ end
20075
+ end
20076
+
20077
+ class ReservationSlotsListResponse
20078
+ # @private
20079
+ class Representation < Google::Apis::Core::JsonRepresentation
20080
+ property :id, as: 'id'
20081
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::ReservationSlot, decorator: Google::Apis::ComputeBeta::ReservationSlot::Representation
20082
+
20083
+ property :kind, as: 'kind'
20084
+ property :next_page_token, as: 'nextPageToken'
20085
+ property :self_link, as: 'selfLink'
20086
+ property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationSlotsListResponse::Warning, decorator: Google::Apis::ComputeBeta::ReservationSlotsListResponse::Warning::Representation
20087
+
20088
+ end
20089
+
20090
+ class Warning
20091
+ # @private
20092
+ class Representation < Google::Apis::Core::JsonRepresentation
20093
+ property :code, as: 'code'
20094
+ collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationSlotsListResponse::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationSlotsListResponse::Warning::Datum::Representation
20095
+
20096
+ property :message, as: 'message'
20097
+ end
20098
+
20099
+ class Datum
20100
+ # @private
20101
+ class Representation < Google::Apis::Core::JsonRepresentation
20102
+ property :key, as: 'key'
20103
+ property :value, as: 'value'
20104
+ end
20105
+ end
20106
+ end
20107
+ end
20108
+
19987
20109
  class ReservationSubBlock
19988
20110
  # @private
19989
20111
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49378,6 +49378,221 @@ module Google
49378
49378
  execute_or_queue_command(command, &block)
49379
49379
  end
49380
49380
 
49381
+ # Retrieves information about the specified reservation slot.
49382
+ # @param [String] project
49383
+ # The project ID for this request.
49384
+ # @param [String] zone
49385
+ # The name of the zone for this request, formatted as RFC1035.
49386
+ # @param [String] parent_name
49387
+ # The name of the parent reservation and parent block, formatted as
49388
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
49389
+ # reservationSubBlocks/`reservation_sub_block_name`
49390
+ # @param [String] reservation_slot
49391
+ # The name of the reservation slot, formatted as RFC1035 or a resource ID
49392
+ # number.
49393
+ # @param [String] fields
49394
+ # Selector specifying which fields to include in a partial response.
49395
+ # @param [String] quota_user
49396
+ # Available to use for quota purposes for server-side applications. Can be any
49397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49398
+ # @param [String] user_ip
49399
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49400
+ # @param [Google::Apis::RequestOptions] options
49401
+ # Request-specific options
49402
+ #
49403
+ # @yield [result, err] Result & error if block supplied
49404
+ # @yieldparam result [Google::Apis::ComputeBeta::ReservationSlotsGetResponse] parsed result object
49405
+ # @yieldparam err [StandardError] error object if request failed
49406
+ #
49407
+ # @return [Google::Apis::ComputeBeta::ReservationSlotsGetResponse]
49408
+ #
49409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49412
+ def get_reservation_slot(project, zone, parent_name, reservation_slot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49413
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
49414
+ command.response_representation = Google::Apis::ComputeBeta::ReservationSlotsGetResponse::Representation
49415
+ command.response_class = Google::Apis::ComputeBeta::ReservationSlotsGetResponse
49416
+ command.params['project'] = project unless project.nil?
49417
+ command.params['zone'] = zone unless zone.nil?
49418
+ command.params['parentName'] = parent_name unless parent_name.nil?
49419
+ command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
49420
+ command.query['fields'] = fields unless fields.nil?
49421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49422
+ command.query['userIp'] = user_ip unless user_ip.nil?
49423
+ execute_or_queue_command(command, &block)
49424
+ end
49425
+
49426
+ # Retrieves a list of reservation slots under a single reservation.
49427
+ # @param [String] project
49428
+ # The project ID for this request.
49429
+ # @param [String] zone
49430
+ # The name of the zone for this request, formatted as RFC1035.
49431
+ # @param [String] parent_name
49432
+ # The name of the parent reservation and parent block, formatted as
49433
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
49434
+ # reservationSubBlocks/`reservation_sub_block_name`
49435
+ # @param [String] filter
49436
+ # A filter expression that filters resources listed in the response. Most
49437
+ # Compute resources support two types of filter expressions:
49438
+ # expressions that support regular expressions and expressions that follow
49439
+ # API improvement proposal AIP-160.
49440
+ # These two types of filter expressions cannot be mixed in one request.
49441
+ # If you want to use AIP-160, your expression must specify the field name, an
49442
+ # operator, and the value that you want to use for filtering. The value
49443
+ # must be a string, a number, or a boolean. The operator
49444
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
49445
+ # For example, if you are filtering Compute Engine instances, you can
49446
+ # exclude instances named `example-instance` by specifying
49447
+ # `name != example-instance`.
49448
+ # The `:*` comparison can be used to test whether a key has been defined.
49449
+ # For example, to find all objects with `owner` label use:
49450
+ # ```
49451
+ # labels.owner:*
49452
+ # ```
49453
+ # You can also filter nested fields. For example, you could specify
49454
+ # `scheduling.automaticRestart = false` to include instances only
49455
+ # if they are not scheduled for automatic restarts. You can use filtering
49456
+ # on nested fields to filter based onresource labels.
49457
+ # To filter on multiple expressions, provide each separate expression within
49458
+ # parentheses. For example:
49459
+ # ```
49460
+ # (scheduling.automaticRestart = true)
49461
+ # (cpuPlatform = "Intel Skylake")
49462
+ # ```
49463
+ # By default, each expression is an `AND` expression. However, you
49464
+ # can include `AND` and `OR` expressions explicitly.
49465
+ # For example:
49466
+ # ```
49467
+ # (cpuPlatform = "Intel Skylake") OR
49468
+ # (cpuPlatform = "Intel Broadwell") AND
49469
+ # (scheduling.automaticRestart = true)
49470
+ # ```
49471
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
49472
+ # (not equal) operator against a single un-parenthesized expression with or
49473
+ # without quotes or against multiple parenthesized expressions. Examples:
49474
+ # `fieldname eq unquoted literal`
49475
+ # `fieldname eq 'single quoted literal'`
49476
+ # `fieldname eq "double quoted literal"`
49477
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
49478
+ # The literal value is interpreted as a regular expression using GoogleRE2
49479
+ # library syntax.
49480
+ # The literal value must match the entire field.
49481
+ # For example, to filter for instances that do not end with name "instance",
49482
+ # you would use `name ne .*instance`.
49483
+ # You cannot combine constraints on multiple fields using regular
49484
+ # expressions.
49485
+ # @param [Fixnum] max_results
49486
+ # The maximum number of results per page that should be returned.
49487
+ # If the number of available results is larger than `maxResults`,
49488
+ # Compute Engine returns a `nextPageToken` that can be used to get
49489
+ # the next page of results in subsequent list requests. Acceptable values are
49490
+ # `0` to `500`, inclusive. (Default: `500`)
49491
+ # @param [String] order_by
49492
+ # Sorts list results by a certain order. By default, results
49493
+ # are returned in alphanumerical order based on the resource name.
49494
+ # You can also sort results in descending order based on the creation
49495
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
49496
+ # results based on the `creationTimestamp` field in
49497
+ # reverse chronological order (newest result first). Use this to sort
49498
+ # resources like operations so that the newest operation is returned first.
49499
+ # Currently, only sorting by `name` or
49500
+ # `creationTimestamp desc` is supported.
49501
+ # @param [String] page_token
49502
+ # Specifies a page token to use. Set `pageToken` to the
49503
+ # `nextPageToken` returned by a previous list request to get
49504
+ # the next page of results.
49505
+ # @param [Boolean] return_partial_success
49506
+ # Opt-in for partial success behavior which provides partial results in case
49507
+ # of failure. The default value is false.
49508
+ # For example, when partial success behavior is enabled, aggregatedList for a
49509
+ # single zone scope either returns all resources in the zone or no resources,
49510
+ # with an error code.
49511
+ # @param [String] fields
49512
+ # Selector specifying which fields to include in a partial response.
49513
+ # @param [String] quota_user
49514
+ # Available to use for quota purposes for server-side applications. Can be any
49515
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49516
+ # @param [String] user_ip
49517
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49518
+ # @param [Google::Apis::RequestOptions] options
49519
+ # Request-specific options
49520
+ #
49521
+ # @yield [result, err] Result & error if block supplied
49522
+ # @yieldparam result [Google::Apis::ComputeBeta::ReservationSlotsListResponse] parsed result object
49523
+ # @yieldparam err [StandardError] error object if request failed
49524
+ #
49525
+ # @return [Google::Apis::ComputeBeta::ReservationSlotsListResponse]
49526
+ #
49527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49530
+ def list_reservation_slots(project, zone, parent_name, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49531
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots', options)
49532
+ command.response_representation = Google::Apis::ComputeBeta::ReservationSlotsListResponse::Representation
49533
+ command.response_class = Google::Apis::ComputeBeta::ReservationSlotsListResponse
49534
+ command.params['project'] = project unless project.nil?
49535
+ command.params['zone'] = zone unless zone.nil?
49536
+ command.params['parentName'] = parent_name unless parent_name.nil?
49537
+ command.query['filter'] = filter unless filter.nil?
49538
+ command.query['maxResults'] = max_results unless max_results.nil?
49539
+ command.query['orderBy'] = order_by unless order_by.nil?
49540
+ command.query['pageToken'] = page_token unless page_token.nil?
49541
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
49542
+ command.query['fields'] = fields unless fields.nil?
49543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49544
+ command.query['userIp'] = user_ip unless user_ip.nil?
49545
+ execute_or_queue_command(command, &block)
49546
+ end
49547
+
49548
+ # Update a reservation slot in the specified sub-block.
49549
+ # @param [String] project
49550
+ # The project ID for this request.
49551
+ # @param [String] zone
49552
+ # The name of the zone for this request, formatted as RFC1035.
49553
+ # @param [String] parent_name
49554
+ # The name of the sub-block resource.
49555
+ # @param [String] reservation_slot
49556
+ # The name of the slot resource.
49557
+ # @param [Google::Apis::ComputeBeta::ReservationSlot] reservation_slot_object
49558
+ # @param [String] update_mask
49559
+ # The fields to be updated as part of this request.
49560
+ # @param [String] fields
49561
+ # Selector specifying which fields to include in a partial response.
49562
+ # @param [String] quota_user
49563
+ # Available to use for quota purposes for server-side applications. Can be any
49564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49565
+ # @param [String] user_ip
49566
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49567
+ # @param [Google::Apis::RequestOptions] options
49568
+ # Request-specific options
49569
+ #
49570
+ # @yield [result, err] Result & error if block supplied
49571
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
49572
+ # @yieldparam err [StandardError] error object if request failed
49573
+ #
49574
+ # @return [Google::Apis::ComputeBeta::Operation]
49575
+ #
49576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49579
+ def update_reservation_slot(project, zone, parent_name, reservation_slot, reservation_slot_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49580
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
49581
+ command.request_representation = Google::Apis::ComputeBeta::ReservationSlot::Representation
49582
+ command.request_object = reservation_slot_object
49583
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
49584
+ command.response_class = Google::Apis::ComputeBeta::Operation
49585
+ command.params['project'] = project unless project.nil?
49586
+ command.params['zone'] = zone unless zone.nil?
49587
+ command.params['parentName'] = parent_name unless parent_name.nil?
49588
+ command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
49589
+ command.query['updateMask'] = update_mask unless update_mask.nil?
49590
+ command.query['fields'] = fields unless fields.nil?
49591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49592
+ command.query['userIp'] = user_ip unless user_ip.nil?
49593
+ execute_or_queue_command(command, &block)
49594
+ end
49595
+
49381
49596
  # Retrieves information about the specified reservation subBlock.
49382
49597
  # @param [String] project
49383
49598
  # Project ID for this request.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.131.0
4
+ version: 0.132.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_beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.131.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.132.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
62
62
  rdoc_options: []
63
63
  require_paths: