Class: Google::Apis::ComputeAlpha::ProjectsGetXpnResources

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProjectsGetXpnResources

Returns a new instance of ProjectsGetXpnResources.



31249
31250
31251
# File 'lib/google/apis/compute_alpha/classes.rb', line 31249

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

Instance Attribute Details

#kindString

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects) Corresponds to the JSON property kind

Returns:

  • (String)


31232
31233
31234
# File 'lib/google/apis/compute_alpha/classes.rb', line 31232

def kind
  @kind
end

#next_page_tokenString

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


31241
31242
31243
# File 'lib/google/apis/compute_alpha/classes.rb', line 31241

def next_page_token
  @next_page_token
end

#resourcesArray<Google::Apis::ComputeAlpha::XpnResourceId>

Service resources (a.k.a service projects) attached to this project as their shared VPC host. Corresponds to the JSON property resources



31247
31248
31249
# File 'lib/google/apis/compute_alpha/classes.rb', line 31247

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31254
31255
31256
31257
31258
# File 'lib/google/apis/compute_alpha/classes.rb', line 31254

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