Class: Google::Apis::MigrationcenterV1alpha1::ListRelationsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

Response message for listing relations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListRelationsResponse

Returns a new instance of ListRelationsResponse.



4810
4811
4812
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4810

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#next_page_tokenString

A token identifying a page of results the server should return. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


4803
4804
4805
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4803

def next_page_token
  @next_page_token
end

#relationsArray<Google::Apis::MigrationcenterV1alpha1::Relation>

A list of relations. Corresponds to the JSON property relations



4808
4809
4810
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4808

def relations
  @relations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4815
4816
4817
4818
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4815

def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @relations = args[:relations] if args.key?(:relations)
end