# Cloud Data Fusion API . projects . locations . instances . dnsPeerings

## Instance Methods

Close httplib2 connections.

Creates DNS peering on the given resource.

Deletes DNS peering on the given resource.

Lists DNS peerings for a given resource.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`create(parent, body=None, dnsPeeringId=None, x__xgafv=None)`

    Creates DNS peering on the given resource.

    Args:
      parent: string, Required. The resource on which DNS peering will be created. (required)
      body: object, The request body.
        The object takes the form of:

    { # DNS peering configuration. These configurations are used to create DNS peering with the customer Cloud DNS.
      "description": "A String", # Optional. Optional description of the dns zone.
      "domain": "A String", # Required. The dns name suffix of the zone.
      "name": "A String", # Identifier. The resource name of the dns peering zone. Format: projects/{project}/locations/{location}/instances/{instance}/dnsPeerings/{dns_peering}
      "targetNetwork": "A String", # Optional. Optional target network to which dns peering should happen.
      "targetProject": "A String", # Optional. Optional target project to which dns peering should happen.
    }

      dnsPeeringId: string, Required. The name of the peering to create.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # DNS peering configuration. These configurations are used to create DNS peering with the customer Cloud DNS.
      "description": "A String", # Optional. Optional description of the dns zone.
      "domain": "A String", # Required. The dns name suffix of the zone.
      "name": "A String", # Identifier. The resource name of the dns peering zone. Format: projects/{project}/locations/{location}/instances/{instance}/dnsPeerings/{dns_peering}
      "targetNetwork": "A String", # Optional. Optional target network to which dns peering should happen.
      "targetProject": "A String", # Optional. Optional target project to which dns peering should happen.
    }

`delete(name, x__xgafv=None)`

    Deletes DNS peering on the given resource.

    Args:
      name: string, Required. The name of the DNS peering zone to delete. Format: projects/{project}/locations/{location}/instances/{instance}/dnsPeerings/{dns_peering} (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
    }

`list(parent, pageSize=None, pageToken=None, x__xgafv=None)`

    Lists DNS peerings for a given resource.

    Args:
      parent: string, Required. The parent, which owns this collection of dns peerings. Format: projects/{project}/locations/{location}/instances/{instance} (required)
      pageSize: integer, The maximum number of dns peerings to return. The service may return fewer than this value. If unspecified, at most 50 dns peerings will be returned. The maximum value is 200; values above 200 will be coerced to 200.
      pageToken: string, A page token, received from a previous `ListDnsPeerings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDnsPeerings` must match the call that provided the page token.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response message for list DNS peerings.
      "dnsPeerings": [ # List of dns peering.
        { # DNS peering configuration. These configurations are used to create DNS peering with the customer Cloud DNS.
          "description": "A String", # Optional. Optional description of the dns zone.
          "domain": "A String", # Required. The dns name suffix of the zone.
          "name": "A String", # Identifier. The resource name of the dns peering zone. Format: projects/{project}/locations/{location}/instances/{instance}/dnsPeerings/{dns_peering}
          "targetNetwork": "A String", # Optional. Optional target network to which dns peering should happen.
          "targetProject": "A String", # Optional. Optional target project to which dns peering should happen.
        },
      ],
      "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
    }

`list_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.