google-api-ruby-client/generated/google/apis/dns_v1/classes.rb

407 lines
16 KiB
Ruby

# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV1
# An atomic update to a collection of ResourceRecordSets.
class Change
include Google::Apis::Core::Hashable
# Which ResourceRecordSets to add?
# Corresponds to the JSON property `additions`
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
attr_accessor :additions
# Which ResourceRecordSets to remove? Must match existing data exactly.
# Corresponds to the JSON property `deletions`
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
attr_accessor :deletions
# Unique identifier for the resource; defined by the server (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#change".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The time that this operation was started by the server. This is in RFC3339
# text format.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Status of the operation (output only).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additions = args[:additions] unless args[:additions].nil?
@deletions = args[:deletions] unless args[:deletions].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@status = args[:status] unless args[:status].nil?
end
end
# The response to a request to enumerate Changes to a ResourceRecordSets
# collection.
class ListChangesResponse
include Google::Apis::Core::Hashable
# The requested changes.
# Corresponds to the JSON property `changes`
# @return [Array<Google::Apis::DnsV1::Change>]
attr_accessor :changes
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# 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 pagination token.
# In this way you can retrieve 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 will be an inconsistent view of the collection. There is no
# way to retrieve a "snapshot" of collections larger than the maximum page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@changes = args[:changes] unless args[:changes].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
class ManagedZone
include Google::Apis::Core::Hashable
# The time that this resource was created on the server. This is in RFC3339 text
# format. Output only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource for
# the user's convenience. Has no effect on the managed zone's function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The DNS name of this managed zone, for instance "example.com.".
# Corresponds to the JSON property `dnsName`
# @return [String]
attr_accessor :dns_name
# Unique identifier for the resource; defined by the server (output only)
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#
# managedZone".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# User assigned name for this resource. Must be unique within the project. The
# name must be 1-32 characters long, must begin with a letter, end with a letter
# or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
# is a set of DNS name servers that all host the same ManagedZones. Most users
# will leave this field unset.
# Corresponds to the JSON property `nameServerSet`
# @return [String]
attr_accessor :name_server_set
# Delegate your managed_zone to these virtual name servers; defined by the
# server (output only)
# Corresponds to the JSON property `nameServers`
# @return [Array<String>]
attr_accessor :name_servers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@description = args[:description] unless args[:description].nil?
@dns_name = args[:dns_name] unless args[:dns_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@name_server_set = args[:name_server_set] unless args[:name_server_set].nil?
@name_servers = args[:name_servers] unless args[:name_servers].nil?
end
end
#
class ListManagedZonesResponse
include Google::Apis::Core::Hashable
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The managed zone resources.
# Corresponds to the JSON property `managedZones`
# @return [Array<Google::Apis::DnsV1::ManagedZone>]
attr_accessor :managed_zones
# 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.
# In this way you can retrieve 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 will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@managed_zones = args[:managed_zones] unless args[:managed_zones].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# A project resource. The project is a top level container for resources
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
# console.
class Project
include Google::Apis::Core::Hashable
# User assigned unique identifier for the resource (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#project"
# .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Unique numeric identifier for the resource; defined by the server (output only)
# .
# Corresponds to the JSON property `number`
# @return [String]
attr_accessor :number
# Limits associated with a Project.
# Corresponds to the JSON property `quota`
# @return [Google::Apis::DnsV1::Quota]
attr_accessor :quota
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@number = args[:number] unless args[:number].nil?
@quota = args[:quota] unless args[:quota].nil?
end
end
# Limits associated with a Project.
class Quota
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "dns#quota".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Maximum allowed number of managed zones in the project.
# Corresponds to the JSON property `managedZones`
# @return [Fixnum]
attr_accessor :managed_zones
# Maximum allowed number of ResourceRecords per ResourceRecordSet.
# Corresponds to the JSON property `resourceRecordsPerRrset`
# @return [Fixnum]
attr_accessor :resource_records_per_rrset
# Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
# Corresponds to the JSON property `rrsetAdditionsPerChange`
# @return [Fixnum]
attr_accessor :rrset_additions_per_change
# Maximum allowed number of ResourceRecordSets to delete per
# ChangesCreateRequest.
# Corresponds to the JSON property `rrsetDeletionsPerChange`
# @return [Fixnum]
attr_accessor :rrset_deletions_per_change
# Maximum allowed number of ResourceRecordSets per zone in the project.
# Corresponds to the JSON property `rrsetsPerManagedZone`
# @return [Fixnum]
attr_accessor :rrsets_per_managed_zone
# Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
# Corresponds to the JSON property `totalRrdataSizePerChange`
# @return [Fixnum]
attr_accessor :total_rrdata_size_per_change
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@managed_zones = args[:managed_zones] unless args[:managed_zones].nil?
@resource_records_per_rrset = args[:resource_records_per_rrset] unless args[:resource_records_per_rrset].nil?
@rrset_additions_per_change = args[:rrset_additions_per_change] unless args[:rrset_additions_per_change].nil?
@rrset_deletions_per_change = args[:rrset_deletions_per_change] unless args[:rrset_deletions_per_change].nil?
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] unless args[:rrsets_per_managed_zone].nil?
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] unless args[:total_rrdata_size_per_change].nil?
end
end
# A unit of data that will be returned by the DNS servers.
class ResourceRecordSet
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "dns#
# resourceRecordSet".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# For example, www.example.com.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
# Corresponds to the JSON property `rrdatas`
# @return [Array<String>]
attr_accessor :rrdatas
# Number of seconds that this ResourceRecordSet can be cached by resolvers.
# Corresponds to the JSON property `ttl`
# @return [Fixnum]
attr_accessor :ttl
# The identifier of a supported record type, for example, A, AAAA, MX, TXT, and
# so on.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@rrdatas = args[:rrdatas] unless args[:rrdatas].nil?
@ttl = args[:ttl] unless args[:ttl].nil?
@type = args[:type] unless args[:type].nil?
end
end
#
class ListResourceRecordSetsResponse
include Google::Apis::Core::Hashable
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# 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 pagination token.
# In this way you can retrieve 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 will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The resource record set resources.
# Corresponds to the JSON property `rrsets`
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
attr_accessor :rrsets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@rrsets = args[:rrsets] unless args[:rrsets].nil?
end
end
end
end
end