Class: Google::Apis::DnsV1::PoliciesListResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PoliciesListResponse

Returns a new instance of PoliciesListResponse.



1039
1040
1041
# File 'lib/google/apis/dns_v1/classes.rb', line 1039

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

Instance Attribute Details

#headerGoogle::Apis::DnsV1::ResponseHeader

Elements common to every response. Corresponds to the JSON property header



1015
1016
1017
# File 'lib/google/apis/dns_v1/classes.rb', line 1015

def header
  @header
end

#kindString

Type of resource. Corresponds to the JSON property kind

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/dns_v1/classes.rb', line 1020

def kind
  @kind
end

#next_page_tokenString

The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1032
1033
1034
# File 'lib/google/apis/dns_v1/classes.rb', line 1032

def next_page_token
  @next_page_token
end

#policiesArray<Google::Apis::DnsV1::Policy>

The policy resources. Corresponds to the JSON property policies

Returns:



1037
1038
1039
# File 'lib/google/apis/dns_v1/classes.rb', line 1037

def policies
  @policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1044
1045
1046
1047
1048
1049
# File 'lib/google/apis/dns_v1/classes.rb', line 1044

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