siteverification

package
v0.0.0-...-c83ee8e Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2015 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package siteverification provides access to the Google Site Verification API.

See https://developers.google.com/site-verification/

Usage example:

import "google.golang.org/api/siteverification/v1"
...
siteverificationService, err := siteverification.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage the list of sites and domains you control
	SiteverificationScope = "https://www.googleapis.com/auth/siteverification"

	// Manage your new site verifications with Google
	SiteverificationVerifyOnlyScope = "https://www.googleapis.com/auth/siteverification.verify_only"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	WebResource *WebResourceService
	// contains filtered or unexported fields
}

func New

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

type SiteVerificationWebResourceGettokenRequest

type SiteVerificationWebResourceGettokenRequest struct {
	// Site: The site for which a verification token will be generated.
	Site *SiteVerificationWebResourceGettokenRequestSite `json:"site,omitempty"`

	// VerificationMethod: The verification method that will be used to
	// verify this site. For sites, 'FILE' or 'META' methods may be used.
	// For domains, only 'DNS' may be used.
	VerificationMethod string `json:"verificationMethod,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Site") 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:"-"`
}

func (*SiteVerificationWebResourceGettokenRequest) MarshalJSON

type SiteVerificationWebResourceGettokenRequestSite

type SiteVerificationWebResourceGettokenRequestSite struct {
	// Identifier: The site identifier. If the type is set to SITE, the
	// identifier is a URL. If the type is set to INET_DOMAIN, the site
	// identifier is a domain name.
	Identifier string `json:"identifier,omitempty"`

	// Type: The type of resource to be verified. Can be SITE or INET_DOMAIN
	// (domain name).
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Identifier") 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:"-"`
}

SiteVerificationWebResourceGettokenRequestSite: The site for which a verification token will be generated.

func (*SiteVerificationWebResourceGettokenRequestSite) MarshalJSON

type SiteVerificationWebResourceGettokenResponse

type SiteVerificationWebResourceGettokenResponse struct {
	// Method: The verification method to use in conjunction with this
	// token. For FILE, the token should be placed in the top-level
	// directory of the site, stored inside a file of the same name. For
	// META, the token should be placed in the HEAD tag of the default page
	// that is loaded for the site. For DNS, the token should be placed in a
	// TXT record of the domain.
	Method string `json:"method,omitempty"`

	// Token: The verification token. The token must be placed appropriately
	// in order for verification to succeed.
	Token string `json:"token,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Method") 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:"-"`
}

func (*SiteVerificationWebResourceGettokenResponse) MarshalJSON

type SiteVerificationWebResourceListResponse

type SiteVerificationWebResourceListResponse struct {
	// Items: The list of sites that are owned by the authenticated user.
	Items []*SiteVerificationWebResourceResource `json:"items,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Items") 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:"-"`
}

func (*SiteVerificationWebResourceListResponse) MarshalJSON

func (s *SiteVerificationWebResourceListResponse) MarshalJSON() ([]byte, error)

type SiteVerificationWebResourceResource

type SiteVerificationWebResourceResource struct {
	// Id: The string used to identify this site. This value should be used
	// in the "id" portion of the REST URL for the Get, Update, and Delete
	// operations.
	Id string `json:"id,omitempty"`

	// Owners: The email addresses of all verified owners.
	Owners []string `json:"owners,omitempty"`

	// Site: The address and type of a site that is verified or will be
	// verified.
	Site *SiteVerificationWebResourceResourceSite `json:"site,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Id") 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:"-"`
}

func (*SiteVerificationWebResourceResource) MarshalJSON

func (s *SiteVerificationWebResourceResource) MarshalJSON() ([]byte, error)

type SiteVerificationWebResourceResourceSite

type SiteVerificationWebResourceResourceSite struct {
	// Identifier: The site identifier. If the type is set to SITE, the
	// identifier is a URL. If the type is set to INET_DOMAIN, the site
	// identifier is a domain name.
	Identifier string `json:"identifier,omitempty"`

	// Type: The site type. Can be SITE or INET_DOMAIN (domain name).
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Identifier") 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:"-"`
}

