Movatterモバイル変換


[0]ホーム

URL:


domainsrdap

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package domainsrdap provides access to the Domains RDAP API.

For product documentation, see:https://developers.google.com/domains/rdap/

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/domainsrdap/v1"...ctx := context.Background()domainsrdapService, err := domainsrdap.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

domainsrdapService, err := domainsrdap.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)domainsrdapService, err := domainsrdap.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAutnumGetCall

type AutnumGetCall struct {// contains filtered or unexported fields}

func (*AutnumGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AutnumGetCall)Do

Do executes the "domainsrdap.autnum.get" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AutnumGetCall)Fields

func (c *AutnumGetCall) Fields(s ...googleapi.Field) *AutnumGetCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AutnumGetCall)Header

func (c *AutnumGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AutnumGetCall)IfNoneMatch

func (c *AutnumGetCall) IfNoneMatch(entityTagstring) *AutnumGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAutnumService

type AutnumService struct {// contains filtered or unexported fields}

funcNewAutnumService

func NewAutnumService(s *Service) *AutnumService

func (*AutnumService)Get

func (r *AutnumService) Get(autnumIdstring) *AutnumGetCall

Get: The RDAP API recognizes this command from the RDAP specification butdoes not support it. The response is a formatted 501 error.

- autnumId: .

typeDomainGetCall

type DomainGetCall struct {// contains filtered or unexported fields}

func (*DomainGetCall)Context

Context sets the context to be used in this call's Do method.

func (*DomainGetCall)Do

Do executes the "domainsrdap.domain.get" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DomainGetCall)Fields

func (c *DomainGetCall) Fields(s ...googleapi.Field) *DomainGetCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DomainGetCall)Header

func (c *DomainGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DomainGetCall)IfNoneMatch

func (c *DomainGetCall) IfNoneMatch(entityTagstring) *DomainGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDomainService

type DomainService struct {// contains filtered or unexported fields}

funcNewDomainService

func NewDomainService(s *Service) *DomainService

func (*DomainService)Get

func (r *DomainService) Get(domainNamestring) *DomainGetCall

Get: Look up RDAP information for a domain by name.

- domainName: Full domain name to look up. Example: "example.com".

typeEntityGetCall

type EntityGetCall struct {// contains filtered or unexported fields}

func (*EntityGetCall)Context

Context sets the context to be used in this call's Do method.

func (*EntityGetCall)Do

Do executes the "domainsrdap.entity.get" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EntityGetCall)Fields

func (c *EntityGetCall) Fields(s ...googleapi.Field) *EntityGetCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EntityGetCall)Header

func (c *EntityGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EntityGetCall)IfNoneMatch

func (c *EntityGetCall) IfNoneMatch(entityTagstring) *EntityGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEntityService

