Class: Google::Apis::ArtifactregistryV1::ListNpmPackagesResponse

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

Overview

The response from listing npm packages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListNpmPackagesResponse

Returns a new instance of ListNpmPackagesResponse.



1152
1153
1154
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1152

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

Instance Attribute Details

#next_page_tokenString

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1145
1146
1147
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1145

def next_page_token
  @next_page_token
end

#npm_packagesArray<Google::Apis::ArtifactregistryV1::NpmPackage>

The npm packages returned. Corresponds to the JSON property npmPackages



1150
1151
1152
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1150

def npm_packages
  @npm_packages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1157
1158
1159
1160
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1157

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