class Azure::MachineLearningServices::Mgmt::V2018_11_19::Models::AmlComputeNodesInformation
Compute
node information related to a AmlCompute
.
Attributes
next_method[RW]
return [Proc] with next page method call.
nodes[RW]
@return [Array<AmlComputeNodeInformation>] The collection of returned AmlCompute
nodes details.
Public Class Methods
mapper()
click to toggle source
Mapper for AmlComputeNodesInformation
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-11-19/generated/azure_mgmt_machine_learning_services/models/aml_compute_nodes_information.rb, line 56 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AmlCompute', type: { name: 'Composite', class_name: 'AmlComputeNodesInformation', model_properties: { next_link: { client_side_validation: true, required: false, read_only: true, serialized_name: 'nextLink', type: { name: 'String' } }, computeType: { client_side_validation: true, required: true, serialized_name: 'computeType', type: { name: 'String' } }, nodes: { client_side_validation: true, required: false, read_only: true, serialized_name: 'nodes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AmlComputeNodeInformationElementType', type: { name: 'Composite', class_name: 'AmlComputeNodeInformation' } } } } } } } end
Public Instance Methods
get_all_items()
click to toggle source
Gets the rest of the items for the request, enabling auto-pagination.
@return [Array<AmlComputeNodeInformation>] operation results.
# File lib/2018-11-19/generated/azure_mgmt_machine_learning_services/models/aml_compute_nodes_information.rb, line 28 def get_all_items items = @nodes page = self while page.next_link != nil && !page.next_link.strip.empty? do page = page.get_next_page items.concat(page.nodes) end items end
get_next_page()
click to toggle source
Gets the next page of results.
@return [AmlComputeNodesInformation] with next page content.
# File lib/2018-11-19/generated/azure_mgmt_machine_learning_services/models/aml_compute_nodes_information.rb, line 43 def get_next_page response = @next_method.call(@next_link).value! unless @next_method.nil? unless response.nil? @next_link = response.body.next_link @nodes = response.body.nodes self end end