type EntityService struct {// contains filtered or unexported fields}

funcNewEntityService

func NewEntityService(s *Service) *EntityService

func (*EntityService)Get

func (r *EntityService) Get(entityIdstring) *EntityGetCall

Get: The RDAP API recognizes this command from the RDAP specification butdoes not support it. The response is a formatted 501 error.

- entityId: .

typeHttpBody

type HttpBody struct {// ContentType: The HTTP Content-Type header value specifying the content type// of the body.ContentTypestring `json:"contentType,omitempty"`// Data: The HTTP request/response body as raw binary.Datastring `json:"data,omitempty"`// Extensions: Application specific response metadata. Must be set in the first// response for streaming APIs.Extensions []googleapi.RawMessage `json:"extensions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HttpBody: Message that represents an arbitrary HTTP body. It should only beused for payload formats that can't be represented as JSON, such as rawbinary or an HTML page. This message can be used both in streaming andnon-streaming API methods in the request as well as the response. It can beused as a top-level request field, which is convenient if one wants toextract parameters from either the URL or HTTP template into the requestfields and also want access to the raw HTTP body. Example: messageGetResourceRequest { // A unique request id. string request_id = 1; // Theraw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }service ResourceService { rpc GetResource(GetResourceRequest) returns(google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns(google.protobuf.Empty); } Example with streaming methods: serviceCaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (streamgoogle.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns(stream google.api.HttpBody); } Use of this type only changes how therequest and response bodies are handled, all other features will continue towork unchanged.

func (HttpBody)MarshalJSON

func (sHttpBody) MarshalJSON() ([]byte,error)

typeIpGetCall

type IpGetCall struct {// contains filtered or unexported fields}

func (*IpGetCall)Context

func (c *IpGetCall) Context(ctxcontext.Context) *IpGetCall

Context sets the context to be used in this call's Do method.

func (*IpGetCall)Do

Do executes the "domainsrdap.ip.get" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*IpGetCall)Fields

func (c *IpGetCall) Fields(s ...googleapi.Field) *IpGetCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*IpGetCall)Header

func (c *IpGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*IpGetCall)IfNoneMatch

func (c *IpGetCall) IfNoneMatch(entityTagstring) *IpGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeIpService

type IpService struct {// contains filtered or unexported fields}

funcNewIpService

func NewIpService(s *Service) *IpService

func (*IpService)Get

func (r *IpService) Get(ipIdstring, ipId1string) *IpGetCall

Get: The RDAP API recognizes this command from the RDAP specification butdoes not support it. The response is a formatted 501 error.

- ipId: .- ipId1: .

typeLink

type Link struct {// Href: Target URL of a link. Example: "http://example.com/previous".Hrefstring `json:"href,omitempty"`// Hreflang: Language code of a link. Example: "en".Hreflangstring `json:"hreflang,omitempty"`// Media: Media type of the link destination. Example: "screen".Mediastring `json:"media,omitempty"`// Rel: Relation type of a link. Example: "previous".Relstring `json:"rel,omitempty"`// Title: Title of this link. Example: "title".Titlestring `json:"title,omitempty"`// Type: Content type of the link. Example: "application/json".Typestring `json:"type,omitempty"`// Value: URL giving context for the link. Example:// "http://example.com/current".Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Href") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Href") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Link: Links object defined in section 4.2 ofRFC 7483(https://tools.ietf.org/html/rfc7483#section-4.2).

func (Link)MarshalJSON

func (sLink) MarshalJSON() ([]byte,error)

typeNameserverGetCall

type NameserverGetCall struct {// contains filtered or unexported fields}

func (*NameserverGetCall)Context

Context sets the context to be used in this call's Do method.

func (*NameserverGetCall)Do

Do executes the "domainsrdap.nameserver.get" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*NameserverGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*NameserverGetCall)Header

func (c *NameserverGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*NameserverGetCall)IfNoneMatch

func (c *NameserverGetCall) IfNoneMatch(entityTagstring) *NameserverGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeNameserverService

type NameserverService struct {// contains filtered or unexported fields}

funcNewNameserverService

func NewNameserverService(s *Service) *NameserverService

func (*NameserverService)Get

func (r *NameserverService) Get(nameserverIdstring) *NameserverGetCall

Get: The RDAP API recognizes this command from the RDAP specification butdoes not support it. The response is a formatted 501 error.

- nameserverId: .

typeNotice

type Notice struct {// Description: Description of the notice.Description []string `json:"description,omitempty"`// Links: Link to a document containing more information.Links []*Link `json:"links,omitempty"`// Title: Title of a notice. Example: "Terms of Service".Titlestring `json:"title,omitempty"`// Type: Type values defined in section 10.2.1 ofRFC 7483// (https://tools.ietf.org/html/rfc7483#section-10.2.1) specific to a whole// response: "result set truncated due to authorization", "result set truncated// due to excessive load", "result set truncated due to unexplainable reasons".Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Notice: Notices object defined in section 4.3 ofRFC 7483(https://tools.ietf.org/html/rfc7483#section-4.3).

func (Notice)MarshalJSON

func (sNotice) MarshalJSON() ([]byte,error)

typeRdapResponse

type RdapResponse struct {// Description: Error description.Description []string `json:"description,omitempty"`// ErrorCode: Error HTTP code. Example: "501".ErrorCodeint64 `json:"errorCode,omitempty"`// JsonResponse: HTTP response with content type set to// "application/json+rdap".JsonResponse *HttpBody `json:"jsonResponse,omitempty"`// Lang: Error language code. Error response info fields are defined in section// 6 ofRFC 7483 (https://tools.ietf.org/html/rfc7483#section-6).Langstring `json:"lang,omitempty"`// Notices: Notices applying to this response.Notices []*Notice `json:"notices,omitempty"`// RdapConformance: RDAP conformance level.RdapConformance []string `json:"rdapConformance,omitempty"`// Title: Error title.Titlestring `json:"title,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RdapResponse: Response to a general RDAP query.

func (RdapResponse)MarshalJSON

func (sRdapResponse) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentAutnum *AutnumServiceDomain *DomainServiceEntity *EntityServiceIp *IpServiceNameserver *NameserverServiceV1 *V1Service// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeV1GetDomainsCall

type V1GetDomainsCall struct {// contains filtered or unexported fields}

func (*V1GetDomainsCall)Context

Context sets the context to be used in this call's Do method.

func (*V1GetDomainsCall)Do

Do executes the "domainsrdap.getDomains" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*V1GetDomainsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*V1GetDomainsCall)Header

func (c *V1GetDomainsCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*V1GetDomainsCall)IfNoneMatch

func (c *V1GetDomainsCall) IfNoneMatch(entityTagstring) *V1GetDomainsCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeV1GetEntitiesCall

type V1GetEntitiesCall struct {// contains filtered or unexported fields}

func (*V1GetEntitiesCall)Context

Context sets the context to be used in this call's Do method.

func (*V1GetEntitiesCall)Do

Do executes the "domainsrdap.getEntities" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*V1GetEntitiesCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*V1GetEntitiesCall)Header

func (c *V1GetEntitiesCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*V1GetEntitiesCall)IfNoneMatch

func (c *V1GetEntitiesCall) IfNoneMatch(entityTagstring) *V1GetEntitiesCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeV1GetHelpCall

type V1GetHelpCall struct {// contains filtered or unexported fields}

func (*V1GetHelpCall)Context

Context sets the context to be used in this call's Do method.

func (*V1GetHelpCall)Do

Do executes the "domainsrdap.getHelp" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*V1GetHelpCall)Fields

func (c *V1GetHelpCall) Fields(s ...googleapi.Field) *V1GetHelpCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*V1GetHelpCall)Header

func (c *V1GetHelpCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*V1GetHelpCall)IfNoneMatch

func (c *V1GetHelpCall) IfNoneMatch(entityTagstring) *V1GetHelpCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeV1GetIpCall

type V1GetIpCall struct {// contains filtered or unexported fields}

func (*V1GetIpCall)Context

func (c *V1GetIpCall) Context(ctxcontext.Context) *V1GetIpCall

Context sets the context to be used in this call's Do method.

func (*V1GetIpCall)Do

func (c *V1GetIpCall) Do(opts ...googleapi.CallOption) (*HttpBody,error)

Do executes the "domainsrdap.getIp" call.Any non-2xx status code is an error. Response headers are in either*HttpBody.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*V1GetIpCall)Fields

func (c *V1GetIpCall) Fields(s ...googleapi.Field) *V1GetIpCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*V1GetIpCall)Header

func (c *V1GetIpCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*V1GetIpCall)IfNoneMatch

func (c *V1GetIpCall) IfNoneMatch(entityTagstring) *V1GetIpCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeV1GetNameserversCall

type V1GetNameserversCall struct {// contains filtered or unexported fields}

func (*V1GetNameserversCall)Context

Context sets the context to be used in this call's Do method.

func (*V1GetNameserversCall)Do

Do executes the "domainsrdap.getNameservers" call.Any non-2xx status code is an error. Response headers are in either*RdapResponse.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*V1GetNameserversCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*V1GetNameserversCall)Header

func (c *V1GetNameserversCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*V1GetNameserversCall)IfNoneMatch

func (c *V1GetNameserversCall) IfNoneMatch(entityTagstring) *V1GetNameserversCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeV1Service

type V1Service struct {// contains filtered or unexported fields}

funcNewV1Service

func NewV1Service(s *Service) *V1Service

func (*V1Service)GetDomains

func (r *V1Service) GetDomains() *V1GetDomainsCall

GetDomains: The RDAP API recognizes this command from the RDAP specificationbut does not support it. The response is a formatted 501 error.

func (*V1Service)GetEntities

func (r *V1Service) GetEntities() *V1GetEntitiesCall

GetEntities: The RDAP API recognizes this command from the RDAPspecification but does not support it. The response is a formatted 501error.

func (*V1Service)GetHelp

func (r *V1Service) GetHelp() *V1GetHelpCall

GetHelp: Get help information for the RDAP API, including links todocumentation.

func (*V1Service)GetIp

func (r *V1Service) GetIp() *V1GetIpCall

GetIp: The RDAP API recognizes this command from the RDAP specification butdoes not support it. The response is a formatted 501 error.

func (*V1Service)GetNameservers

func (r *V1Service) GetNameservers() *V1GetNameserversCall

GetNameservers: The RDAP API recognizes this command from the RDAPspecification but does not support it. The response is a formatted 501error.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp