File manager - Edit - /home/u478019808/domains/bestandroidphones.store/public_html/static/img/logo/dns_sample.zip
Back
PK �Z�<T��- �- dns_v1/dns_v1_client.pynu �[��� """Generated client library for dns version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.py import base_api from samples.dns_sample.dns_v1 import dns_v1_messages as messages class DnsV1(base_api.BaseApiClient): """Generated client library for service dns version v1.""" MESSAGES_MODULE = messages BASE_URL = 'https://www.googleapis.com/dns/v1/' MTLS_BASE_URL = '' _PACKAGE = 'dns' _SCOPES = ['https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/cloud-platform.read-only', 'https://www.googleapis.com/auth/ndev.clouddns.readonly', 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'] _VERSION = 'v1' _CLIENT_ID = 'CLIENT_ID' _CLIENT_SECRET = 'CLIENT_SECRET' _USER_AGENT = 'x_Tw5K8nnjoRAqULM9PFAC2b' _CLIENT_CLASS_NAME = 'DnsV1' _URL_VERSION = 'v1' _API_KEY = None def __init__(self, url='', credentials=None, get_credentials=True, http=None, model=None, log_request=False, log_response=False, credentials_args=None, default_global_params=None, additional_http_headers=None, response_encoding=None): """Create a new dns handle.""" url = url or self.BASE_URL super(DnsV1, self).__init__( url, credentials=credentials, get_credentials=get_credentials, http=http, model=model, log_request=log_request, log_response=log_response, credentials_args=credentials_args, default_global_params=default_global_params, additional_http_headers=additional_http_headers, response_encoding=response_encoding) self.changes = self.ChangesService(self) self.managedZones = self.ManagedZonesService(self) self.projects = self.ProjectsService(self) self.resourceRecordSets = self.ResourceRecordSetsService(self) class ChangesService(base_api.BaseApiService): """Service class for the changes resource.""" _NAME = 'changes' def __init__(self, client): super(DnsV1.ChangesService, self).__init__(client) self._upload_configs = { } def Create(self, request, global_params=None): r"""Atomically update the ResourceRecordSet collection. Args: request: (DnsChangesCreateRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Change) The response message. """ config = self.GetMethodConfig('Create') return self._RunMethod( config, request, global_params=global_params) Create.method_config = lambda: base_api.ApiMethodInfo( http_method='POST', method_id='dns.changes.create', ordered_params=['project', 'managedZone'], path_params=['managedZone', 'project'], query_params=[], relative_path='projects/{project}/managedZones/{managedZone}/changes', request_field='change', request_type_name='DnsChangesCreateRequest', response_type_name='Change', supports_download=False, ) def Get(self, request, global_params=None): r"""Fetch the representation of an existing Change. Args: request: (DnsChangesGetRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Change) The response message. """ config = self.GetMethodConfig('Get') return self._RunMethod( config, request, global_params=global_params) Get.method_config = lambda: base_api.ApiMethodInfo( http_method='GET', method_id='dns.changes.get', ordered_params=['project', 'managedZone', 'changeId'], path_params=['changeId', 'managedZone', 'project'], query_params=[], relative_path='projects/{project}/managedZones/{managedZone}/changes/{changeId}', request_field='', request_type_name='DnsChangesGetRequest', response_type_name='Change', supports_download=False, ) def List(self, request, global_params=None): r"""Enumerate Changes to a ResourceRecordSet collection. Args: request: (DnsChangesListRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ChangesListResponse) The response message. """ config = self.GetMethodConfig('List') return self._RunMethod( config, request, global_params=global_params) List.method_config = lambda: base_api.ApiMethodInfo( http_method='GET', method_id='dns.changes.list', ordered_params=['project', 'managedZone'], path_params=['managedZone', 'project'], query_params=['maxResults', 'pageToken', 'sortBy', 'sortOrder'], relative_path='projects/{project}/managedZones/{managedZone}/changes', request_field='', request_type_name='DnsChangesListRequest', response_type_name='ChangesListResponse', supports_download=False, ) class ManagedZonesService(base_api.BaseApiService): """Service class for the managedZones resource.""" _NAME = 'managedZones' def __init__(self, client): super(DnsV1.ManagedZonesService, self).__init__(client) self._upload_configs = { } def Create(self, request, global_params=None): r"""Create a new ManagedZone. Args: request: (DnsManagedZonesCreateRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ManagedZone) The response message. """ config = self.GetMethodConfig('Create') return self._RunMethod( config, request, global_params=global_params) Create.method_config = lambda: base_api.ApiMethodInfo( http_method='POST', method_id='dns.managedZones.create', ordered_params=['project'], path_params=['project'], query_params=[], relative_path='projects/{project}/managedZones', request_field='managedZone', request_type_name='DnsManagedZonesCreateRequest', response_type_name='ManagedZone', supports_download=False, ) def Delete(self, request, global_params=None): r"""Delete a previously created ManagedZone. Args: request: (DnsManagedZonesDeleteRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (DnsManagedZonesDeleteResponse) The response message. """ config = self.GetMethodConfig('Delete') return self._RunMethod( config, request, global_params=global_params) Delete.method_config = lambda: base_api.ApiMethodInfo( http_method='DELETE', method_id='dns.managedZones.delete', ordered_params=['project', 'managedZone'], path_params=['managedZone', 'project'], query_params=[], relative_path='projects/{project}/managedZones/{managedZone}', request_field='', request_type_name='DnsManagedZonesDeleteRequest', response_type_name='DnsManagedZonesDeleteResponse', supports_download=False, ) def Get(self, request, global_params=None): r"""Fetch the representation of an existing ManagedZone. Args: request: (DnsManagedZonesGetRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ManagedZone) The response message. """ config = self.GetMethodConfig('Get') return self._RunMethod( config, request, global_params=global_params) Get.method_config = lambda: base_api.ApiMethodInfo( http_method='GET', method_id='dns.managedZones.get', ordered_params=['project', 'managedZone'], path_params=['managedZone', 'project'], query_params=[], relative_path='projects/{project}/managedZones/{managedZone}', request_field='', request_type_name='DnsManagedZonesGetRequest', response_type_name='ManagedZone', supports_download=False, ) def List(self, request, global_params=None): r"""Enumerate ManagedZones that have been created but not yet deleted. Args: request: (DnsManagedZonesListRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ManagedZonesListResponse) The response message. """ config = self.GetMethodConfig('List') return self._RunMethod( config, request, global_params=global_params) List.method_config = lambda: base_api.ApiMethodInfo( http_method='GET', method_id='dns.managedZones.list', ordered_params=['project'], path_params=['project'], query_params=['dnsName', 'maxResults', 'pageToken'], relative_path='projects/{project}/managedZones', request_field='', request_type_name='DnsManagedZonesListRequest', response_type_name='ManagedZonesListResponse', supports_download=False, ) class ProjectsService(base_api.BaseApiService): """Service class for the projects resource.""" _NAME = 'projects' def __init__(self, client): super(DnsV1.ProjectsService, self).__init__(client) self._upload_configs = { } def Get(self, request, global_params=None): r"""Fetch the representation of an existing Project. Args: request: (DnsProjectsGetRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Project) The response message. """ config = self.GetMethodConfig('Get') return self._RunMethod( config, request, global_params=global_params) Get.method_config = lambda: base_api.ApiMethodInfo( http_method='GET', method_id='dns.projects.get', ordered_params=['project'], path_params=['project'], query_params=[], relative_path='projects/{project}', request_field='', request_type_name='DnsProjectsGetRequest', response_type_name='Project', supports_download=False, ) class ResourceRecordSetsService(base_api.BaseApiService): """Service class for the resourceRecordSets resource.""" _NAME = 'resourceRecordSets' def __init__(self, client): super(DnsV1.ResourceRecordSetsService, self).__init__(client) self._upload_configs = { } def List(self, request, global_params=None): r"""Enumerate ResourceRecordSets that have been created but not yet deleted. Args: request: (DnsResourceRecordSetsListRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ResourceRecordSetsListResponse) The response message. """ config = self.GetMethodConfig('List') return self._RunMethod( config, request, global_params=global_params) List.method_config = lambda: base_api.ApiMethodInfo( http_method='GET', method_id='dns.resourceRecordSets.list', ordered_params=['project', 'managedZone'], path_params=['managedZone', 'project'], query_params=['maxResults', 'name', 'pageToken', 'type'], relative_path='projects/{project}/managedZones/{managedZone}/rrsets', request_field='', request_type_name='DnsResourceRecordSetsListRequest', response_type_name='ResourceRecordSetsListResponse', supports_download=False, ) PK �Z� �ԇ � dns_v1/__init__.pynu �[��� """Package marker file.""" from __future__ import absolute_import import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) PK �Zo|-U;A ;A dns_v1/dns_v1_messages.pynu �[��� """Generated message classes for dns version v1. The Google Cloud DNS API provides services for configuring and serving authoritative DNS records. """ # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.protorpclite import messages as _messages package = 'dns' class Change(_messages.Message): r"""An atomic update to a collection of ResourceRecordSets. Enums: StatusValueValuesEnum: Status of the operation (output only). Fields: additions: Which ResourceRecordSets to add? deletions: Which ResourceRecordSets to remove? Must match existing data exactly. id: Unique identifier for the resource; defined by the server (output only). kind: Identifies what kind of resource this is. Value: the fixed string "dns#change". startTime: The time that this operation was started by the server. This is in RFC3339 text format. status: Status of the operation (output only). """ class StatusValueValuesEnum(_messages.Enum): r"""Status of the operation (output only). Values: done: <no description> pending: <no description> """ done = 0 pending = 1 additions = _messages.MessageField('ResourceRecordSet', 1, repeated=True) deletions = _messages.MessageField('ResourceRecordSet', 2, repeated=True) id = _messages.StringField(3) kind = _messages.StringField(4, default='dns#change') startTime = _messages.StringField(5) status = _messages.EnumField('StatusValueValuesEnum', 6) class ChangesListResponse(_messages.Message): r"""The response to a request to enumerate Changes to a ResourceRecordSets collection. Fields: changes: The requested changes. kind: Type of resource. nextPageToken: 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. """ changes = _messages.MessageField('Change', 1, repeated=True) kind = _messages.StringField(2, default='dns#changesListResponse') nextPageToken = _messages.StringField(3) class DnsChangesCreateRequest(_messages.Message): r"""A DnsChangesCreateRequest object. Fields: change: A Change resource to be passed as the request body. managedZone: Identifies the managed zone addressed by this request. Can be the managed zone name or id. project: Identifies the project addressed by this request. """ change = _messages.MessageField('Change', 1) managedZone = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) class DnsChangesGetRequest(_messages.Message): r"""A DnsChangesGetRequest object. Fields: changeId: The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse. managedZone: Identifies the managed zone addressed by this request. Can be the managed zone name or id. project: Identifies the project addressed by this request. """ changeId = _messages.StringField(1, required=True) managedZone = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) class DnsChangesListRequest(_messages.Message): r"""A DnsChangesListRequest object. Enums: SortByValueValuesEnum: Sorting criterion. The only supported value is change sequence. Fields: managedZone: Identifies the managed zone addressed by this request. Can be the managed zone name or id. maxResults: Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return. pageToken: Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. project: Identifies the project addressed by this request. sortBy: Sorting criterion. The only supported value is change sequence. sortOrder: Sorting order direction: 'ascending' or 'descending'. """ class SortByValueValuesEnum(_messages.Enum): r"""Sorting criterion. The only supported value is change sequence. Values: changeSequence: <no description> """ changeSequence = 0 managedZone = _messages.StringField(1, required=True) maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32) pageToken = _messages.StringField(3) project = _messages.StringField(4, required=True) sortBy = _messages.EnumField('SortByValueValuesEnum', 5, default='changeSequence') sortOrder = _messages.StringField(6) class DnsManagedZonesCreateRequest(_messages.Message): r"""A DnsManagedZonesCreateRequest object. Fields: managedZone: A ManagedZone resource to be passed as the request body. project: Identifies the project addressed by this request. """ managedZone = _messages.MessageField('ManagedZone', 1) project = _messages.StringField(2, required=True) class DnsManagedZonesDeleteRequest(_messages.Message): r"""A DnsManagedZonesDeleteRequest object. Fields: managedZone: Identifies the managed zone addressed by this request. Can be the managed zone name or id. project: Identifies the project addressed by this request. """ managedZone = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class DnsManagedZonesDeleteResponse(_messages.Message): r"""An empty DnsManagedZonesDelete response.""" class DnsManagedZonesGetRequest(_messages.Message): r"""A DnsManagedZonesGetRequest object. Fields: managedZone: Identifies the managed zone addressed by this request. Can be the managed zone name or id. project: Identifies the project addressed by this request. """ managedZone = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class DnsManagedZonesListRequest(_messages.Message): r"""A DnsManagedZonesListRequest object. Fields: dnsName: Restricts the list to return only zones with this domain name. maxResults: Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return. pageToken: Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. project: Identifies the project addressed by this request. """ dnsName = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32) pageToken = _messages.StringField(3) project = _messages.StringField(4, required=True) class DnsProjectsGetRequest(_messages.Message): r"""A DnsProjectsGetRequest object. Fields: project: Identifies the project addressed by this request. """ project = _messages.StringField(1, required=True) class DnsResourceRecordSetsListRequest(_messages.Message): r"""A DnsResourceRecordSetsListRequest object. Fields: managedZone: Identifies the managed zone addressed by this request. Can be the managed zone name or id. maxResults: Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return. name: Restricts the list to return only records with this fully qualified domain name. pageToken: Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. project: Identifies the project addressed by this request. type: Restricts the list to return only records of this type. If present, the "name" parameter must also be present. """ managedZone = _messages.StringField(1, required=True) maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32) name = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) type = _messages.StringField(6) class ManagedZone(_messages.Message): r"""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. Fields: creationTime: The time that this resource was created on the server. This is in RFC3339 text format. Output only. description: 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. dnsName: The DNS name of this managed zone, for instance "example.com.". id: Unique identifier for the resource; defined by the server (output only) kind: Identifies what kind of resource this is. Value: the fixed string "dns#managedZone". name: 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. nameServerSet: 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. nameServers: Delegate your managed_zone to these virtual name servers; defined by the server (output only) """ creationTime = _messages.StringField(1) description = _messages.StringField(2) dnsName = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default='dns#managedZone') name = _messages.StringField(6) nameServerSet = _messages.StringField(7) nameServers = _messages.StringField(8, repeated=True) class ManagedZonesListResponse(_messages.Message): r"""A ManagedZonesListResponse object. Fields: kind: Type of resource. managedZones: The managed zone resources. nextPageToken: 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. """ kind = _messages.StringField(1, default='dns#managedZonesListResponse') managedZones = _messages.MessageField('ManagedZone', 2, repeated=True) nextPageToken = _messages.StringField(3) class Project(_messages.Message): r"""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. Fields: id: User assigned unique identifier for the resource (output only). kind: Identifies what kind of resource this is. Value: the fixed string "dns#project". number: Unique numeric identifier for the resource; defined by the server (output only). quota: Quotas assigned to this project (output only). """ id = _messages.StringField(1) kind = _messages.StringField(2, default='dns#project') number = _messages.IntegerField(3, variant=_messages.Variant.UINT64) quota = _messages.MessageField('Quota', 4) class Quota(_messages.Message): r"""Limits associated with a Project. Fields: kind: Identifies what kind of resource this is. Value: the fixed string "dns#quota". managedZones: Maximum allowed number of managed zones in the project. resourceRecordsPerRrset: Maximum allowed number of ResourceRecords per ResourceRecordSet. rrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest. rrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets to delete per ChangesCreateRequest. rrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets per zone in the project. totalRrdataSizePerChange: Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. """ kind = _messages.StringField(1, default='dns#quota') managedZones = _messages.IntegerField(2, variant=_messages.Variant.INT32) resourceRecordsPerRrset = _messages.IntegerField(3, variant=_messages.Variant.INT32) rrsetAdditionsPerChange = _messages.IntegerField(4, variant=_messages.Variant.INT32) rrsetDeletionsPerChange = _messages.IntegerField(5, variant=_messages.Variant.INT32) rrsetsPerManagedZone = _messages.IntegerField(6, variant=_messages.Variant.INT32) totalRrdataSizePerChange = _messages.IntegerField(7, variant=_messages.Variant.INT32) class ResourceRecordSet(_messages.Message): r"""A unit of data that will be returned by the DNS servers. Fields: kind: Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet". name: For example, www.example.com. rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). ttl: Number of seconds that this ResourceRecordSet can be cached by resolvers. type: The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on. """ kind = _messages.StringField(1, default='dns#resourceRecordSet') name = _messages.StringField(2) rrdatas = _messages.StringField(3, repeated=True) ttl = _messages.IntegerField(4, variant=_messages.Variant.INT32) type = _messages.StringField(5) class ResourceRecordSetsListResponse(_messages.Message): r"""A ResourceRecordSetsListResponse object. Fields: kind: Type of resource. nextPageToken: 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. rrsets: The resource record set resources. """ kind = _messages.StringField(1, default='dns#resourceRecordSetsListResponse') nextPageToken = _messages.StringField(2) rrsets = _messages.MessageField('ResourceRecordSet', 3, repeated=True) class StandardQueryParameters(_messages.Message): r"""Query parameters accepted by all methods. Enums: AltValueValuesEnum: Data format for the response. Fields: alt: Data format for the response. fields: Selector specifying which fields to include in a partial response. key: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. oauth_token: OAuth 2.0 token for the current user. prettyPrint: Returns response with indentations and line breaks. quotaUser: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided. trace: A tracing token of the form "token:<tokenid>" to include in api requests. userIp: IP address of the site where the request originates. Use this if you want to enforce per-user limits. """ class AltValueValuesEnum(_messages.Enum): r"""Data format for the response. Values: json: Responses with Content-Type of application/json """ json = 0 alt = _messages.EnumField('AltValueValuesEnum', 1, default='json') fields = _messages.StringField(2) key = _messages.StringField(3) oauth_token = _messages.StringField(4) prettyPrint = _messages.BooleanField(5, default=True) quotaUser = _messages.StringField(6) trace = _messages.StringField(7) userIp = _messages.StringField(8) PK �Z�?���\ �\ dns_v1.jsonnu �[��� { "kind": "discovery#restDescription", "discoveryVersion": "v1", "id": "dns:v1", "name": "dns", "version": "v1", "revision": "20150807", "title": "Google Cloud DNS API", "description": "The Google Cloud DNS API provides services for configuring and serving authoritative DNS records.", "ownerDomain": "google.com", "ownerName": "Google", "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "documentationLink": "https://developers.google.com/cloud-dns", "protocol": "rest", "baseUrl": "https://www.googleapis.com/dns/v1/projects/", "basePath": "/dns/v1/projects/", "rootUrl": "https://www.googleapis.com/", "servicePath": "dns/v1/projects/", "batchPath": "batch", "parameters": { "alt": { "type": "string", "description": "Data format for the response.", "default": "json", "enum": [ "json" ], "enumDescriptions": [ "Responses with Content-Type of application/json" ], "location": "query" }, "fields": { "type": "string", "description": "Selector specifying which fields to include in a partial response.", "location": "query" }, "key": { "type": "string", "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "location": "query" }, "oauth_token": { "type": "string", "description": "OAuth 2.0 token for the current user.", "location": "query" }, "prettyPrint": { "type": "boolean", "description": "Returns response with indentations and line breaks.", "default": "true", "location": "query" }, "quotaUser": { "type": "string", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", "location": "query" }, "userIp": { "type": "string", "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", "location": "query" } }, "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/cloud-platform": { "description": "View and manage your data across Google Cloud Platform services" }, "https://www.googleapis.com/auth/cloud-platform.read-only": { "description": "MESSAGE UNDER CONSTRUCTION View your data across Google Cloud Platform services" }, "https://www.googleapis.com/auth/ndev.clouddns.readonly": { "description": "View your DNS records hosted by Google Cloud DNS" }, "https://www.googleapis.com/auth/ndev.clouddns.readwrite": { "description": "View and manage your DNS records hosted by Google Cloud DNS" } } } }, "schemas": { "Change": { "id": "Change", "type": "object", "description": "An atomic update to a collection of ResourceRecordSets.", "properties": { "additions": { "type": "array", "description": "Which ResourceRecordSets to add?", "items": { "$ref": "ResourceRecordSet" } }, "deletions": { "type": "array", "description": "Which ResourceRecordSets to remove? Must match existing data exactly.", "items": { "$ref": "ResourceRecordSet" } }, "id": { "type": "string", "description": "Unique identifier for the resource; defined by the server (output only)." }, "kind": { "type": "string", "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#change\".", "default": "dns#change" }, "startTime": { "type": "string", "description": "The time that this operation was started by the server. This is in RFC3339 text format." }, "status": { "type": "string", "description": "Status of the operation (output only).", "enum": [ "done", "pending" ], "enumDescriptions": [ "", "" ] } } }, "ChangesListResponse": { "id": "ChangesListResponse", "type": "object", "description": "The response to a request to enumerate Changes to a ResourceRecordSets collection.", "properties": { "changes": { "type": "array", "description": "The requested changes.", "items": { "$ref": "Change" } }, "kind": { "type": "string", "description": "Type of resource.", "default": "dns#changesListResponse" }, "nextPageToken": { "type": "string", "description": "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.\n\nIn 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." } } }, "ManagedZone": { "id": "ManagedZone", "type": "object", "description": "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.", "properties": { "creationTime": { "type": "string", "description": "The time that this resource was created on the server. This is in RFC3339 text format. Output only." }, "description": { "type": "string", "description": "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." }, "dnsName": { "type": "string", "description": "The DNS name of this managed zone, for instance \"example.com.\"." }, "id": { "type": "string", "description": "Unique identifier for the resource; defined by the server (output only)", "format": "uint64" }, "kind": { "type": "string", "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#managedZone\".", "default": "dns#managedZone" }, "name": { "type": "string", "description": "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." }, "nameServerSet": { "type": "string", "description": "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." }, "nameServers": { "type": "array", "description": "Delegate your managed_zone to these virtual name servers; defined by the server (output only)", "items": { "type": "string" } } } }, "ManagedZonesListResponse": { "id": "ManagedZonesListResponse", "type": "object", "properties": { "kind": { "type": "string", "description": "Type of resource.", "default": "dns#managedZonesListResponse" }, "managedZones": { "type": "array", "description": "The managed zone resources.", "items": { "$ref": "ManagedZone" } }, "nextPageToken": { "type": "string", "description": "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.\n\nIn 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." } } }, "Project": { "id": "Project", "type": "object", "description": "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.", "properties": { "id": { "type": "string", "description": "User assigned unique identifier for the resource (output only)." }, "kind": { "type": "string", "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#project\".", "default": "dns#project" }, "number": { "type": "string", "description": "Unique numeric identifier for the resource; defined by the server (output only).", "format": "uint64" }, "quota": { "$ref": "Quota", "description": "Quotas assigned to this project (output only)." } } }, "Quota": { "id": "Quota", "type": "object", "description": "Limits associated with a Project.", "properties": { "kind": { "type": "string", "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#quota\".", "default": "dns#quota" }, "managedZones": { "type": "integer", "description": "Maximum allowed number of managed zones in the project.", "format": "int32" }, "resourceRecordsPerRrset": { "type": "integer", "description": "Maximum allowed number of ResourceRecords per ResourceRecordSet.", "format": "int32" }, "rrsetAdditionsPerChange": { "type": "integer", "description": "Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.", "format": "int32" }, "rrsetDeletionsPerChange": { "type": "integer", "description": "Maximum allowed number of ResourceRecordSets to delete per ChangesCreateRequest.", "format": "int32" }, "rrsetsPerManagedZone": { "type": "integer", "description": "Maximum allowed number of ResourceRecordSets per zone in the project.", "format": "int32" }, "totalRrdataSizePerChange": { "type": "integer", "description": "Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.", "format": "int32" } } }, "ResourceRecordSet": { "id": "ResourceRecordSet", "type": "object", "description": "A unit of data that will be returned by the DNS servers.", "properties": { "kind": { "type": "string", "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#resourceRecordSet\".", "default": "dns#resourceRecordSet" }, "name": { "type": "string", "description": "For example, www.example.com." }, "rrdatas": { "type": "array", "description": "As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).", "items": { "type": "string" } }, "ttl": { "type": "integer", "description": "Number of seconds that this ResourceRecordSet can be cached by resolvers.", "format": "int32" }, "type": { "type": "string", "description": "The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on." } } }, "ResourceRecordSetsListResponse": { "id": "ResourceRecordSetsListResponse", "type": "object", "properties": { "kind": { "type": "string", "description": "Type of resource.", "default": "dns#resourceRecordSetsListResponse" }, "nextPageToken": { "type": "string", "description": "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.\n\nIn 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." }, "rrsets": { "type": "array", "description": "The resource record set resources.", "items": { "$ref": "ResourceRecordSet" } } } } }, "resources": { "changes": { "methods": { "create": { "id": "dns.changes.create", "path": "{project}/managedZones/{managedZone}/changes", "httpMethod": "POST", "description": "Atomically update the ResourceRecordSet collection.", "parameters": { "managedZone": { "type": "string", "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", "required": true, "location": "path" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project", "managedZone" ], "request": { "$ref": "Change" }, "response": { "$ref": "Change" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] }, "get": { "id": "dns.changes.get", "path": "{project}/managedZones/{managedZone}/changes/{changeId}", "httpMethod": "GET", "description": "Fetch the representation of an existing Change.", "parameters": { "changeId": { "type": "string", "description": "The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.", "required": true, "location": "path" }, "managedZone": { "type": "string", "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", "required": true, "location": "path" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project", "managedZone", "changeId" ], "response": { "$ref": "Change" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] }, "list": { "id": "dns.changes.list", "path": "{project}/managedZones/{managedZone}/changes", "httpMethod": "GET", "description": "Enumerate Changes to a ResourceRecordSet collection.", "parameters": { "managedZone": { "type": "string", "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", "required": true, "location": "path" }, "maxResults": { "type": "integer", "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", "format": "int32", "location": "query" }, "pageToken": { "type": "string", "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", "location": "query" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" }, "sortBy": { "type": "string", "description": "Sorting criterion. The only supported value is change sequence.", "default": "changeSequence", "enum": [ "changeSequence" ], "enumDescriptions": [ "" ], "location": "query" }, "sortOrder": { "type": "string", "description": "Sorting order direction: 'ascending' or 'descending'.", "location": "query" } }, "parameterOrder": [ "project", "managedZone" ], "response": { "$ref": "ChangesListResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] } } }, "managedZones": { "methods": { "create": { "id": "dns.managedZones.create", "path": "{project}/managedZones", "httpMethod": "POST", "description": "Create a new ManagedZone.", "parameters": { "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project" ], "request": { "$ref": "ManagedZone" }, "response": { "$ref": "ManagedZone" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] }, "delete": { "id": "dns.managedZones.delete", "path": "{project}/managedZones/{managedZone}", "httpMethod": "DELETE", "description": "Delete a previously created ManagedZone.", "parameters": { "managedZone": { "type": "string", "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", "required": true, "location": "path" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project", "managedZone" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] }, "get": { "id": "dns.managedZones.get", "path": "{project}/managedZones/{managedZone}", "httpMethod": "GET", "description": "Fetch the representation of an existing ManagedZone.", "parameters": { "managedZone": { "type": "string", "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", "required": true, "location": "path" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project", "managedZone" ], "response": { "$ref": "ManagedZone" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] }, "list": { "id": "dns.managedZones.list", "path": "{project}/managedZones", "httpMethod": "GET", "description": "Enumerate ManagedZones that have been created but not yet deleted.", "parameters": { "dnsName": { "type": "string", "description": "Restricts the list to return only zones with this domain name.", "location": "query" }, "maxResults": { "type": "integer", "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", "format": "int32", "location": "query" }, "pageToken": { "type": "string", "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", "location": "query" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project" ], "response": { "$ref": "ManagedZonesListResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] } } }, "projects": { "methods": { "get": { "id": "dns.projects.get", "path": "{project}", "httpMethod": "GET", "description": "Fetch the representation of an existing Project.", "parameters": { "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" } }, "parameterOrder": [ "project" ], "response": { "$ref": "Project" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] } } }, "resourceRecordSets": { "methods": { "list": { "id": "dns.resourceRecordSets.list", "path": "{project}/managedZones/{managedZone}/rrsets", "httpMethod": "GET", "description": "Enumerate ResourceRecordSets that have been created but not yet deleted.", "parameters": { "managedZone": { "type": "string", "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", "required": true, "location": "path" }, "maxResults": { "type": "integer", "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", "format": "int32", "location": "query" }, "name": { "type": "string", "description": "Restricts the list to return only records with this fully qualified domain name.", "location": "query" }, "pageToken": { "type": "string", "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", "location": "query" }, "project": { "type": "string", "description": "Identifies the project addressed by this request.", "required": true, "location": "path" }, "type": { "type": "string", "description": "Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present.", "location": "query" } }, "parameterOrder": [ "project", "managedZone" ], "response": { "$ref": "ResourceRecordSetsListResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", "https://www.googleapis.com/auth/ndev.clouddns.readwrite" ] } } } } } PK �Z��Z� � gen_dns_client_test.pynu �[��� # # Copyright 2016 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. """Test for generated sample module.""" import unittest import six from apitools.base.py import list_pager from apitools.base.py.testing import mock from samples.dns_sample.dns_v1 import dns_v1_client from samples.dns_sample.dns_v1 import dns_v1_messages class DnsGenClientSanityTest(unittest.TestCase): def testBaseUrl(self): self.assertEqual(u'https://www.googleapis.com/dns/v1/', dns_v1_client.DnsV1.BASE_URL) def testMessagesModule(self): self.assertEqual(dns_v1_messages, dns_v1_client.DnsV1.MESSAGES_MODULE) def testAttributes(self): inner_classes = set([]) for key, value in dns_v1_client.DnsV1.__dict__.items(): if isinstance(value, six.class_types): inner_classes.add(key) self.assertEqual(set([ 'ChangesService', 'ProjectsService', 'ManagedZonesService', 'ResourceRecordSetsService']), inner_classes) class DnsGenClientTest(unittest.TestCase): def setUp(self): self.mocked_dns_v1 = mock.Client(dns_v1_client.DnsV1) self.mocked_dns_v1.Mock() self.addCleanup(self.mocked_dns_v1.Unmock) def testFlatPath(self): get_method_config = self.mocked_dns_v1.projects.GetMethodConfig('Get') self.assertIsNone(get_method_config.flat_path) self.assertEqual('projects/{project}', get_method_config.relative_path) def testRecordSetList(self): response_record_set = dns_v1_messages.ResourceRecordSet( kind=u"dns#resourceRecordSet", name=u"zone.com.", rrdatas=[u"1.2.3.4"], ttl=21600, type=u"A") self.mocked_dns_v1.resourceRecordSets.List.Expect( dns_v1_messages.DnsResourceRecordSetsListRequest( project=u'my-project', managedZone=u'test_zone_name', type=u'green', maxResults=100), dns_v1_messages.ResourceRecordSetsListResponse( rrsets=[response_record_set])) results = list(list_pager.YieldFromList( self.mocked_dns_v1.resourceRecordSets, dns_v1_messages.DnsResourceRecordSetsListRequest( project='my-project', managedZone='test_zone_name', type='green'), limit=100, field='rrsets')) self.assertEqual([response_record_set], results) PK �Z�H�N? ? __init__.pynu �[��� # Copyright 2016 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. PK �Z�<T��- �- dns_v1/dns_v1_client.pynu �[��� PK �Z� �ԇ � �- dns_v1/__init__.pynu �[��� PK �Zo|-U;A ;A �. dns_v1/dns_v1_messages.pynu �[��� PK �Z�?���\ �\ ,p dns_v1.jsonnu �[��� PK �Z��Z� � ,� gen_dns_client_test.pynu �[��� PK �Z�H�N? ? T� __init__.pynu �[��� PK � ��
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings