Class: Google::Apis::ArtifactregistryV1::ListRulesResponse

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 rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListRulesResponse

Returns a new instance of ListRulesResponse.



1722
1723
1724
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1722

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

Instance Attribute Details

#next_page_tokenString

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

Returns:

  • (String)


1715
1716
1717
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1715

def next_page_token
  @next_page_token
end

#rulesArray<Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule>

The rules returned. Corresponds to the JSON property rules



1720
1721
1722
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1720

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1727
1728
1729
1730
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1727

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