Documentation ¶
Overview ¶
Package domainsrdap provides access to the Domains RDAP API.
For product documentation, see: https://developers.google.com/domains/rdap/
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 for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use 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 OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) domainsrdapService, err := domainsrdap.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- type AutnumGetCall
- func (c *AutnumGetCall) Context(ctx context.Context) *AutnumGetCall
- func (c *AutnumGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
- func (c *AutnumGetCall) Fields(s ...googleapi.Field) *AutnumGetCall
- func (c *AutnumGetCall) Header() http.Header
- func (c *AutnumGetCall) IfNoneMatch(entityTag string) *AutnumGetCall
- type AutnumService
- type DomainGetCall
- func (c *DomainGetCall) Context(ctx context.Context) *DomainGetCall
- func (c *DomainGetCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
- func (c *DomainGetCall) Fields(s ...googleapi.Field) *DomainGetCall
- func (c *DomainGetCall) Header() http.Header
- func (c *DomainGetCall) IfNoneMatch(entityTag string) *DomainGetCall
- type DomainService
- type EntityGetCall
- func (c *EntityGetCall) Context(ctx context.Context) *EntityGetCall
- func (c *EntityGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
- func (c *EntityGetCall) Fields(s ...googleapi.Field) *EntityGetCall
- func (c *EntityGetCall) Header() http.Header
- func (c *EntityGetCall) IfNoneMatch(entityTag string) *EntityGetCall
- type EntityService
- type HttpBody
- type IpGetCall
- type IpService
- type Link
- type NameserverGetCall
- func (c *NameserverGetCall) Context(ctx context.Context) *NameserverGetCall
- func (c *NameserverGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
- func (c *NameserverGetCall) Fields(s ...googleapi.Field) *NameserverGetCall
- func (c *NameserverGetCall) Header() http.Header
- func (c *NameserverGetCall) IfNoneMatch(entityTag string) *NameserverGetCall
- type NameserverService
- type Notice
- type RdapResponse
- type Service
- type V1GetDomainsCall
- func (c *V1GetDomainsCall) Context(ctx context.Context) *V1GetDomainsCall
- func (c *V1GetDomainsCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
- func (c *V1GetDomainsCall) Fields(s ...googleapi.Field) *V1GetDomainsCall
- func (c *V1GetDomainsCall) Header() http.Header
- func (c *V1GetDomainsCall) IfNoneMatch(entityTag string) *V1GetDomainsCall
- type V1GetEntitiesCall
- func (c *V1GetEntitiesCall) Context(ctx context.Context) *V1GetEntitiesCall
- func (c *V1GetEntitiesCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
- func (c *V1GetEntitiesCall) Fields(s ...googleapi.Field) *V1GetEntitiesCall
- func (c *V1GetEntitiesCall) Header() http.Header
- func (c *V1GetEntitiesCall) IfNoneMatch(entityTag string) *V1GetEntitiesCall
- type V1GetHelpCall
- func (c *V1GetHelpCall) Context(ctx context.Context) *V1GetHelpCall
- func (c *V1GetHelpCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
- func (c *V1GetHelpCall) Fields(s ...googleapi.Field) *V1GetHelpCall
- func (c *V1GetHelpCall) Header() http.Header
- func (c *V1GetHelpCall) IfNoneMatch(entityTag string) *V1GetHelpCall
- type V1GetIpCall
- func (c *V1GetIpCall) Context(ctx context.Context) *V1GetIpCall
- func (c *V1GetIpCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
- func (c *V1GetIpCall) Fields(s ...googleapi.Field) *V1GetIpCall
- func (c *V1GetIpCall) Header() http.Header
- func (c *V1GetIpCall) IfNoneMatch(entityTag string) *V1GetIpCall
- type V1GetNameserversCall
- func (c *V1GetNameserversCall) Context(ctx context.Context) *V1GetNameserversCall
- func (c *V1GetNameserversCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
- func (c *V1GetNameserversCall) Fields(s ...googleapi.Field) *V1GetNameserversCall
- func (c *V1GetNameserversCall) Header() http.Header
- func (c *V1GetNameserversCall) IfNoneMatch(entityTag string) *V1GetNameserversCall
- type V1Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutnumGetCall ¶
type AutnumGetCall struct {
// contains filtered or unexported fields
}
func (*AutnumGetCall) Context ¶
func (c *AutnumGetCall) Context(ctx context.Context) *AutnumGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AutnumGetCall) Do ¶
func (c *AutnumGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.autnum.get" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AutnumGetCall) Header ¶
func (c *AutnumGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AutnumGetCall) IfNoneMatch ¶
func (c *AutnumGetCall) IfNoneMatch(entityTag string) *AutnumGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type AutnumService ¶
type AutnumService struct {
// contains filtered or unexported fields
}
func NewAutnumService ¶
func NewAutnumService(s *Service) *AutnumService
func (*AutnumService) Get ¶
func (r *AutnumService) Get(autnumId string) *AutnumGetCall
Get: The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.
- autnumId: .
type DomainGetCall ¶
type DomainGetCall struct {
// contains filtered or unexported fields
}
func (*DomainGetCall) Context ¶
func (c *DomainGetCall) Context(ctx context.Context) *DomainGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DomainGetCall) Do ¶
func (c *DomainGetCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
Do executes the "domainsrdap.domain.get" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DomainGetCall) Header ¶
func (c *DomainGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DomainGetCall) IfNoneMatch ¶
func (c *DomainGetCall) IfNoneMatch(entityTag string) *DomainGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type DomainService ¶
type DomainService struct {
// contains filtered or unexported fields
}
func NewDomainService ¶
func NewDomainService(s *Service) *DomainService
func (*DomainService) Get ¶
func (r *DomainService) Get(domainName string) *DomainGetCall
Get: Look up RDAP information for a domain by name.
- domainName: Full domain name to look up. Example: "example.com".
type EntityGetCall ¶
type EntityGetCall struct {
// contains filtered or unexported fields
}
func (*EntityGetCall) Context ¶
func (c *EntityGetCall) Context(ctx context.Context) *EntityGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EntityGetCall) Do ¶
func (c *EntityGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.entity.get" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EntityGetCall) Header ¶
func (c *EntityGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*EntityGetCall) IfNoneMatch ¶
func (c *EntityGetCall) IfNoneMatch(entityTag string) *EntityGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EntityService ¶
type EntityService struct {
// contains filtered or unexported fields
}
func NewEntityService ¶
func NewEntityService(s *Service) *EntityService
func (*EntityService) Get ¶
func (r *EntityService) Get(entityId string) *EntityGetCall
Get: The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.
- entityId: .
type HttpBody ¶
type HttpBody struct { // ContentType: The HTTP Content-Type header value specifying the // content type of the body. ContentType string `json:"contentType,omitempty"` // Data: The HTTP request/response body as raw binary. Data string `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpBody: Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw 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: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
func (*HttpBody) MarshalJSON ¶
type IpGetCall ¶
type IpGetCall struct {
// contains filtered or unexported fields
}
func (*IpGetCall) Context ¶
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*IpGetCall) Do ¶
func (c *IpGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.ip.get" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.
func (*IpGetCall) Fields ¶
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*IpGetCall) Header ¶
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*IpGetCall) IfNoneMatch ¶
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type IpService ¶
type IpService struct {
// contains filtered or unexported fields
}
func NewIpService ¶
type Link ¶
type Link struct { // Href: Target URL of a link. Example: "http://example.com/previous". Href string `json:"href,omitempty"` // Hreflang: Language code of a link. Example: "en". Hreflang string `json:"hreflang,omitempty"` // Media: Media type of the link destination. Example: "screen". Media string `json:"media,omitempty"` // Rel: Relation type of a link. Example: "previous". Rel string `json:"rel,omitempty"` // Title: Title of this link. Example: "title". Title string `json:"title,omitempty"` // Type: Content type of the link. Example: "application/json". Type string `json:"type,omitempty"` // Value: URL giving context for the link. Example: // "http://example.com/current". Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Href") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Link: Links object defined in section 4.2 of RFC 7483 (https://tools.ietf.org/html/rfc7483#section-4.2).
func (*Link) MarshalJSON ¶
type NameserverGetCall ¶
type NameserverGetCall struct {
// contains filtered or unexported fields
}
func (*NameserverGetCall) Context ¶
func (c *NameserverGetCall) Context(ctx context.Context) *NameserverGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*NameserverGetCall) Do ¶
func (c *NameserverGetCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.nameserver.get" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.
func (*NameserverGetCall) Fields ¶
func (c *NameserverGetCall) Fields(s ...googleapi.Field) *NameserverGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*NameserverGetCall) Header ¶
func (c *NameserverGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*NameserverGetCall) IfNoneMatch ¶
func (c *NameserverGetCall) IfNoneMatch(entityTag string) *NameserverGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type NameserverService ¶
type NameserverService struct {
// contains filtered or unexported fields
}
func NewNameserverService ¶
func NewNameserverService(s *Service) *NameserverService
func (*NameserverService) Get ¶
func (r *NameserverService) Get(nameserverId string) *NameserverGetCall
Get: The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.
- nameserverId: .
type Notice ¶
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". Title string `json:"title,omitempty"` // Type: Type values defined in section 10.2.1 of RFC 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". Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Notice: Notices object defined in section 4.3 of RFC 7483 (https://tools.ietf.org/html/rfc7483#section-4.3).
func (*Notice) MarshalJSON ¶
type RdapResponse ¶
type RdapResponse struct { // Description: Error description. Description []string `json:"description,omitempty"` // ErrorCode: Error HTTP code. Example: "501". ErrorCode int64 `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 of RFC 7483 // (https://tools.ietf.org/html/rfc7483#section-6). Lang string `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. Title string `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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RdapResponse: Response to a general RDAP query.
func (*RdapResponse) MarshalJSON ¶
func (s *RdapResponse) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Autnum *AutnumService Domain *DomainService Entity *EntityService Ip *IpService Nameserver *NameserverService V1 *V1Service // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.
type V1GetDomainsCall ¶
type V1GetDomainsCall struct {
// contains filtered or unexported fields
}
func (*V1GetDomainsCall) Context ¶
func (c *V1GetDomainsCall) Context(ctx context.Context) *V1GetDomainsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*V1GetDomainsCall) Do ¶
func (c *V1GetDomainsCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.getDomains" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.
func (*V1GetDomainsCall) Fields ¶
func (c *V1GetDomainsCall) Fields(s ...googleapi.Field) *V1GetDomainsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*V1GetDomainsCall) Header ¶
func (c *V1GetDomainsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*V1GetDomainsCall) IfNoneMatch ¶
func (c *V1GetDomainsCall) IfNoneMatch(entityTag string) *V1GetDomainsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type V1GetEntitiesCall ¶
type V1GetEntitiesCall struct {
// contains filtered or unexported fields
}
func (*V1GetEntitiesCall) Context ¶
func (c *V1GetEntitiesCall) Context(ctx context.Context) *V1GetEntitiesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*V1GetEntitiesCall) Do ¶
func (c *V1GetEntitiesCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.getEntities" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.
func (*V1GetEntitiesCall) Fields ¶
func (c *V1GetEntitiesCall) Fields(s ...googleapi.Field) *V1GetEntitiesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*V1GetEntitiesCall) Header ¶
func (c *V1GetEntitiesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*V1GetEntitiesCall) IfNoneMatch ¶
func (c *V1GetEntitiesCall) IfNoneMatch(entityTag string) *V1GetEntitiesCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type V1GetHelpCall ¶
type V1GetHelpCall struct {
// contains filtered or unexported fields
}
func (*V1GetHelpCall) Context ¶
func (c *V1GetHelpCall) Context(ctx context.Context) *V1GetHelpCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*V1GetHelpCall) Do ¶
func (c *V1GetHelpCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
Do executes the "domainsrdap.getHelp" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*V1GetHelpCall) Header ¶
func (c *V1GetHelpCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*V1GetHelpCall) IfNoneMatch ¶
func (c *V1GetHelpCall) IfNoneMatch(entityTag string) *V1GetHelpCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type V1GetIpCall ¶
type V1GetIpCall struct {
// contains filtered or unexported fields
}
func (*V1GetIpCall) Context ¶
func (c *V1GetIpCall) Context(ctx context.Context) *V1GetIpCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*V1GetIpCall) Do ¶
func (c *V1GetIpCall) Do(opts ...googleapi.CallOption) (*HttpBody, error)
Do executes the "domainsrdap.getIp" call. Exactly one of *HttpBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*V1GetIpCall) Header ¶
func (c *V1GetIpCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*V1GetIpCall) IfNoneMatch ¶
func (c *V1GetIpCall) IfNoneMatch(entityTag string) *V1GetIpCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type V1GetNameserversCall ¶
type V1GetNameserversCall struct {
// contains filtered or unexported fields
}
func (*V1GetNameserversCall) Context ¶
func (c *V1GetNameserversCall) Context(ctx context.Context) *V1GetNameserversCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*V1GetNameserversCall) Do ¶
func (c *V1GetNameserversCall) Do(opts ...googleapi.CallOption) (*RdapResponse, error)
Do executes the "domainsrdap.getNameservers" call. Exactly one of *RdapResponse or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.
func (*V1GetNameserversCall) Fields ¶
func (c *V1GetNameserversCall) Fields(s ...googleapi.Field) *V1GetNameserversCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*V1GetNameserversCall) Header ¶
func (c *V1GetNameserversCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*V1GetNameserversCall) IfNoneMatch ¶
func (c *V1GetNameserversCall) IfNoneMatch(entityTag string) *V1GetNameserversCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type V1Service ¶
type V1Service struct {
// contains filtered or unexported fields
}
func NewV1Service ¶
func (*V1Service) GetDomains ¶
func (r *V1Service) GetDomains() *V1GetDomainsCall
GetDomains: The RDAP API recognizes this command from the RDAP specification but 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 RDAP specification but does not support it. The response is a formatted 501 error.
func (*V1Service) GetHelp ¶
func (r *V1Service) GetHelp() *V1GetHelpCall
GetHelp: Get help information for the RDAP API, including links to documentation.
func (*V1Service) GetIp ¶
func (r *V1Service) GetIp() *V1GetIpCall
GetIp: The RDAP API recognizes this command from the RDAP specification but does 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 RDAP specification but does not support it. The response is a formatted 501 error.