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
- type Service
- type SiteVerificationWebResourceGettokenRequest
- type SiteVerificationWebResourceGettokenRequestSite
- type SiteVerificationWebResourceGettokenResponse
- type SiteVerificationWebResourceListResponse
- type SiteVerificationWebResourceResource
- type SiteVerificationWebResourceResourceSite
- type WebResourceDeleteCall
- type WebResourceGetCall
- type WebResourceGetTokenCall
- type WebResourceInsertCall
- type WebResourceListCall
- type WebResourcePatchCall
- type WebResourceService
- func (r *WebResourceService) Delete(id string) *WebResourceDeleteCall
- func (r *WebResourceService) Get(id string) *WebResourceGetCall
- func (r *WebResourceService) GetToken(...) *WebResourceGetTokenCall
- func (r *WebResourceService) Insert(verificationMethod string, ...) *WebResourceInsertCall
- func (r *WebResourceService) List() *WebResourceListCall
- func (r *WebResourceService) Patch(id string, ...) *WebResourcePatchCall
- func (r *WebResourceService) Update(id string, ...) *WebResourceUpdateCall
- type WebResourceUpdateCall
Constants ¶
const ( // Manage the list of sites and domains you control SiteverificationScope = "https://www.googleapis.com/auth/siteverification" // Manage your new site verifications with Google SiteverificationVerify_onlyScope = "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
WebResource *WebResourceService
// contains filtered or unexported fields
}
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"`
}
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"`
}
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"`
}
type SiteVerificationWebResourceListResponse ¶
type SiteVerificationWebResourceListResponse struct {
// Items: The list of sites that are owned by the authenticated user.
Items []*SiteVerificationWebResourceResource `json:"items,omitempty"`
}
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"`
}
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"`
}
type WebResourceDeleteCall ¶
type WebResourceDeleteCall struct {
// contains filtered or unexported fields
}
func (*WebResourceDeleteCall) Do ¶
func (c *WebResourceDeleteCall) Do() error
func (*WebResourceDeleteCall) Fields ¶
func (c *WebResourceDeleteCall) Fields(s ...googleapi.Field) *WebResourceDeleteCall
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) Do ¶
func (c *WebResourceGetCall) Do() (*SiteVerificationWebResourceResource, error)
func (*WebResourceGetCall) Fields ¶
func (c *WebResourceGetCall) Fields(s ...googleapi.Field) *WebResourceGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type WebResourceGetTokenCall ¶
type WebResourceGetTokenCall struct {
// contains filtered or unexported fields
}
func (*WebResourceGetTokenCall) Do ¶
func (c *WebResourceGetTokenCall) Do() (*SiteVerificationWebResourceGettokenResponse, error)
func (*WebResourceGetTokenCall) Fields ¶
func (c *WebResourceGetTokenCall) Fields(s ...googleapi.Field) *WebResourceGetTokenCall
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) Do ¶
func (c *WebResourceInsertCall) Do() (*SiteVerificationWebResourceResource, error)
func (*WebResourceInsertCall) Fields ¶
func (c *WebResourceInsertCall) Fields(s ...googleapi.Field) *WebResourceInsertCall
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) Do ¶
func (c *WebResourceListCall) Do() (*SiteVerificationWebResourceListResponse, error)
func (*WebResourceListCall) Fields ¶
func (c *WebResourceListCall) Fields(s ...googleapi.Field) *WebResourceListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type WebResourcePatchCall ¶
type WebResourcePatchCall struct {
// contains filtered or unexported fields
}
func (*WebResourcePatchCall) Do ¶
func (c *WebResourcePatchCall) Do() (*SiteVerificationWebResourceResource, error)
func (*WebResourcePatchCall) Fields ¶
func (c *WebResourcePatchCall) Fields(s ...googleapi.Field) *WebResourcePatchCall
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 ¶
func (r *WebResourceService) Delete(id string) *WebResourceDeleteCall
Delete: Relinquish ownership of a website or domain.
func (*WebResourceService) Get ¶
func (r *WebResourceService) Get(id string) *WebResourceGetCall
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 ¶
func (r *WebResourceService) List() *WebResourceListCall
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) Do ¶
func (c *WebResourceUpdateCall) Do() (*SiteVerificationWebResourceResource, error)
func (*WebResourceUpdateCall) Fields ¶
func (c *WebResourceUpdateCall) Fields(s ...googleapi.Field) *WebResourceUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.