SiteVerificationWebResourceResourceSite: The address and type of a site that is verified or will be verified.

func (*SiteVerificationWebResourceResourceSite) MarshalJSON

func (s *SiteVerificationWebResourceResourceSite) MarshalJSON() ([]byte, error)

type WebResourceDeleteCall

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

func (*WebResourceDeleteCall) 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 (*WebResourceDeleteCall) Do

func (c *WebResourceDeleteCall) Do() error

Do executes the "siteVerification.webResource.delete" call.

func (*WebResourceDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type WebResourceGetCall

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

func (*WebResourceGetCall) 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 (*WebResourceGetCall) Do

Do executes the "siteVerification.webResource.get" call. Exactly one of *SiteVerificationWebResourceResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SiteVerificationWebResourceResource.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 (*WebResourceGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*WebResourceGetCall) IfNoneMatch

func (c *WebResourceGetCall) IfNoneMatch(entityTag string) *WebResourceGetCall

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 WebResourceGetTokenCall

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

func (*WebResourceGetTokenCall) 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 (*WebResourceGetTokenCall) Do

Do executes the "siteVerification.webResource.getToken" call. Exactly one of *SiteVerificationWebResourceGettokenResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SiteVerificationWebResourceGettokenResponse.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 (*WebResourceGetTokenCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type WebResourceInsertCall

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

func (*WebResourceInsertCall) 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 (*WebResourceInsertCall) Do

Do executes the "siteVerification.webResource.insert" call. Exactly one of *SiteVerificationWebResourceResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SiteVerificationWebResourceResource.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 (*WebResourceInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type WebResourceListCall

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

func (*WebResourceListCall) 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 (*WebResourceListCall) Do

Do executes the "siteVerification.webResource.list" call. Exactly one of *SiteVerificationWebResourceListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SiteVerificationWebResourceListResponse.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 (*WebResourceListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*WebResourceListCall) IfNoneMatch

func (c *WebResourceListCall) IfNoneMatch(entityTag string) *WebResourceListCall

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 WebResourcePatchCall

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

func (*WebResourcePatchCall) 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 (*WebResourcePatchCall) Do

Do executes the "siteVerification.webResource.patch" call. Exactly one of *SiteVerificationWebResourceResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SiteVerificationWebResourceResource.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 (*WebResourcePatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type WebResourceService

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

func NewWebResourceService

func NewWebResourceService(s *Service) *WebResourceService

func (*WebResourceService) Delete

Delete: Relinquish ownership of a website or domain.

func (*WebResourceService) Get

Get: Get the most current data for a website or domain.

func (*WebResourceService) GetToken

func (r *WebResourceService) GetToken(siteverificationwebresourcegettokenrequest *SiteVerificationWebResourceGettokenRequest) *WebResourceGetTokenCall

GetToken: Get a verification token for placing on a website or domain.

func (*WebResourceService) Insert

func (r *WebResourceService) Insert(verificationMethod string, siteverificationwebresourceresource *SiteVerificationWebResourceResource) *WebResourceInsertCall

Insert: Attempt verification of a website or domain.

func (*WebResourceService) List

List: Get the list of your verified websites and domains.

func (*WebResourceService) Patch

func (r *WebResourceService) Patch(id string, siteverificationwebresourceresource *SiteVerificationWebResourceResource) *WebResourcePatchCall

Patch: Modify the list of owners for your website or domain. This method supports patch semantics.

func (*WebResourceService) Update

func (r *WebResourceService) Update(id string, siteverificationwebresourceresource *SiteVerificationWebResourceResource) *WebResourceUpdateCall

Update: Modify the list of owners for your website or domain.

type WebResourceUpdateCall

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

func (*WebResourceUpdateCall) 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 (*WebResourceUpdateCall) Do

Do executes the "siteVerification.webResource.update" call. Exactly one of *SiteVerificationWebResourceResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SiteVerificationWebResourceResource.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 (*WebResourceUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL