Movatterモバイル変換


[0]ホーム

URL:


dns

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:40

Details

Repository

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

Links

Documentation

Overview

Package dns provides access to the Cloud DNS API.

For product documentation, see:https://cloud.google.com/dns/docs

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/dns/v1beta2"...ctx := context.Background()dnsService, err := dns.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

By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:

dnsService, err := dns.NewService(ctx, option.WithScopes(dns.NdevClouddnsReadwriteScope))

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

dnsService, err := dns.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, ...)dnsService, err := dns.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

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

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// View your data across Google Cloud services and see the email address of// your Google AccountCloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"// View your DNS records hosted by Google Cloud DNSNdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev.clouddns.readonly"// View and manage your DNS records hosted by Google Cloud DNSNdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/ndev.clouddns.readwrite")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeChange

type Change struct {// Additions: Which ResourceRecordSets to add?Additions []*ResourceRecordSet `json:"additions,omitempty"`// Deletions: Which ResourceRecordSets to remove? Must match existing data// exactly.Deletions []*ResourceRecordSet `json:"deletions,omitempty"`// Id: Unique identifier for the resource; defined by the server (output only).Idstring `json:"id,omitempty"`// IsServing: If the DNS queries for the zone will be served.IsServingbool   `json:"isServing,omitempty"`Kindstring `json:"kind,omitempty"`// StartTime: The time that this operation was started by the server (output// only). This is in RFC3339 text format.StartTimestring `json:"startTime,omitempty"`// Status: Status of the operation (output only). A status of "done" means that// the request to update the authoritative servers has been sent, but the// servers might not be updated yet.//// Possible values://   "pending"//   "done"Statusstring `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Additions") 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. "Additions") 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:"-"`}

Change: A Change represents a set of `ResourceRecordSet` additions anddeletions applied atomically to a ManagedZone. ResourceRecordSets within aManagedZone are modified by creating a new Change element in the Changescollection. In turn the Changes collection also records the pastmodifications to the `ResourceRecordSets` in a `ManagedZone`. The currentstate of the `ManagedZone` is the sum effect of applying all `Change`elements in the `Changes` collection in sequence.

func (Change)MarshalJSON

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

typeChangesCreateCall

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

func (*ChangesCreateCall)ClientOperationId

func (c *ChangesCreateCall) ClientOperationId(clientOperationIdstring) *ChangesCreateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ChangesCreateCall)Context

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

func (*ChangesCreateCall)Do

Do executes the "dns.changes.create" call.Any non-2xx status code is an error. Response headers are in either*Change.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 (*ChangesCreateCall)Fields

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

func (*ChangesCreateCall)Header

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

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

typeChangesGetCall

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

func (*ChangesGetCall)ClientOperationId

func (c *ChangesGetCall) ClientOperationId(clientOperationIdstring) *ChangesGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ChangesGetCall)Context

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

func (*ChangesGetCall)Do

Do executes the "dns.changes.get" call.Any non-2xx status code is an error. Response headers are in either*Change.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 (*ChangesGetCall)Fields

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

func (*ChangesGetCall)Header

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

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

func (*ChangesGetCall)IfNoneMatch

func (c *ChangesGetCall) IfNoneMatch(entityTagstring) *ChangesGetCall

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.

typeChangesListCall

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

func (*ChangesListCall)Context

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

func (*ChangesListCall)Do

Do executes the "dns.changes.list" call.Any non-2xx status code is an error. Response headers are in either*ChangesListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ChangesListCall)Fields

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

func (*ChangesListCall)Header

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

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

func (*ChangesListCall)IfNoneMatch

func (c *ChangesListCall) IfNoneMatch(entityTagstring) *ChangesListCall

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.

func (*ChangesListCall)MaxResults

func (c *ChangesListCall) MaxResults(maxResultsint64) *ChangesListCall

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*ChangesListCall)PageToken

func (c *ChangesListCall) PageToken(pageTokenstring) *ChangesListCall

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*ChangesListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

func (*ChangesListCall)SortBy

func (c *ChangesListCall) SortBy(sortBystring) *ChangesListCall

SortBy sets the optional parameter "sortBy": Sorting criterion. The onlysupported value is change sequence.

Possible values:

"changeSequence" (default)

func (*ChangesListCall)SortOrder

func (c *ChangesListCall) SortOrder(sortOrderstring) *ChangesListCall

SortOrder sets the optional parameter "sortOrder": Sorting order direction:'ascending' or 'descending'.

typeChangesListResponse

type ChangesListResponse struct {// Changes: The requested changes.Changes []*Change `json:"changes,omitempty"`// Kind: Type of resource.Kindstring `json:"kind,omitempty"`// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Changes") 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. "Changes") 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:"-"`}

ChangesListResponse: The response to a request to enumerate Changes to aResourceRecordSets collection.

func (ChangesListResponse)MarshalJSON

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

typeChangesService

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

funcNewChangesService

func NewChangesService(s *Service) *ChangesService

func (*ChangesService)Create

func (r *ChangesService) Create(projectstring, managedZonestring, change *Change) *ChangesCreateCall

Create: Atomically updates the ResourceRecordSet collection.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ChangesService)Get

func (r *ChangesService) Get(projectstring, managedZonestring, changeIdstring) *ChangesGetCall

Get: Fetches the representation of an existing Change.

  • changeId: The identifier of the requested change, from a previousResourceRecordSetsChangeResponse.
  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ChangesService)List

func (r *ChangesService) List(projectstring, managedZonestring) *ChangesListCall

List: Enumerates Changes to a ResourceRecordSet collection.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

typeDnsKey

type DnsKey struct {// Algorithm: String mnemonic specifying the DNSSEC algorithm of this key.// Immutable after creation time.//// Possible values://   "rsasha1"//   "rsasha256"//   "rsasha512"//   "ecdsap256sha256"//   "ecdsap384sha384"Algorithmstring `json:"algorithm,omitempty"`// CreationTime: The time that this resource was created in the control plane.// This is in RFC3339 text format. Output only.CreationTimestring `json:"creationTime,omitempty"`// Description: A mutable string of at most 1024 characters associated with// this resource for the user's convenience. Has no effect on the resource's// function.Descriptionstring `json:"description,omitempty"`// Digests: Cryptographic hashes of the DNSKEY resource record associated with// this DnsKey. These digests are needed to construct a DS record that points// at this DNS key. Output only.Digests []*DnsKeyDigest `json:"digests,omitempty"`// Id: Unique identifier for the resource; defined by the server (output only).Idstring `json:"id,omitempty"`// IsActive: Active keys are used to sign subsequent changes to the// ManagedZone. Inactive keys are still present as DNSKEY Resource Records for// the use of resolvers validating existing signatures.IsActivebool `json:"isActive,omitempty"`// KeyLength: Length of the key in bits. Specified at creation time, and then// immutable.KeyLengthint64 `json:"keyLength,omitempty"`// KeyTag: The key tag is a non-cryptographic hash of the a DNSKEY resource// record associated with this DnsKey. The key tag can be used to identify a// DNSKEY more quickly (but it is not a unique identifier). In particular, the// key tag is used in a parent zone's DS record to point at the DNSKEY in this// child ManagedZone. The key tag is a number in the range [0, 65535] and the// algorithm to calculate it is specified in RFC4034 Appendix B. Output only.KeyTagint64  `json:"keyTag,omitempty"`Kindstring `json:"kind,omitempty"`// PublicKey: Base64 encoded public half of this key. Output only.PublicKeystring `json:"publicKey,omitempty"`// Type: One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have// the Secure Entry Point flag set and, when active, are used to sign only// resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag// is cleared, and this key is used to sign only resource record sets of other// types. Immutable after creation time.//// Possible values://   "keySigning"//   "zoneSigning"Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Algorithm") 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. "Algorithm") 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:"-"`}

DnsKey: A DNSSEC key pair.

func (DnsKey)MarshalJSON

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

typeDnsKeyDigest

type DnsKeyDigest struct {// Digest: The base-16 encoded bytes of this digest. Suitable for use in a DS// resource record.Digeststring `json:"digest,omitempty"`// Type: Specifies the algorithm used to calculate this digest.//// Possible values://   "sha1"//   "sha256"//   "sha384"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Digest") 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. "Digest") 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:"-"`}

func (DnsKeyDigest)MarshalJSON

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

typeDnsKeySpec

type DnsKeySpec struct {// Algorithm: String mnemonic specifying the DNSSEC algorithm of this key.//// Possible values://   "rsasha1"//   "rsasha256"//   "rsasha512"//   "ecdsap256sha256"//   "ecdsap384sha384"Algorithmstring `json:"algorithm,omitempty"`// KeyLength: Length of the keys in bits.KeyLengthint64 `json:"keyLength,omitempty"`// KeyType: Specifies whether this is a key signing key (KSK) or a zone signing// key (ZSK). Key signing keys have the Secure Entry Point flag set and, when// active, are only used to sign resource record sets of type DNSKEY. Zone// signing keys do not have the Secure Entry Point flag set and are used to// sign all other types of resource record sets.//// Possible values://   "keySigning"//   "zoneSigning"KeyTypestring `json:"keyType,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Algorithm") 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. "Algorithm") 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:"-"`}

DnsKeySpec: Parameters for DnsKey key generation. Used for generatinginitial keys for a new ManagedZone and as default when adding a new DnsKey.

func (DnsKeySpec)MarshalJSON

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

typeDnsKeysGetCall

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

func (*DnsKeysGetCall)ClientOperationId

func (c *DnsKeysGetCall) ClientOperationId(clientOperationIdstring) *DnsKeysGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*DnsKeysGetCall)Context

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

func (*DnsKeysGetCall)DigestType

func (c *DnsKeysGetCall) DigestType(digestTypestring) *DnsKeysGetCall

DigestType sets the optional parameter "digestType": An optionalcomma-separated list of digest types to compute and display for key signingkeys. If omitted, the recommended digest type is computed and displayed.

func (*DnsKeysGetCall)Do

Do executes the "dns.dnsKeys.get" call.Any non-2xx status code is an error. Response headers are in either*DnsKey.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 (*DnsKeysGetCall)Fields

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

func (*DnsKeysGetCall)Header

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

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

func (*DnsKeysGetCall)IfNoneMatch

func (c *DnsKeysGetCall) IfNoneMatch(entityTagstring) *DnsKeysGetCall

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.

typeDnsKeysListCall

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

func (*DnsKeysListCall)Context

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

func (*DnsKeysListCall)DigestType

func (c *DnsKeysListCall) DigestType(digestTypestring) *DnsKeysListCall

DigestType sets the optional parameter "digestType": An optionalcomma-separated list of digest types to compute and display for key signingkeys. If omitted, the recommended digest type is computed and displayed.

func (*DnsKeysListCall)Do

Do executes the "dns.dnsKeys.list" call.Any non-2xx status code is an error. Response headers are in either*DnsKeysListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*DnsKeysListCall)Fields

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

func (*DnsKeysListCall)Header

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

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

func (*DnsKeysListCall)IfNoneMatch

func (c *DnsKeysListCall) IfNoneMatch(entityTagstring) *DnsKeysListCall

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.

func (*DnsKeysListCall)MaxResults

func (c *DnsKeysListCall) MaxResults(maxResultsint64) *DnsKeysListCall

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*DnsKeysListCall)PageToken

func (c *DnsKeysListCall) PageToken(pageTokenstring) *DnsKeysListCall

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*DnsKeysListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeDnsKeysListResponse

type DnsKeysListResponse struct {// DnsKeys: The requested resources.DnsKeys []*DnsKey `json:"dnsKeys,omitempty"`// Kind: Type of resource.Kindstring `json:"kind,omitempty"`// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DnsKeys") 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. "DnsKeys") 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:"-"`}

DnsKeysListResponse: The response to a request to enumerate DnsKeys in aManagedZone.

func (DnsKeysListResponse)MarshalJSON

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

typeDnsKeysService

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

funcNewDnsKeysService

func NewDnsKeysService(s *Service) *DnsKeysService

func (*DnsKeysService)Get

func (r *DnsKeysService) Get(projectstring, managedZonestring, dnsKeyIdstring) *DnsKeysGetCall

Get: Fetches the representation of an existing DnsKey.

  • dnsKeyId: The identifier of the requested DnsKey.
  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*DnsKeysService)List

func (r *DnsKeysService) List(projectstring, managedZonestring) *DnsKeysListCall

List: Enumerates DnsKeys to a ResourceRecordSet collection.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

typeExpradded inv0.80.0

type Expr struct {// Description: Optional. Description of the expression. This is a longer text// which describes the expression, e.g. when hovered over it in a UI.Descriptionstring `json:"description,omitempty"`// Expression: Textual representation of an expression in Common Expression// Language syntax.Expressionstring `json:"expression,omitempty"`// Location: Optional. String indicating the location of the expression for// error reporting, e.g. a file name and a position in the file.Locationstring `json:"location,omitempty"`// Title: Optional. Title for the expression, i.e. a short string describing// its purpose. This can be used e.g. in UIs which allow to enter the// expression.Titlestring `json:"title,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:"-"`}

Expr: Represents a textual expression in the Common Expression Language(CEL) syntax. CEL is a C-like expression language. The syntax and semanticsof CEL are documented athttps://github.com/google/cel-spec. Example(Comparison): title: "Summary size limit" description: "Determines if asummary is less than 100 chars" expression: "document.summary.size() < 100"Example (Equality): title: "Requestor is owner" description: "Determines ifrequestor is the document owner" expression: "document.owner ==request.auth.claims.email" Example (Logic): title: "Public documents"description: "Determine whether the document should be publicly visible"expression: "document.type != 'private' && document.type != 'internal'"Example (Data Manipulation): title: "Notification string" description:"Create a notification string with a timestamp." expression: "'New messagereceived at ' + string(document.create_time)" The exact variables andfunctions that may be referenced within an expression are determined by theservice that evaluates it. See the service documentation for additionalinformation.

func (Expr)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1AuditConfigadded inv0.80.0

type GoogleIamV1AuditConfig struct {// AuditLogConfigs: The configuration for logging of each type of permission.AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`// Service: Specifies a service that will be enabled for audit logging. For// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`// is a special value that covers all services.Servicestring `json:"service,omitempty"`// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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:"-"`}

GoogleIamV1AuditConfig: Specifies the audit configuration for a service. Theconfiguration determines which permission types are logged, and whatidentities, if any, are exempted from logging. An AuditConfig must have oneor more AuditLogConfigs. If there are AuditConfigs for both `allServices`and a specific service, the union of the two AuditConfigs is used for thatservice: the log_types specified in each AuditConfig are enabled, and theexempted_members in each AuditLogConfig are exempted. Example Policy withmultiple AuditConfigs: { "audit_configs": [ { "service": "allServices","audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": ["user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":"ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com","audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":"DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } Forsampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READlogging. It also exempts `jose@example.com` from DATA_READ logging, and`aliya@example.com` from DATA_WRITE logging.

func (GoogleIamV1AuditConfig)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1AuditLogConfigadded inv0.80.0

type GoogleIamV1AuditLogConfig struct {// ExemptedMembers: Specifies the identities that do not cause logging for this// type of permission. Follows the same format of Binding.members.ExemptedMembers []string `json:"exemptedMembers,omitempty"`// LogType: The log type that this config enables.//// Possible values://   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create//   "DATA_READ" - Data reads. Example: CloudSQL Users listLogTypestring `json:"logType,omitempty"`// ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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:"-"`}

GoogleIamV1AuditLogConfig: Provides the configuration for logging a type ofpermissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ","exempted_members": [ "user:jose@example.com" ] }, { "log_type":"DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, whileexempting jose@example.com from DATA_READ logging.

func (GoogleIamV1AuditLogConfig)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1Bindingadded inv0.80.0

type GoogleIamV1Binding struct {// Condition: The condition that is associated with this binding. If the// condition evaluates to `true`, then this binding applies to the current// request. If the condition evaluates to `false`, then this binding does not// apply to the current request. However, a different role binding might grant// the same role to one or more of the principals in this binding. To learn// which resources support conditions in their IAM policies, see the IAM// documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).Condition *Expr `json:"condition,omitempty"`// Members: Specifies the principals requesting access for a Google Cloud// resource. `members` can have the following values: * `allUsers`: A special// identifier that represents anyone who is on the internet; with or without a// Google account. * `allAuthenticatedUsers`: A special identifier that// represents anyone who is authenticated with a Google account or a service// account. Does not include identities that come from external identity// providers (IdPs) through identity federation. * `user:{emailid}`: An email// address that represents a specific Google account. For example,// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that// represents a Google service account. For example,// `my-other-app@appspot.gserviceaccount.com`. *// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An// identifier for a Kubernetes service account// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *// `group:{emailid}`: An email address that represents a Google group. For// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain// (primary) that represents all the users of that domain. For example,// `google.com` or `example.com`. *// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub// ject/{subject_attribute_value}`: A single identity in a workforce identity// pool. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// group/{group_id}`: All workforce identities in a group. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// attribute.{attribute_name}/{attribute_value}`: All workforce identities with// a specific attribute value. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// *`: All identities in a workforce identity pool. *// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single// identity in a workload identity pool. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool// group. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}// `: All identities in a workload identity pool with a certain attribute. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus// unique identifier) representing a user that has been recently deleted. For// example, `alice@example.com?uid=123456789012345678901`. If the user is// recovered, this value reverts to `user:{emailid}` and the recovered user// retains the role in the binding. *// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus// unique identifier) representing a service account that has been recently// deleted. For example,// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the// service account is undeleted, this value reverts to// `serviceAccount:{emailid}` and the undeleted service account retains the// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email// address (plus unique identifier) representing a Google group that has been// recently deleted. For example,// `admins@example.com?uid=123456789012345678901`. If the group is recovered,// this value reverts to `group:{emailid}` and the recovered group retains the// role in the binding. *// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool// _id}/subject/{subject_attribute_value}`: Deleted single identity in a// workforce identity pool. For example,// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po// ol-id/subject/my-subject-attribute-value`.Members []string `json:"members,omitempty"`// Role: Role that is assigned to the list of `members`, or principals. For// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview// of the IAM roles and permissions, see the IAM documentation// (https://cloud.google.com/iam/docs/roles-overview). For a list of the// available pre-defined roles, see here// (https://cloud.google.com/iam/docs/understanding-roles).Rolestring `json:"role,omitempty"`// ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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:"-"`}

GoogleIamV1Binding: Associates `members`, or principals, with a `role`.

func (GoogleIamV1Binding)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1GetIamPolicyRequestadded inv0.80.0

type GoogleIamV1GetIamPolicyRequest struct {// Options: OPTIONAL: A `GetPolicyOptions` object for specifying options to// `GetIamPolicy`.Options *GoogleIamV1GetPolicyOptions `json:"options,omitempty"`// ForceSendFields is a list of field names (e.g. "Options") 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. "Options") 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:"-"`}

GoogleIamV1GetIamPolicyRequest: Request message for `GetIamPolicy` method.

func (GoogleIamV1GetIamPolicyRequest)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1GetPolicyOptionsadded inv0.80.0

type GoogleIamV1GetPolicyOptions struct {// RequestedPolicyVersion: Optional. The maximum policy version that will be// used to format the policy. Valid values are 0, 1, and 3. Requests specifying// an invalid value will be rejected. Requests for policies with any// conditional role bindings must specify version 3. Policies with no// conditional role bindings may specify any valid value or leave the field// unset. The policy in the response might use the policy version that you// specified, or it might use a lower policy version. For example, if you// specify version 3, but the policy has no conditional role bindings, the// response uses version 1. To learn which resources support conditions in// their IAM policies, see the IAM documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).RequestedPolicyVersionint64 `json:"requestedPolicyVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") 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. "RequestedPolicyVersion") 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:"-"`}

GoogleIamV1GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.

func (GoogleIamV1GetPolicyOptions)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1Policyadded inv0.80.0

type GoogleIamV1Policy struct {// AuditConfigs: Specifies cloud audit logging configuration for this policy.AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`// Bindings: Associates a list of `members`, or principals, with a `role`.// Optionally, may specify a `condition` that determines how and when the// `bindings` are applied. Each of the `bindings` must contain at least one// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;// up to 250 of these principals can be Google groups. Each occurrence of a// principal counts towards these limits. For example, if the `bindings` grant// 50 different roles to `user:alice@example.com`, and not to any other// principal, then you can add another 1,450 principals to the `bindings` in// the `Policy`.Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`// Etag: `etag` is used for optimistic concurrency control as a way to help// prevent simultaneous updates of a policy from overwriting each other. It is// strongly suggested that systems make use of the `etag` in the// read-modify-write cycle to perform policy updates in order to avoid race// conditions: An `etag` is returned in the response to `getIamPolicy`, and// systems are expected to put that etag in the request to `setIamPolicy` to// ensure that their change will be applied to the same version of the policy.// **Important:** If you use IAM Conditions, you must include the `etag` field// whenever you call `setIamPolicy`. If you omit this field, then IAM allows// you to overwrite a version `3` policy with a version `1` policy, and all of// the conditions in the version `3` policy are lost.Etagstring `json:"etag,omitempty"`// Version: Specifies the format of the policy. Valid values are `0`, `1`, and// `3`. Requests that specify an invalid value are rejected. Any operation that// affects conditional role bindings must specify version `3`. This requirement// applies to the following operations: * Getting a policy that includes a// conditional role binding * Adding a conditional role binding to a policy *// Changing a conditional role binding in a policy * Removing any role binding,// with or without a condition, from a policy that includes conditions// **Important:** If you use IAM Conditions, you must include the `etag` field// whenever you call `setIamPolicy`. If you omit this field, then IAM allows// you to overwrite a version `3` policy with a version `1` policy, and all of// the conditions in the version `3` policy are lost. If a policy does not// include any conditions, operations on that policy may specify any valid// version or leave the field unset. To learn which resources support// conditions in their IAM policies, see the IAM documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).Versionint64 `json:"version,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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:"-"`}

GoogleIamV1Policy: An Identity and Access Management (IAM) policy, whichspecifies access controls for Google Cloud resources. A `Policy` is acollection of `bindings`. A `binding` binds one or more `members`, orprincipals, to a single `role`. Principals can be user accounts, serviceaccounts, Google groups, and domains (such as G Suite). A `role` is a namedlist of permissions; each `role` can be an IAM predefined role or auser-created custom role. For some types of Google Cloud resources, a`binding` can also specify a `condition`, which is a logical expression thatallows access to a resource only if the expression evaluates to `true`. Acondition can add constraints based on attributes of the request, theresource, or both. To learn which resources support conditions in their IAMpolicies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies). **JSONexample:** ``` { "bindings": [ { "role":"roles/resourcemanager.organizationAdmin", "members": ["user:mike@example.com", "group:admins@example.com", "domain:google.com","serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":"roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com" ], "condition": { "title": "expirable access","description": "Does not grant access after Sep 2020", "expression":"request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":"BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -members: - user:mike@example.com - group:admins@example.com -domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.comrole: roles/resourcemanager.organizationAdmin - members: -user:eve@example.com role: roles/resourcemanager.organizationViewercondition: title: expirable access description: Does not grant access afterSep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,see the IAM documentation (https://cloud.google.com/iam/docs/).

func (GoogleIamV1Policy)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1SetIamPolicyRequestadded inv0.80.0

type GoogleIamV1SetIamPolicyRequest struct {// Policy: REQUIRED: The complete policy to be applied to the `resource`. The// size of the policy is limited to a few 10s of KB. An empty policy is a valid// policy but certain Google Cloud services (such as Projects) might reject// them.Policy *GoogleIamV1Policy `json:"policy,omitempty"`// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to// modify. Only the fields in the mask will be modified. If no mask is// provided, the following default mask is used: `paths: "bindings, etag"UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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:"-"`}

GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method.

func (GoogleIamV1SetIamPolicyRequest)MarshalJSONadded inv0.80.0

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

typeGoogleIamV1TestIamPermissionsRequestadded inv0.80.0

type GoogleIamV1TestIamPermissionsRequest struct {// Permissions: The set of permissions to check for the `resource`. Permissions// with wildcards (such as `*` or `storage.*`) are not allowed. For more// information see IAM Overview// (https://cloud.google.com/iam/docs/overview#permissions).Permissions []string `json:"permissions,omitempty"`// ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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:"-"`}

GoogleIamV1TestIamPermissionsRequest: Request message for`TestIamPermissions` method.

func (GoogleIamV1TestIamPermissionsRequest)MarshalJSONadded inv0.80.0

typeGoogleIamV1TestIamPermissionsResponseadded inv0.80.0

type GoogleIamV1TestIamPermissionsResponse struct {// Permissions: A subset of `TestPermissionsRequest.permissions` that the// caller is allowed.Permissions []string `json:"permissions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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:"-"`}

GoogleIamV1TestIamPermissionsResponse: Response message for`TestIamPermissions` method.

func (GoogleIamV1TestIamPermissionsResponse)MarshalJSONadded inv0.80.0

typeManagedZone

type ManagedZone struct {CloudLoggingConfig *ManagedZoneCloudLoggingConfig `json:"cloudLoggingConfig,omitempty"`// CreationTime: The time that this resource was created on the server. This is// in RFC3339 text format. Output only.CreationTimestring `json:"creationTime,omitempty"`// Description: A mutable string of at most 1024 characters associated with// this resource for the user's convenience. Has no effect on the managed// zone's function.Descriptionstring `json:"description,omitempty"`// DnsName: The DNS name of this managed zone, for instance "example.com.".DnsNamestring `json:"dnsName,omitempty"`// DnssecConfig: DNSSEC configuration.DnssecConfig *ManagedZoneDnsSecConfig `json:"dnssecConfig,omitempty"`// ForwardingConfig: The presence for this field indicates that outbound// forwarding is enabled for this zone. The value of this field contains the// set of destinations to forward to.ForwardingConfig *ManagedZoneForwardingConfig `json:"forwardingConfig,omitempty"`// Id: Unique identifier for the resource; defined by the server (output only)Iduint64 `json:"id,omitempty,string"`Kindstring `json:"kind,omitempty"`// Labels: User labels.Labels map[string]string `json:"labels,omitempty"`// Name: User assigned name for this resource. Must be unique within the// project. The name must be 1-63 characters long, must begin with a letter,// end with a letter or digit, and only contain lowercase letters, digits or// dashes.Namestring `json:"name,omitempty"`// NameServerSet: Optionally specifies the NameServerSet for this ManagedZone.// A NameServerSet is a set of DNS name servers that all host the same// ManagedZones. Most users leave this field unset. If you need to use this// field, contact your account team.NameServerSetstring `json:"nameServerSet,omitempty"`// NameServers: Delegate your managed_zone to these virtual name servers;// defined by the server (output only)NameServers []string `json:"nameServers,omitempty"`// PeeringConfig: The presence of this field indicates that DNS Peering is// enabled for this zone. The value of this field contains the network to peer// with.PeeringConfig *ManagedZonePeeringConfig `json:"peeringConfig,omitempty"`// PrivateVisibilityConfig: For privately visible zones, the set of Virtual// Private Cloud resources that the zone is visible from.PrivateVisibilityConfig *ManagedZonePrivateVisibilityConfig `json:"privateVisibilityConfig,omitempty"`// ReverseLookupConfig: The presence of this field indicates that this is a// managed reverse lookup zone and Cloud DNS resolves reverse lookup queries// using automatically configured records for VPC resources. This only applies// to networks listed under private_visibility_config.ReverseLookupConfig *ManagedZoneReverseLookupConfig `json:"reverseLookupConfig,omitempty"`// ServiceDirectoryConfig: This field links to the associated service directory// namespace. Do not set this field for public zones or forwarding zones.ServiceDirectoryConfig *ManagedZoneServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`// Visibility: The zone's visibility: public zones are exposed to the Internet,// while private zones are visible only to Virtual Private Cloud resources.//// Possible values://   "public" - Indicates that records in this zone can be queried from the// public internet.//   "private" - Indicates that records in this zone cannot be queried from the// public internet. Access to private zones depends on the zone configuration.Visibilitystring `json:"visibility,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CloudLoggingConfig") 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. "CloudLoggingConfig") 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:"-"`}

ManagedZone: A zone is a subtree of the DNS namespace under oneadministrative responsibility. A ManagedZone is a resource that represents aDNS zone hosted by the Cloud DNS service.

func (ManagedZone)MarshalJSON

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

typeManagedZoneCloudLoggingConfigadded inv0.61.0

type ManagedZoneCloudLoggingConfig struct {// EnableLogging: If set, enable query logging for this ManagedZone. False by// default, making logging opt-in.EnableLoggingbool   `json:"enableLogging,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableLogging") 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. "EnableLogging") 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:"-"`}

ManagedZoneCloudLoggingConfig: Cloud Logging configurations for publiclyvisible zones.

func (ManagedZoneCloudLoggingConfig)MarshalJSONadded inv0.61.0

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

typeManagedZoneDnsSecConfig

type ManagedZoneDnsSecConfig struct {// DefaultKeySpecs: Specifies parameters for generating initial DnsKeys for// this ManagedZone. Can only be changed while the state is OFF.DefaultKeySpecs []*DnsKeySpec `json:"defaultKeySpecs,omitempty"`Kindstring        `json:"kind,omitempty"`// NonExistence: Specifies the mechanism for authenticated denial-of-existence// responses. Can only be changed while the state is OFF.//// Possible values://   "nsec" - Indicates that Cloud DNS will sign records in the managed zone// according toRFC 4034 and respond with NSEC records for names that do not// exist.//   "nsec3" - Indicates that Cloud DNS will sign records in the managed zone// according toRFC 5155 and respond with NSEC3 records for names that do not// exist.NonExistencestring `json:"nonExistence,omitempty"`// State: Specifies whether DNSSEC is enabled, and what mode it is in.//// Possible values://   "off" - DNSSEC is disabled; the zone is not signed.//   "on" - DNSSEC is enabled; the zone is signed and fully managed.//   "transfer" - DNSSEC is enabled, but in a "transfer" mode.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultKeySpecs") 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. "DefaultKeySpecs") 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:"-"`}

func (ManagedZoneDnsSecConfig)MarshalJSON

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

typeManagedZoneForwardingConfig

type ManagedZoneForwardingConfig struct {Kindstring `json:"kind,omitempty"`// TargetNameServers: List of target name servers to forward to. Cloud DNS// selects the best available name server if more than one target is given.TargetNameServers []*ManagedZoneForwardingConfigNameServerTarget `json:"targetNameServers,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ManagedZoneForwardingConfig)MarshalJSON

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

typeManagedZoneForwardingConfigNameServerTarget

type ManagedZoneForwardingConfigNameServerTarget struct {// DomainName: Fully qualified domain name for the forwarding target.DomainNamestring `json:"domainName,omitempty"`// ForwardingPath: Forwarding path for this NameServerTarget. If unset or set// to DEFAULT, Cloud DNS makes forwarding decisions based on IP address ranges;// that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go// to the internet. When set to PRIVATE, Cloud DNS always sends queries through// the VPC network for this target.//// Possible values://   "default" - Cloud DNS makes forwarding decisions based on address ranges;// that is, RFC1918 addresses forward to the target through the VPC and// non-RFC1918 addresses forward to the target through the internet//   "private" - Cloud DNS always forwards to this target through the VPC.ForwardingPathstring `json:"forwardingPath,omitempty"`// Ipv4Address: IPv4 address of a target name server.Ipv4Addressstring `json:"ipv4Address,omitempty"`// Ipv6Address: IPv6 address of a target name server. Does not accept both// fields (ipv4 & ipv6) being populated. Public preview as of November 2022.Ipv6Addressstring `json:"ipv6Address,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "DomainName") 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. "DomainName") 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:"-"`}

func (ManagedZoneForwardingConfigNameServerTarget)MarshalJSON

typeManagedZoneOperationsGetCall

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

func (*ManagedZoneOperationsGetCall)ClientOperationId

func (c *ManagedZoneOperationsGetCall) ClientOperationId(clientOperationIdstring) *ManagedZoneOperationsGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ManagedZoneOperationsGetCall)Context

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

func (*ManagedZoneOperationsGetCall)Do

Do executes the "dns.managedZoneOperations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ManagedZoneOperationsGetCall)Fields

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

func (*ManagedZoneOperationsGetCall)Header

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

func (*ManagedZoneOperationsGetCall)IfNoneMatch

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.

typeManagedZoneOperationsListCall

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

func (*ManagedZoneOperationsListCall)Context

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

func (*ManagedZoneOperationsListCall)Do

Do executes the "dns.managedZoneOperations.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedZoneOperationsListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ManagedZoneOperationsListCall)Fields

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

func (*ManagedZoneOperationsListCall)Header

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

func (*ManagedZoneOperationsListCall)IfNoneMatch

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.

func (*ManagedZoneOperationsListCall)MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*ManagedZoneOperationsListCall)PageToken

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*ManagedZoneOperationsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

func (*ManagedZoneOperationsListCall)SortBy

SortBy sets the optional parameter "sortBy": Sorting criterion. The onlysupported values are START_TIME and ID.

Possible values:

"startTime" (default)"id"

typeManagedZoneOperationsListResponse

type ManagedZoneOperationsListResponse struct {// Kind: Type of resource.Kindstring `json:"kind,omitempty"`// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: The operation resources.Operations []*Operation `json:"operations,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ManagedZoneOperationsListResponse)MarshalJSON

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

typeManagedZoneOperationsService

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

funcNewManagedZoneOperationsService

func NewManagedZoneOperationsService(s *Service) *ManagedZoneOperationsService

func (*ManagedZoneOperationsService)Get

Get: Fetches the representation of an existing Operation.

  • managedZone: Identifies the managed zone addressed by this request.
  • operation: Identifies the operation addressed by this request (ID of theoperation).
  • project: Identifies the project addressed by this request.

func (*ManagedZoneOperationsService)List

List: Enumerates Operations for the given ManagedZone.

- managedZone: Identifies the managed zone addressed by this request.- project: Identifies the project addressed by this request.

typeManagedZonePeeringConfigadded inv0.3.1

type ManagedZonePeeringConfig struct {Kindstring `json:"kind,omitempty"`// TargetNetwork: The network with which to peer.TargetNetwork *ManagedZonePeeringConfigTargetNetwork `json:"targetNetwork,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ManagedZonePeeringConfig)MarshalJSONadded inv0.3.1

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

typeManagedZonePeeringConfigTargetNetworkadded inv0.3.1

type ManagedZonePeeringConfigTargetNetwork struct {// DeactivateTime: The time at which the zone was deactivated, inRFC 3339// date-time format. An empty string indicates that the peering connection is// active. The producer network can deactivate a zone. The zone is// automatically deactivated if the producer network that the zone targeted is// deleted. Output only.DeactivateTimestring `json:"deactivateTime,omitempty"`Kindstring `json:"kind,omitempty"`// NetworkUrl: The fully qualified URL of the VPC network to forward queries// to. This should be formatted like// `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{ne// twork}`NetworkUrlstring `json:"networkUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "DeactivateTime") 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. "DeactivateTime") 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:"-"`}

func (ManagedZonePeeringConfigTargetNetwork)MarshalJSONadded inv0.3.1

typeManagedZonePrivateVisibilityConfig

type ManagedZonePrivateVisibilityConfig struct {// GkeClusters: The list of Google Kubernetes Engine clusters that can see this// zone.GkeClusters []*ManagedZonePrivateVisibilityConfigGKECluster `json:"gkeClusters,omitempty"`Kindstring                                          `json:"kind,omitempty"`// Networks: The list of VPC networks that can see this zone.Networks []*ManagedZonePrivateVisibilityConfigNetwork `json:"networks,omitempty"`// ForceSendFields is a list of field names (e.g. "GkeClusters") 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. "GkeClusters") 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:"-"`}

func (ManagedZonePrivateVisibilityConfig)MarshalJSON

typeManagedZonePrivateVisibilityConfigGKEClusteradded inv0.46.0

type ManagedZonePrivateVisibilityConfigGKECluster struct {// GkeClusterName: The resource name of the cluster to bind this ManagedZone// to. This should be specified in the format like:// projects/*/locations/*/clusters/*. This is referenced from GKE// projects.locations.clusters.get API://https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/getGkeClusterNamestring `json:"gkeClusterName,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "GkeClusterName") 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. "GkeClusterName") 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:"-"`}

func (ManagedZonePrivateVisibilityConfigGKECluster)MarshalJSONadded inv0.46.0

typeManagedZonePrivateVisibilityConfigNetwork

type ManagedZonePrivateVisibilityConfigNetwork struct {Kindstring `json:"kind,omitempty"`// NetworkUrl: The fully qualified URL of the VPC network to bind to. Format// this URL like// `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{ne// twork}`NetworkUrlstring `json:"networkUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ManagedZonePrivateVisibilityConfigNetwork)MarshalJSON

typeManagedZoneReverseLookupConfigadded inv0.14.0

type ManagedZoneReverseLookupConfig struct {Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ManagedZoneReverseLookupConfig)MarshalJSONadded inv0.14.0

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

typeManagedZoneServiceDirectoryConfigadded inv0.26.0

type ManagedZoneServiceDirectoryConfig struct {Kindstring `json:"kind,omitempty"`// Namespace: Contains information about the namespace associated with the// zone.Namespace *ManagedZoneServiceDirectoryConfigNamespace `json:"namespace,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

ManagedZoneServiceDirectoryConfig: Contains information about ServiceDirectory-backed zones.

func (ManagedZoneServiceDirectoryConfig)MarshalJSONadded inv0.26.0

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

typeManagedZoneServiceDirectoryConfigNamespaceadded inv0.26.0

type ManagedZoneServiceDirectoryConfigNamespace struct {// DeletionTime: The time that the namespace backing this zone was deleted; an// empty string if it still exists. This is in RFC3339 text format. Output// only.DeletionTimestring `json:"deletionTime,omitempty"`Kindstring `json:"kind,omitempty"`// NamespaceUrl: The fully qualified URL of the namespace associated with the// zone. Format must be// `https://servicedirectory.googleapis.com/v1/projects/{project}/locations/{loc// ation}/namespaces/{namespace}`NamespaceUrlstring `json:"namespaceUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "DeletionTime") 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. "DeletionTime") 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:"-"`}

func (ManagedZoneServiceDirectoryConfigNamespace)MarshalJSONadded inv0.26.0

typeManagedZonesCreateCall

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

func (*ManagedZonesCreateCall)ClientOperationId

func (c *ManagedZonesCreateCall) ClientOperationId(clientOperationIdstring) *ManagedZonesCreateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ManagedZonesCreateCall)Context

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

func (*ManagedZonesCreateCall)Do

Do executes the "dns.managedZones.create" call.Any non-2xx status code is an error. Response headers are in either*ManagedZone.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 (*ManagedZonesCreateCall)Fields

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

func (*ManagedZonesCreateCall)Header

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

typeManagedZonesDeleteCall

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

func (*ManagedZonesDeleteCall)ClientOperationId

func (c *ManagedZonesDeleteCall) ClientOperationId(clientOperationIdstring) *ManagedZonesDeleteCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ManagedZonesDeleteCall)Context

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

func (*ManagedZonesDeleteCall)Do

Do executes the "dns.managedZones.delete" call.

func (*ManagedZonesDeleteCall)Fields

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

func (*ManagedZonesDeleteCall)Header

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

typeManagedZonesGetCall

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

func (*ManagedZonesGetCall)ClientOperationId

func (c *ManagedZonesGetCall) ClientOperationId(clientOperationIdstring) *ManagedZonesGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ManagedZonesGetCall)Context

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

func (*ManagedZonesGetCall)Do

Do executes the "dns.managedZones.get" call.Any non-2xx status code is an error. Response headers are in either*ManagedZone.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 (*ManagedZonesGetCall)Fields

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

func (*ManagedZonesGetCall)Header

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

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

func (*ManagedZonesGetCall)IfNoneMatch

func (c *ManagedZonesGetCall) IfNoneMatch(entityTagstring) *ManagedZonesGetCall

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.

typeManagedZonesGetIamPolicyCalladded inv0.80.0

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

func (*ManagedZonesGetIamPolicyCall)Contextadded inv0.80.0

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

func (*ManagedZonesGetIamPolicyCall)Doadded inv0.80.0

Do executes the "dns.managedZones.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*GoogleIamV1Policy.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ManagedZonesGetIamPolicyCall)Fieldsadded inv0.80.0

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

func (*ManagedZonesGetIamPolicyCall)Headeradded inv0.80.0

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

typeManagedZonesListCall

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

func (*ManagedZonesListCall)Context

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

func (*ManagedZonesListCall)DnsName

DnsName sets the optional parameter "dnsName": Restricts the list to returnonly zones with this domain name.

func (*ManagedZonesListCall)Do

Do executes the "dns.managedZones.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedZonesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ManagedZonesListCall)Fields

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

func (*ManagedZonesListCall)Header

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

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

func (*ManagedZonesListCall)IfNoneMatch

func (c *ManagedZonesListCall) IfNoneMatch(entityTagstring) *ManagedZonesListCall

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.

func (*ManagedZonesListCall)MaxResults

func (c *ManagedZonesListCall) MaxResults(maxResultsint64) *ManagedZonesListCall

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*ManagedZonesListCall)PageToken

func (c *ManagedZonesListCall) PageToken(pageTokenstring) *ManagedZonesListCall

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*ManagedZonesListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeManagedZonesListResponse

type ManagedZonesListResponse struct {// Kind: Type of resource.Kindstring `json:"kind,omitempty"`// ManagedZones: The managed zone resources.ManagedZones []*ManagedZone `json:"managedZones,omitempty"`// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ManagedZonesListResponse)MarshalJSON

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

typeManagedZonesPatchCall

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

func (*ManagedZonesPatchCall)ClientOperationId

func (c *ManagedZonesPatchCall) ClientOperationId(clientOperationIdstring) *ManagedZonesPatchCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ManagedZonesPatchCall)Context

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

func (*ManagedZonesPatchCall)Do

Do executes the "dns.managedZones.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ManagedZonesPatchCall)Fields

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

func (*ManagedZonesPatchCall)Header

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

typeManagedZonesService

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

funcNewManagedZonesService

func NewManagedZonesService(s *Service) *ManagedZonesService

func (*ManagedZonesService)Create

func (r *ManagedZonesService) Create(projectstring, managedzone *ManagedZone) *ManagedZonesCreateCall

Create: Creates a new ManagedZone.

- project: Identifies the project addressed by this request.

func (*ManagedZonesService)Delete

func (r *ManagedZonesService) Delete(projectstring, managedZonestring) *ManagedZonesDeleteCall

Delete: Deletes a previously created ManagedZone.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ManagedZonesService)Get

func (r *ManagedZonesService) Get(projectstring, managedZonestring) *ManagedZonesGetCall

Get: Fetches the representation of an existing ManagedZone.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ManagedZonesService)GetIamPolicyadded inv0.80.0

func (r *ManagedZonesService) GetIamPolicy(resourcestring, googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest) *ManagedZonesGetIamPolicyCall

GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.

func (*ManagedZonesService)List

List: Enumerates ManagedZones that have been created but not yet deleted.

- project: Identifies the project addressed by this request.

func (*ManagedZonesService)Patch

func (r *ManagedZonesService) Patch(projectstring, managedZonestring, managedzone *ManagedZone) *ManagedZonesPatchCall

Patch: Applies a partial update to an existing ManagedZone.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ManagedZonesService)SetIamPolicyadded inv0.80.0

func (r *ManagedZonesService) SetIamPolicy(resourcestring, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ManagedZonesSetIamPolicyCall

SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.

func (*ManagedZonesService)TestIamPermissionsadded inv0.80.0

func (r *ManagedZonesService) TestIamPermissions(resourcestring, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ManagedZonesTestIamPermissionsCall

TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this returns an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.

func (*ManagedZonesService)Update

func (r *ManagedZonesService) Update(projectstring, managedZonestring, managedzone *ManagedZone) *ManagedZonesUpdateCall

Update: Updates an existing ManagedZone.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

typeManagedZonesSetIamPolicyCalladded inv0.80.0

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

func (*ManagedZonesSetIamPolicyCall)Contextadded inv0.80.0

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

func (*ManagedZonesSetIamPolicyCall)Doadded inv0.80.0

Do executes the "dns.managedZones.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*GoogleIamV1Policy.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ManagedZonesSetIamPolicyCall)Fieldsadded inv0.80.0

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

func (*ManagedZonesSetIamPolicyCall)Headeradded inv0.80.0

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

typeManagedZonesTestIamPermissionsCalladded inv0.80.0

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

func (*ManagedZonesTestIamPermissionsCall)Contextadded inv0.80.0

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

func (*ManagedZonesTestIamPermissionsCall)Doadded inv0.80.0

Do executes the "dns.managedZones.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ManagedZonesTestIamPermissionsCall)Fieldsadded inv0.80.0

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

func (*ManagedZonesTestIamPermissionsCall)Headeradded inv0.80.0

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

typeManagedZonesUpdateCall

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

func (*ManagedZonesUpdateCall)ClientOperationId

func (c *ManagedZonesUpdateCall) ClientOperationId(clientOperationIdstring) *ManagedZonesUpdateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ManagedZonesUpdateCall)Context

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

func (*ManagedZonesUpdateCall)Do

Do executes the "dns.managedZones.update" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ManagedZonesUpdateCall)Fields

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

func (*ManagedZonesUpdateCall)Header

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

typeOperation

type Operation struct {// DnsKeyContext: Only populated if the operation targeted a DnsKey (output// only).DnsKeyContext *OperationDnsKeyContext `json:"dnsKeyContext,omitempty"`// Id: Unique identifier for the resource. This is the client_operation_id if// the client specified it when the mutation was initiated, otherwise, it is// generated by the server. The name must be 1-63 characters long and match the// regular expression [-a-z0-9]? (output only)Idstring `json:"id,omitempty"`Kindstring `json:"kind,omitempty"`// StartTime: The time that this operation was started by the server. This is// in RFC3339 text format (output only).StartTimestring `json:"startTime,omitempty"`// Status: Status of the operation. Can be one of the following: "PENDING" or// "DONE" (output only). A status of "DONE" means that the request to update// the authoritative servers has been sent, but the servers might not be// updated yet.//// Possible values://   "pending"//   "done"Statusstring `json:"status,omitempty"`// Type: Type of the operation. Operations include insert, update, and delete// (output only).Typestring `json:"type,omitempty"`// User: User who requested the operation, for example: user@example.com.// cloud-dns-system for operations automatically done by the system. (output// only)Userstring `json:"user,omitempty"`// ZoneContext: Only populated if the operation targeted a ManagedZone (output// only).ZoneContext *OperationManagedZoneContext `json:"zoneContext,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DnsKeyContext") 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. "DnsKeyContext") 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:"-"`}

Operation: An operation represents a successful mutation performed on aCloud DNS resource. Operations provide: - An audit log of server resourcemutations. - A way to recover/retry API calls in the case where the responseis never received by the caller. Use the caller specifiedclient_operation_id.

func (Operation)MarshalJSON

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

typeOperationDnsKeyContext

type OperationDnsKeyContext struct {// NewValue: The post-operation DnsKey resource.NewValue *DnsKey `json:"newValue,omitempty"`// OldValue: The pre-operation DnsKey resource.OldValue *DnsKey `json:"oldValue,omitempty"`// ForceSendFields is a list of field names (e.g. "NewValue") 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. "NewValue") 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:"-"`}

func (OperationDnsKeyContext)MarshalJSON

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

typeOperationManagedZoneContext

type OperationManagedZoneContext struct {// NewValue: The post-operation ManagedZone resource.NewValue *ManagedZone `json:"newValue,omitempty"`// OldValue: The pre-operation ManagedZone resource.OldValue *ManagedZone `json:"oldValue,omitempty"`// ForceSendFields is a list of field names (e.g. "NewValue") 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. "NewValue") 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:"-"`}

func (OperationManagedZoneContext)MarshalJSON

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

typePoliciesCreateCall

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

func (*PoliciesCreateCall)ClientOperationId

func (c *PoliciesCreateCall) ClientOperationId(clientOperationIdstring) *PoliciesCreateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*PoliciesCreateCall)Context

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

func (*PoliciesCreateCall)Do

Do executes the "dns.policies.create" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 (*PoliciesCreateCall)Fields

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

func (*PoliciesCreateCall)Header

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

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

typePoliciesDeleteCall

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

func (*PoliciesDeleteCall)ClientOperationId

func (c *PoliciesDeleteCall) ClientOperationId(clientOperationIdstring) *PoliciesDeleteCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*PoliciesDeleteCall)Context

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

func (*PoliciesDeleteCall)Do

Do executes the "dns.policies.delete" call.

func (*PoliciesDeleteCall)Fields

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

func (*PoliciesDeleteCall)Header

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

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

typePoliciesGetCall

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

func (*PoliciesGetCall)ClientOperationId

func (c *PoliciesGetCall) ClientOperationId(clientOperationIdstring) *PoliciesGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*PoliciesGetCall)Context

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

func (*PoliciesGetCall)Do

Do executes the "dns.policies.get" call.Any non-2xx status code is an error. Response headers are in either*Policy.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 (*PoliciesGetCall)Fields

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

func (*PoliciesGetCall)Header

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

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

func (*PoliciesGetCall)IfNoneMatch

func (c *PoliciesGetCall) IfNoneMatch(entityTagstring) *PoliciesGetCall

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.

typePoliciesListCall

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

func (*PoliciesListCall)Context

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

func (*PoliciesListCall)Do

Do executes the "dns.policies.list" call.Any non-2xx status code is an error. Response headers are in either*PoliciesListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PoliciesListCall)Fields

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

func (*PoliciesListCall)Header

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

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

func (*PoliciesListCall)IfNoneMatch

func (c *PoliciesListCall) IfNoneMatch(entityTagstring) *PoliciesListCall

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.

func (*PoliciesListCall)MaxResults

func (c *PoliciesListCall) MaxResults(maxResultsint64) *PoliciesListCall

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*PoliciesListCall)PageToken

func (c *PoliciesListCall) PageToken(pageTokenstring) *PoliciesListCall

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*PoliciesListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typePoliciesListResponse

type PoliciesListResponse struct {// Kind: Type of resource.Kindstring `json:"kind,omitempty"`// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// Policies: The policy resources.Policies []*Policy `json:"policies,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (PoliciesListResponse)MarshalJSON

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

typePoliciesPatchCall

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

func (*PoliciesPatchCall)ClientOperationId

func (c *PoliciesPatchCall) ClientOperationId(clientOperationIdstring) *PoliciesPatchCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*PoliciesPatchCall)Context

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

func (*PoliciesPatchCall)Do

Do executes the "dns.policies.patch" call.Any non-2xx status code is an error. Response headers are in either*PoliciesPatchResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PoliciesPatchCall)Fields

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

func (*PoliciesPatchCall)Header

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

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

typePoliciesPatchResponse

type PoliciesPatchResponse struct {Policy *Policy `json:"policy,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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:"-"`}

func (PoliciesPatchResponse)MarshalJSON

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

typePoliciesService

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

funcNewPoliciesService

func NewPoliciesService(s *Service) *PoliciesService

func (*PoliciesService)Create

func (r *PoliciesService) Create(projectstring, policy *Policy) *PoliciesCreateCall

Create: Creates a new policy.

- project: Identifies the project addressed by this request.

func (*PoliciesService)Delete

func (r *PoliciesService) Delete(projectstring, policystring) *PoliciesDeleteCall

Delete: Deletes a previously created policy. Fails if the policy is stillbeing referenced by a network.

- policy: User given friendly name of the policy addressed by this request.- project: Identifies the project addressed by this request.

func (*PoliciesService)Get

func (r *PoliciesService) Get(projectstring, policystring) *PoliciesGetCall

Get: Fetches the representation of an existing policy.

- policy: User given friendly name of the policy addressed by this request.- project: Identifies the project addressed by this request.

func (*PoliciesService)List

func (r *PoliciesService) List(projectstring) *PoliciesListCall

List: Enumerates all policies associated with a project.

- project: Identifies the project addressed by this request.

func (*PoliciesService)Patch

func (r *PoliciesService) Patch(projectstring, policystring, policy2 *Policy) *PoliciesPatchCall

Patch: Applies a partial update to an existing policy.

- policy: User given friendly name of the policy addressed by this request.- project: Identifies the project addressed by this request.

func (*PoliciesService)Update

func (r *PoliciesService) Update(projectstring, policystring, policy2 *Policy) *PoliciesUpdateCall

Update: Updates an existing policy.

- policy: User given friendly name of the policy addressed by this request.- project: Identifies the project addressed by this request.

typePoliciesUpdateCall

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

func (*PoliciesUpdateCall)ClientOperationId

func (c *PoliciesUpdateCall) ClientOperationId(clientOperationIdstring) *PoliciesUpdateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*PoliciesUpdateCall)Context

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

func (*PoliciesUpdateCall)Do

Do executes the "dns.policies.update" call.Any non-2xx status code is an error. Response headers are in either*PoliciesUpdateResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PoliciesUpdateCall)Fields

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

func (*PoliciesUpdateCall)Header

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

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

typePoliciesUpdateResponse

type PoliciesUpdateResponse struct {Policy *Policy `json:"policy,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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:"-"`}

func (PoliciesUpdateResponse)MarshalJSON

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

typePolicy

type Policy struct {// AlternativeNameServerConfig: Sets an alternative name server for the// associated networks. When specified, all DNS queries are forwarded to a name// server that you choose. Names such as .internal are not available when an// alternative name server is specified.AlternativeNameServerConfig *PolicyAlternativeNameServerConfig `json:"alternativeNameServerConfig,omitempty"`// Description: A mutable string of at most 1024 characters associated with// this resource for the user's convenience. Has no effect on the policy's// function.Descriptionstring `json:"description,omitempty"`// Dns64Config: Configurations related to DNS64 for this policy.Dns64Config *PolicyDns64Config `json:"dns64Config,omitempty"`// EnableInboundForwarding: Allows networks bound to this policy to receive DNS// queries sent by VMs or applications over VPN connections. When enabled, a// virtual IP address is allocated from each of the subnetworks that are bound// to this policy.EnableInboundForwardingbool `json:"enableInboundForwarding,omitempty"`// EnableLogging: Controls whether logging is enabled for the networks bound to// this policy. Defaults to no logging if not set.EnableLoggingbool `json:"enableLogging,omitempty"`// Id: Unique identifier for the resource; defined by the server (output only).Iduint64 `json:"id,omitempty,string"`Kindstring `json:"kind,omitempty"`// Name: User-assigned name for this policy.Namestring `json:"name,omitempty"`// Networks: List of network names specifying networks to which this policy is// applied.Networks []*PolicyNetwork `json:"networks,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "AlternativeNameServerConfig") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AlternativeNameServerConfig") 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:"-"`}

Policy: A policy is a collection of DNS rules applied to one or more VirtualPrivate Cloud resources.

func (Policy)MarshalJSON

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

typePolicyAlternativeNameServerConfig

type PolicyAlternativeNameServerConfig struct {Kindstring `json:"kind,omitempty"`// TargetNameServers: Sets an alternative name server for the associated// networks. When specified, all DNS queries are forwarded to a name server// that you choose. Names such as .internal are not available when an// alternative name server is specified.TargetNameServers []*PolicyAlternativeNameServerConfigTargetNameServer `json:"targetNameServers,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (PolicyAlternativeNameServerConfig)MarshalJSON

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

typePolicyAlternativeNameServerConfigTargetNameServer

type PolicyAlternativeNameServerConfigTargetNameServer struct {// ForwardingPath: Forwarding path for this TargetNameServer. If unset or set// to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges;// that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go// to the internet. When set to PRIVATE, Cloud DNS always sends queries through// the VPC network for this target.//// Possible values://   "default" - Cloud DNS makes forwarding decision based on IP address// ranges; that is, RFC1918 addresses forward to the target through the VPC and// non-RFC1918 addresses forward to the target through the internet//   "private" - Cloud DNS always forwards to this target through the VPC.ForwardingPathstring `json:"forwardingPath,omitempty"`// Ipv4Address: IPv4 address to forward queries to.Ipv4Addressstring `json:"ipv4Address,omitempty"`// Ipv6Address: IPv6 address to forward to. Does not accept both fields (ipv4 &// ipv6) being populated. Public preview as of November 2022.Ipv6Addressstring `json:"ipv6Address,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "ForwardingPath") 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. "ForwardingPath") 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:"-"`}

func (PolicyAlternativeNameServerConfigTargetNameServer)MarshalJSON

typePolicyDns64Configadded inv0.216.0

type PolicyDns64Config struct {Kindstring `json:"kind,omitempty"`// Scope: The scope to which DNS64 config will be applied to.Scope *PolicyDns64ConfigScope `json:"scope,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

PolicyDns64Config: DNS64 policies

func (PolicyDns64Config)MarshalJSONadded inv0.216.0

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

typePolicyDns64ConfigScopeadded inv0.216.0

type PolicyDns64ConfigScope struct {// AllQueries: Controls whether DNS64 is enabled globally for all networks// bound to the policy.AllQueriesbool   `json:"allQueries,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "AllQueries") 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. "AllQueries") 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:"-"`}

func (PolicyDns64ConfigScope)MarshalJSONadded inv0.216.0

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

typePolicyNetwork

type PolicyNetwork struct {Kindstring `json:"kind,omitempty"`// NetworkUrl: The fully qualified URL of the VPC network to bind to. This// should be formatted like//https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}NetworkUrlstring `json:"networkUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (PolicyNetwork)MarshalJSON

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

typeProject

type Project struct {// Id: User assigned unique identifier for the resource (output only).Idstring `json:"id,omitempty"`Kindstring `json:"kind,omitempty"`// Number: Unique numeric identifier for the resource; defined by the server// (output only).Numberuint64 `json:"number,omitempty,string"`// Quota: Quotas assigned to this project (output only).Quota *Quota `json:"quota,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 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. "Id") 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:"-"`}

Project: A project resource. The project is a top level container forresources including Cloud DNS ManagedZones. Projects can be created only inthe APIs console.

func (Project)MarshalJSON

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

typeProjectsGetCall

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

func (*ProjectsGetCall)ClientOperationId

func (c *ProjectsGetCall) ClientOperationId(clientOperationIdstring) *ProjectsGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ProjectsGetCall)Context

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

func (*ProjectsGetCall)Do

Do executes the "dns.projects.get" call.Any non-2xx status code is an error. Response headers are in either*Project.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 (*ProjectsGetCall)Fields

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

func (*ProjectsGetCall)Header

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

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

func (*ProjectsGetCall)IfNoneMatch

func (c *ProjectsGetCall) IfNoneMatch(entityTagstring) *ProjectsGetCall

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.

typeProjectsService

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

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService)Get

func (r *ProjectsService) Get(projectstring) *ProjectsGetCall

Get: Fetches the representation of an existing Project.

- project: Identifies the project addressed by this request.

typeQuota

type Quota struct {// DnsKeysPerManagedZone: Maximum allowed number of DnsKeys per ManagedZone.DnsKeysPerManagedZoneint64 `json:"dnsKeysPerManagedZone,omitempty"`// GkeClustersPerManagedZone: Maximum allowed number of GKE clusters to which a// privately scoped zone can be attached.GkeClustersPerManagedZoneint64 `json:"gkeClustersPerManagedZone,omitempty"`// GkeClustersPerPolicy: Maximum allowed number of GKE clusters per policy.GkeClustersPerPolicyint64 `json:"gkeClustersPerPolicy,omitempty"`// GkeClustersPerResponsePolicy: Maximum allowed number of GKE clusters per// response policy.GkeClustersPerResponsePolicyint64 `json:"gkeClustersPerResponsePolicy,omitempty"`InternetHealthChecksPerManagedZoneint64 `json:"internetHealthChecksPerManagedZone,omitempty"`// ItemsPerRoutingPolicy: Maximum allowed number of items per routing policy.ItemsPerRoutingPolicyint64  `json:"itemsPerRoutingPolicy,omitempty"`Kindstring `json:"kind,omitempty"`// ManagedZones: Maximum allowed number of managed zones in the project.ManagedZonesint64 `json:"managedZones,omitempty"`// ManagedZonesPerGkeCluster: Maximum allowed number of managed zones which can// be attached to a GKE cluster.ManagedZonesPerGkeClusterint64 `json:"managedZonesPerGkeCluster,omitempty"`// ManagedZonesPerNetwork: Maximum allowed number of managed zones which can be// attached to a network.ManagedZonesPerNetworkint64 `json:"managedZonesPerNetwork,omitempty"`// NameserversPerDelegation: Maximum number of nameservers per delegation,// meant to prevent abuseNameserversPerDelegationint64 `json:"nameserversPerDelegation,omitempty"`// NetworksPerManagedZone: Maximum allowed number of networks to which a// privately scoped zone can be attached.NetworksPerManagedZoneint64 `json:"networksPerManagedZone,omitempty"`// NetworksPerPolicy: Maximum allowed number of networks per policy.NetworksPerPolicyint64 `json:"networksPerPolicy,omitempty"`// NetworksPerResponsePolicy: Maximum allowed number of networks per response// policy.NetworksPerResponsePolicyint64 `json:"networksPerResponsePolicy,omitempty"`// PeeringZonesPerTargetNetwork: Maximum allowed number of consumer peering// zones per target network owned by this producer projectPeeringZonesPerTargetNetworkint64 `json:"peeringZonesPerTargetNetwork,omitempty"`// Policies: Maximum allowed number of policies per project.Policiesint64 `json:"policies,omitempty"`// ResourceRecordsPerRrset: Maximum allowed number of ResourceRecords per// ResourceRecordSet.ResourceRecordsPerRrsetint64 `json:"resourceRecordsPerRrset,omitempty"`// ResponsePolicies: Maximum allowed number of response policies per project.ResponsePoliciesint64 `json:"responsePolicies,omitempty"`// ResponsePolicyRulesPerResponsePolicy: Maximum allowed number of rules per// response policy.ResponsePolicyRulesPerResponsePolicyint64 `json:"responsePolicyRulesPerResponsePolicy,omitempty"`// RrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets to add// per ChangesCreateRequest.RrsetAdditionsPerChangeint64 `json:"rrsetAdditionsPerChange,omitempty"`// RrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets to// delete per ChangesCreateRequest.RrsetDeletionsPerChangeint64 `json:"rrsetDeletionsPerChange,omitempty"`// RrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets per zone// in the project.RrsetsPerManagedZoneint64 `json:"rrsetsPerManagedZone,omitempty"`// TargetNameServersPerManagedZone: Maximum allowed number of target name// servers per managed forwarding zone.TargetNameServersPerManagedZoneint64 `json:"targetNameServersPerManagedZone,omitempty"`// TargetNameServersPerPolicy: Maximum allowed number of alternative target// name servers per policy.TargetNameServersPerPolicyint64 `json:"targetNameServersPerPolicy,omitempty"`// TotalRrdataSizePerChange: Maximum allowed size for total rrdata in one// ChangesCreateRequest in bytes.TotalRrdataSizePerChangeint64 `json:"totalRrdataSizePerChange,omitempty"`// WhitelistedKeySpecs: DNSSEC algorithm and key length types that can be used// for DnsKeys.WhitelistedKeySpecs []*DnsKeySpec `json:"whitelistedKeySpecs,omitempty"`// ForceSendFields is a list of field names (e.g. "DnsKeysPerManagedZone") 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. "DnsKeysPerManagedZone") 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:"-"`}

Quota: Limits associated with a Project.

func (Quota)MarshalJSON

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

typeRRSetRoutingPolicyadded inv0.34.0

type RRSetRoutingPolicy struct {Geo       *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"`GeoPolicy *RRSetRoutingPolicyGeoPolicy `json:"geoPolicy,omitempty"`// HealthCheck: The fully qualified URL of the HealthCheck to use for this// RRSetRoutingPolicy. Format this URL like// `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks// /{healthCheck}`.//https://cloud.google.com/compute/docs/reference/rest/v1/healthChecksHealthCheckstring                                 `json:"healthCheck,omitempty"`Kindstring                                 `json:"kind,omitempty"`PrimaryBackup *RRSetRoutingPolicyPrimaryBackupPolicy `json:"primaryBackup,omitempty"`Wrr           *RRSetRoutingPolicyWrrPolicy           `json:"wrr,omitempty"`WrrPolicy     *RRSetRoutingPolicyWrrPolicy           `json:"wrrPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "Geo") 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. "Geo") 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:"-"`}

RRSetRoutingPolicy: A RRSetRoutingPolicy represents ResourceRecordSet datathat is returned dynamically with the response varying based on configuredproperties such as geolocation or by weighted random selection.

func (RRSetRoutingPolicy)MarshalJSONadded inv0.34.0

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

typeRRSetRoutingPolicyGeoPolicyadded inv0.34.0

type RRSetRoutingPolicyGeoPolicy struct {// EnableFencing: Without fencing, if health check fails for all configured// items in the current geo bucket, we failover to the next nearest geo bucket.// With fencing, if health checking is enabled, as long as some targets in the// current geo bucket are healthy, we return only the healthy targets. However,// if all targets are unhealthy, we don't failover to the next nearest bucket;// instead, we return all the items in the current bucket even when all targets// are unhealthy.EnableFencingbool `json:"enableFencing,omitempty"`// Items: The primary geo routing configuration. If there are multiple items// with the same location, an error is returned instead.Items []*RRSetRoutingPolicyGeoPolicyGeoPolicyItem `json:"items,omitempty"`Kindstring                                      `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableFencing") 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. "EnableFencing") 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:"-"`}

RRSetRoutingPolicyGeoPolicy: Configures a `RRSetRoutingPolicy` that routesbased on the geo location of the querying user.

func (RRSetRoutingPolicyGeoPolicy)MarshalJSONadded inv0.34.0

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

typeRRSetRoutingPolicyGeoPolicyGeoPolicyItemadded inv0.34.0

type RRSetRoutingPolicyGeoPolicyGeoPolicyItem struct {// HealthCheckedTargets: For A and AAAA types only. Endpoints to return in the// query result only if they are healthy. These can be specified along with// `rrdata` within this item.HealthCheckedTargets *RRSetRoutingPolicyHealthCheckTargets `json:"healthCheckedTargets,omitempty"`Kindstring                                `json:"kind,omitempty"`// Location: The geo-location granularity is a GCP region. This location string// should correspond to a GCP region. e.g. "us-east1", "southamerica-east1",// "asia-east1", etc.Locationstring   `json:"location,omitempty"`Rrdatas  []string `json:"rrdatas,omitempty"`// SignatureRrdatas: DNSSEC generated signatures for all the `rrdata` within// this item. When using health-checked targets for DNSSEC-enabled zones, you// can only use at most one health-checked IP address per item.SignatureRrdatas []string `json:"signatureRrdatas,omitempty"`// ForceSendFields is a list of field names (e.g. "HealthCheckedTargets") 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. "HealthCheckedTargets") 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:"-"`}

RRSetRoutingPolicyGeoPolicyGeoPolicyItem: ResourceRecordSet data for one geolocation.

func (RRSetRoutingPolicyGeoPolicyGeoPolicyItem)MarshalJSONadded inv0.34.0

typeRRSetRoutingPolicyHealthCheckTargetsadded inv0.92.0

type RRSetRoutingPolicyHealthCheckTargets struct {// ExternalEndpoints: The Internet IP addresses to be health checked. The// format matches the format of ResourceRecordSet.rrdata as defined inRFC 1035// (section 5) andRFC 1034 (section 3.6.1)ExternalEndpoints []string `json:"externalEndpoints,omitempty"`// InternalLoadBalancers: Configuration for internal load balancers to be// health checked.InternalLoadBalancers []*RRSetRoutingPolicyLoadBalancerTarget `json:"internalLoadBalancers,omitempty"`// ForceSendFields is a list of field names (e.g. "ExternalEndpoints") 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. "ExternalEndpoints") 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:"-"`}

RRSetRoutingPolicyHealthCheckTargets: HealthCheckTargets describes endpointsto health-check when responding to Routing Policy queries. Only the healthyendpoints will be included in the response. Set either`internal_load_balancer` or `external_endpoints`. Do not set both.

func (RRSetRoutingPolicyHealthCheckTargets)MarshalJSONadded inv0.92.0

typeRRSetRoutingPolicyLoadBalancerTargetadded inv0.92.0

type RRSetRoutingPolicyLoadBalancerTarget struct {// IpAddress: The frontend IP address of the load balancer to health check.IpAddressstring `json:"ipAddress,omitempty"`// IpProtocol: The protocol of the load balancer to health check.//// Possible values://   "undefined"//   "tcp" - Indicates the load balancer is accessible via TCP.//   "udp" - Indicates the load balancer is accessible via UDP.IpProtocolstring `json:"ipProtocol,omitempty"`Kindstring `json:"kind,omitempty"`// LoadBalancerType: The type of load balancer specified by this target. This// value must match the configuration of the load balancer located at the// LoadBalancerTarget's IP address, port, and region. Use the following: -// *regionalL4ilb*: for a regional internal passthrough Network Load Balancer.// - *regionalL7ilb*: for a regional internal Application Load Balancer. -// *globalL7ilb*: for a global internal Application Load Balancer.//// Possible values://   "none"//   "globalL7ilb" - Indicates the load balancer is a Cross-Region Application// Load Balancer.//   "regionalL4ilb" - Indicates the load balancer is a Regional Network// Passthrough Load Balancer.//   "regionalL7ilb" - Indicates the load balancer is a Regional Application// Load Balancer.LoadBalancerTypestring `json:"loadBalancerType,omitempty"`// NetworkUrl: The fully qualified URL of the network that the load balancer is// attached to. This should be formatted like// `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{ne// twork}`.NetworkUrlstring `json:"networkUrl,omitempty"`// Port: The configured port of the load balancer.Portstring `json:"port,omitempty"`// Project: The project ID in which the load balancer is located.Projectstring `json:"project,omitempty"`// Region: The region in which the load balancer is located.Regionstring `json:"region,omitempty"`// ForceSendFields is a list of field names (e.g. "IpAddress") 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. "IpAddress") 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:"-"`}

RRSetRoutingPolicyLoadBalancerTarget: The configuration for an individualload balancer to health check.

func (RRSetRoutingPolicyLoadBalancerTarget)MarshalJSONadded inv0.92.0

typeRRSetRoutingPolicyPrimaryBackupPolicyadded inv0.92.0

type RRSetRoutingPolicyPrimaryBackupPolicy struct {// BackupGeoTargets: Backup targets provide a regional failover policy for the// otherwise global primary targets. If serving state is set to `BACKUP`, this// policy essentially becomes a geo routing policy.BackupGeoTargets *RRSetRoutingPolicyGeoPolicy `json:"backupGeoTargets,omitempty"`Kindstring                       `json:"kind,omitempty"`// PrimaryTargets: Endpoints that are health checked before making the routing// decision. Unhealthy endpoints are omitted from the results. If all endpoints// are unhealthy, we serve a response based on the `backup_geo_targets`.PrimaryTargets *RRSetRoutingPolicyHealthCheckTargets `json:"primaryTargets,omitempty"`// TrickleTraffic: When serving state is `PRIMARY`, this field provides the// option of sending a small percentage of the traffic to the backup targets.TrickleTrafficfloat64 `json:"trickleTraffic,omitempty"`// ForceSendFields is a list of field names (e.g. "BackupGeoTargets") 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. "BackupGeoTargets") 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:"-"`}

RRSetRoutingPolicyPrimaryBackupPolicy: Configures a RRSetRoutingPolicy suchthat all queries are responded with the primary_targets if they are healthy.And if all of them are unhealthy, then we fallback to a geo localizedpolicy.

func (RRSetRoutingPolicyPrimaryBackupPolicy)MarshalJSONadded inv0.92.0

func (*RRSetRoutingPolicyPrimaryBackupPolicy)UnmarshalJSONadded inv0.92.0

func (s *RRSetRoutingPolicyPrimaryBackupPolicy) UnmarshalJSON(data []byte)error

typeRRSetRoutingPolicyWrrPolicyadded inv0.34.0

type RRSetRoutingPolicyWrrPolicy struct {Items []*RRSetRoutingPolicyWrrPolicyWrrPolicyItem `json:"items,omitempty"`Kindstring                                      `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`}

RRSetRoutingPolicyWrrPolicy: Configures a RRSetRoutingPolicy that routes ina weighted round robin fashion.

func (RRSetRoutingPolicyWrrPolicy)MarshalJSONadded inv0.34.0

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

typeRRSetRoutingPolicyWrrPolicyWrrPolicyItemadded inv0.34.0

type RRSetRoutingPolicyWrrPolicyWrrPolicyItem struct {// HealthCheckedTargets: Endpoints that are health checked before making the// routing decision. The unhealthy endpoints are omitted from the result. If// all endpoints within a bucket are unhealthy, we choose a different bucket// (sampled with respect to its weight) for responding. If DNSSEC is enabled// for this zone, only one of `rrdata` or `health_checked_targets` can be set.HealthCheckedTargets *RRSetRoutingPolicyHealthCheckTargets `json:"healthCheckedTargets,omitempty"`Kindstring                                `json:"kind,omitempty"`Rrdatas              []string                              `json:"rrdatas,omitempty"`// SignatureRrdatas: DNSSEC generated signatures for all the `rrdata` within// this item. When using health-checked targets for DNSSEC-enabled zones, you// can only use at most one health-checked IP address per item.SignatureRrdatas []string `json:"signatureRrdatas,omitempty"`// Weight: The weight corresponding to this `WrrPolicyItem` object. When// multiple `WrrPolicyItem` objects are configured, the probability of// returning an `WrrPolicyItem` object's data is proportional to its weight// relative to the sum of weights configured for all items. This weight must be// non-negative.Weightfloat64 `json:"weight,omitempty"`// ForceSendFields is a list of field names (e.g. "HealthCheckedTargets") 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. "HealthCheckedTargets") 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:"-"`}

RRSetRoutingPolicyWrrPolicyWrrPolicyItem: A routing block which contains therouting information for one WRR item.

func (RRSetRoutingPolicyWrrPolicyWrrPolicyItem)MarshalJSONadded inv0.34.0

func (*RRSetRoutingPolicyWrrPolicyWrrPolicyItem)UnmarshalJSONadded inv0.34.0

func (s *RRSetRoutingPolicyWrrPolicyWrrPolicyItem) UnmarshalJSON(data []byte)error

typeResourceRecordSet

type ResourceRecordSet struct {Kindstring `json:"kind,omitempty"`// Name: For example, www.example.com.Namestring `json:"name,omitempty"`// RoutingPolicy: Configures dynamic query responses based on either the geo// location of the querying user or a weighted round robin based routing// policy. A valid `ResourceRecordSet` contains only `rrdata` (for static// resolution) or a `routing_policy` (for dynamic resolution).RoutingPolicy *RRSetRoutingPolicy `json:"routingPolicy,omitempty"`// Rrdatas: As defined inRFC 1035 (section 5) andRFC 1034 (section 3.6.1) --// see examples.Rrdatas []string `json:"rrdatas,omitempty"`// SignatureRrdatas: As defined inRFC 4034 (section 3.2).SignatureRrdatas []string `json:"signatureRrdatas,omitempty"`// Ttl: Number of seconds that this `ResourceRecordSet` can be cached by// resolvers.Ttlint64 `json:"ttl,omitempty"`// Type: The identifier of a supported record type. See the list of Supported// DNS record types.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

ResourceRecordSet: A unit of data that is returned by the DNS servers.

func (ResourceRecordSet)MarshalJSON

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

typeResourceRecordSetsCreateCalladded inv0.51.0

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

func (*ResourceRecordSetsCreateCall)ClientOperationIdadded inv0.51.0

func (c *ResourceRecordSetsCreateCall) ClientOperationId(clientOperationIdstring) *ResourceRecordSetsCreateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResourceRecordSetsCreateCall)Contextadded inv0.51.0

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

func (*ResourceRecordSetsCreateCall)Doadded inv0.51.0

Do executes the "dns.resourceRecordSets.create" call.Any non-2xx status code is an error. Response headers are in either*ResourceRecordSet.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ResourceRecordSetsCreateCall)Fieldsadded inv0.51.0

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

func (*ResourceRecordSetsCreateCall)Headeradded inv0.51.0

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

typeResourceRecordSetsDeleteCalladded inv0.51.0

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

func (*ResourceRecordSetsDeleteCall)ClientOperationIdadded inv0.51.0

func (c *ResourceRecordSetsDeleteCall) ClientOperationId(clientOperationIdstring) *ResourceRecordSetsDeleteCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResourceRecordSetsDeleteCall)Contextadded inv0.51.0

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

func (*ResourceRecordSetsDeleteCall)Doadded inv0.51.0

Do executes the "dns.resourceRecordSets.delete" call.

func (*ResourceRecordSetsDeleteCall)Fieldsadded inv0.51.0

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

func (*ResourceRecordSetsDeleteCall)Headeradded inv0.51.0

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

typeResourceRecordSetsGetCalladded inv0.51.0

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

func (*ResourceRecordSetsGetCall)ClientOperationIdadded inv0.51.0

func (c *ResourceRecordSetsGetCall) ClientOperationId(clientOperationIdstring) *ResourceRecordSetsGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResourceRecordSetsGetCall)Contextadded inv0.51.0

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

func (*ResourceRecordSetsGetCall)Doadded inv0.51.0

Do executes the "dns.resourceRecordSets.get" call.Any non-2xx status code is an error. Response headers are in either*ResourceRecordSet.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ResourceRecordSetsGetCall)Fieldsadded inv0.51.0

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

func (*ResourceRecordSetsGetCall)Headeradded inv0.51.0

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

func (*ResourceRecordSetsGetCall)IfNoneMatchadded inv0.51.0

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.

typeResourceRecordSetsListCall

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

func (*ResourceRecordSetsListCall)Context

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

func (*ResourceRecordSetsListCall)Do

Do executes the "dns.resourceRecordSets.list" call.Any non-2xx status code is an error. Response headers are in either*ResourceRecordSetsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResourceRecordSetsListCall)Fields

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

func (*ResourceRecordSetsListCall)Header

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

func (*ResourceRecordSetsListCall)IfNoneMatch

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.

func (*ResourceRecordSetsListCall)MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*ResourceRecordSetsListCall)Name

Name sets the optional parameter "name": Restricts the list to return onlyrecords with this fully qualified domain name. Mutually exclusive with the{@code filter} field.

func (*ResourceRecordSetsListCall)PageToken

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*ResourceRecordSetsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

func (*ResourceRecordSetsListCall)Type

Type sets the optional parameter "type": Restricts the list to return onlyrecords of this type. If present, the "name" parameter must also be present.Mutually exclusive with the {@code filter} field.

typeResourceRecordSetsListResponse

type ResourceRecordSetsListResponse struct {// Kind: Type of resource.Kindstring `json:"kind,omitempty"`// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// Rrsets: The resource record set resources.Rrsets []*ResourceRecordSet `json:"rrsets,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ResourceRecordSetsListResponse)MarshalJSON

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

typeResourceRecordSetsPatchCalladded inv0.51.0

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

func (*ResourceRecordSetsPatchCall)ClientOperationIdadded inv0.51.0

func (c *ResourceRecordSetsPatchCall) ClientOperationId(clientOperationIdstring) *ResourceRecordSetsPatchCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResourceRecordSetsPatchCall)Contextadded inv0.51.0

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

func (*ResourceRecordSetsPatchCall)Doadded inv0.51.0

Do executes the "dns.resourceRecordSets.patch" call.Any non-2xx status code is an error. Response headers are in either*ResourceRecordSet.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ResourceRecordSetsPatchCall)Fieldsadded inv0.51.0

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

func (*ResourceRecordSetsPatchCall)Headeradded inv0.51.0

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

typeResourceRecordSetsService

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

funcNewResourceRecordSetsService

func NewResourceRecordSetsService(s *Service) *ResourceRecordSetsService

func (*ResourceRecordSetsService)Createadded inv0.51.0

func (r *ResourceRecordSetsService) Create(projectstring, managedZonestring, resourcerecordset *ResourceRecordSet) *ResourceRecordSetsCreateCall

Create: Creates a new ResourceRecordSet.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ResourceRecordSetsService)Deleteadded inv0.51.0

func (r *ResourceRecordSetsService) Delete(projectstring, managedZonestring, namestring, type_string) *ResourceRecordSetsDeleteCall

Delete: Deletes a previously created ResourceRecordSet.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • name: Fully qualified domain name.
  • project: Identifies the project addressed by this request.
  • type: RRSet type.

func (*ResourceRecordSetsService)Getadded inv0.51.0

func (r *ResourceRecordSetsService) Get(projectstring, managedZonestring, namestring, type_string) *ResourceRecordSetsGetCall

Get: Fetches the representation of an existing ResourceRecordSet.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • name: Fully qualified domain name.
  • project: Identifies the project addressed by this request.
  • type: RRSet type.

func (*ResourceRecordSetsService)List

List: Enumerates ResourceRecordSets that you have created but not yetdeleted.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • project: Identifies the project addressed by this request.

func (*ResourceRecordSetsService)Patchadded inv0.51.0

func (r *ResourceRecordSetsService) Patch(projectstring, managedZonestring, namestring, type_string, resourcerecordset *ResourceRecordSet) *ResourceRecordSetsPatchCall

Patch: Applies a partial update to an existing ResourceRecordSet.

  • managedZone: Identifies the managed zone addressed by this request. Can bethe managed zone name or ID.
  • name: Fully qualified domain name.
  • project: Identifies the project addressed by this request.
  • type: RRSet type.

typeResponsePoliciesCreateCalladded inv0.38.0

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

func (*ResponsePoliciesCreateCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePoliciesCreateCall) ClientOperationId(clientOperationIdstring) *ResponsePoliciesCreateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePoliciesCreateCall)Contextadded inv0.38.0

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

func (*ResponsePoliciesCreateCall)Doadded inv0.38.0

Do executes the "dns.responsePolicies.create" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicy.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 (*ResponsePoliciesCreateCall)Fieldsadded inv0.38.0

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

func (*ResponsePoliciesCreateCall)Headeradded inv0.38.0

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

typeResponsePoliciesDeleteCalladded inv0.38.0

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

func (*ResponsePoliciesDeleteCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePoliciesDeleteCall) ClientOperationId(clientOperationIdstring) *ResponsePoliciesDeleteCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePoliciesDeleteCall)Contextadded inv0.38.0

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

func (*ResponsePoliciesDeleteCall)Doadded inv0.38.0

Do executes the "dns.responsePolicies.delete" call.

func (*ResponsePoliciesDeleteCall)Fieldsadded inv0.38.0

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

func (*ResponsePoliciesDeleteCall)Headeradded inv0.38.0

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

typeResponsePoliciesGetCalladded inv0.38.0

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

func (*ResponsePoliciesGetCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePoliciesGetCall) ClientOperationId(clientOperationIdstring) *ResponsePoliciesGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePoliciesGetCall)Contextadded inv0.38.0

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

func (*ResponsePoliciesGetCall)Doadded inv0.38.0

Do executes the "dns.responsePolicies.get" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicy.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 (*ResponsePoliciesGetCall)Fieldsadded inv0.38.0

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

func (*ResponsePoliciesGetCall)Headeradded inv0.38.0

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

func (*ResponsePoliciesGetCall)IfNoneMatchadded inv0.38.0

func (c *ResponsePoliciesGetCall) IfNoneMatch(entityTagstring) *ResponsePoliciesGetCall

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.

typeResponsePoliciesListCalladded inv0.38.0

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

func (*ResponsePoliciesListCall)Contextadded inv0.38.0

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

func (*ResponsePoliciesListCall)Doadded inv0.38.0

Do executes the "dns.responsePolicies.list" call.Any non-2xx status code is an error. Response headers are in either*ResponsePoliciesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResponsePoliciesListCall)Fieldsadded inv0.38.0

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

func (*ResponsePoliciesListCall)Headeradded inv0.38.0

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

func (*ResponsePoliciesListCall)IfNoneMatchadded inv0.38.0

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.

func (*ResponsePoliciesListCall)MaxResultsadded inv0.38.0

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*ResponsePoliciesListCall)PageTokenadded inv0.38.0

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*ResponsePoliciesListCall)Pagesadded inv0.38.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeResponsePoliciesListResponseadded inv0.38.0

type ResponsePoliciesListResponse struct {// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// ResponsePolicies: The Response Policy resources.ResponsePolicies []*ResponsePolicy `json:"responsePolicies,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`}

func (ResponsePoliciesListResponse)MarshalJSONadded inv0.38.0

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

typeResponsePoliciesPatchCalladded inv0.38.0

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

func (*ResponsePoliciesPatchCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePoliciesPatchCall) ClientOperationId(clientOperationIdstring) *ResponsePoliciesPatchCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePoliciesPatchCall)Contextadded inv0.38.0

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

func (*ResponsePoliciesPatchCall)Doadded inv0.38.0

Do executes the "dns.responsePolicies.patch" call.Any non-2xx status code is an error. Response headers are in either*ResponsePoliciesPatchResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResponsePoliciesPatchCall)Fieldsadded inv0.38.0

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

func (*ResponsePoliciesPatchCall)Headeradded inv0.38.0

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

typeResponsePoliciesPatchResponseadded inv0.38.0

type ResponsePoliciesPatchResponse struct {ResponsePolicy *ResponsePolicy `json:"responsePolicy,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponsePolicy") 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. "ResponsePolicy") 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:"-"`}

func (ResponsePoliciesPatchResponse)MarshalJSONadded inv0.38.0

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

typeResponsePoliciesServiceadded inv0.38.0

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

funcNewResponsePoliciesServiceadded inv0.38.0

func NewResponsePoliciesService(s *Service) *ResponsePoliciesService

func (*ResponsePoliciesService)Createadded inv0.38.0

func (r *ResponsePoliciesService) Create(projectstring, responsepolicy *ResponsePolicy) *ResponsePoliciesCreateCall

Create: Creates a new Response Policy

- project: Identifies the project addressed by this request.

func (*ResponsePoliciesService)Deleteadded inv0.38.0

func (r *ResponsePoliciesService) Delete(projectstring, responsePolicystring) *ResponsePoliciesDeleteCall

Delete: Deletes a previously created Response Policy. Fails if the responsepolicy is non-empty or still being referenced by a network.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy addressed bythis request.

func (*ResponsePoliciesService)Getadded inv0.38.0

func (r *ResponsePoliciesService) Get(projectstring, responsePolicystring) *ResponsePoliciesGetCall

Get: Fetches the representation of an existing Response Policy.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy addressed bythis request.

func (*ResponsePoliciesService)Listadded inv0.38.0

List: Enumerates all Response Policies associated with a project.

- project: Identifies the project addressed by this request.

func (*ResponsePoliciesService)Patchadded inv0.38.0

func (r *ResponsePoliciesService) Patch(projectstring, responsePolicystring, responsepolicy *ResponsePolicy) *ResponsePoliciesPatchCall

Patch: Applies a partial update to an existing Response Policy.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the response policy addressed bythis request.

func (*ResponsePoliciesService)Updateadded inv0.38.0

func (r *ResponsePoliciesService) Update(projectstring, responsePolicystring, responsepolicy *ResponsePolicy) *ResponsePoliciesUpdateCall

Update: Updates an existing Response Policy.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy addressed bythis request.

typeResponsePoliciesUpdateCalladded inv0.38.0

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

func (*ResponsePoliciesUpdateCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePoliciesUpdateCall) ClientOperationId(clientOperationIdstring) *ResponsePoliciesUpdateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePoliciesUpdateCall)Contextadded inv0.38.0

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

func (*ResponsePoliciesUpdateCall)Doadded inv0.38.0

Do executes the "dns.responsePolicies.update" call.Any non-2xx status code is an error. Response headers are in either*ResponsePoliciesUpdateResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResponsePoliciesUpdateCall)Fieldsadded inv0.38.0

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

func (*ResponsePoliciesUpdateCall)Headeradded inv0.38.0

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

typeResponsePoliciesUpdateResponseadded inv0.38.0

type ResponsePoliciesUpdateResponse struct {ResponsePolicy *ResponsePolicy `json:"responsePolicy,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponsePolicy") 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. "ResponsePolicy") 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:"-"`}

func (ResponsePoliciesUpdateResponse)MarshalJSONadded inv0.38.0

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

typeResponsePolicyadded inv0.38.0

type ResponsePolicy struct {// Description: User-provided description for this Response Policy.Descriptionstring `json:"description,omitempty"`// GkeClusters: The list of Google Kubernetes Engine clusters to which this// response policy is applied.GkeClusters []*ResponsePolicyGKECluster `json:"gkeClusters,omitempty"`// Id: Unique identifier for the resource; defined by the server (output only).Idint64  `json:"id,omitempty,string"`Kindstring `json:"kind,omitempty"`// Labels: User labels.Labels map[string]string `json:"labels,omitempty"`// Networks: List of network names specifying networks to which this policy is// applied.Networks []*ResponsePolicyNetwork `json:"networks,omitempty"`// ResponsePolicyName: User assigned name for this Response Policy.ResponsePolicyNamestring `json:"responsePolicyName,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:"-"`}

ResponsePolicy: A Response Policy is a collection of selectors that apply toqueries made against one or more Virtual Private Cloud networks.

func (ResponsePolicy)MarshalJSONadded inv0.38.0

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

typeResponsePolicyGKEClusteradded inv0.46.0

type ResponsePolicyGKECluster struct {// GkeClusterName: The resource name of the cluster to bind this response// policy to. This should be specified in the format like:// projects/*/locations/*/clusters/*. This is referenced from GKE// projects.locations.clusters.get API://https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/getGkeClusterNamestring `json:"gkeClusterName,omitempty"`Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "GkeClusterName") 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. "GkeClusterName") 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:"-"`}

func (ResponsePolicyGKECluster)MarshalJSONadded inv0.46.0

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

typeResponsePolicyNetworkadded inv0.38.0

type ResponsePolicyNetwork struct {Kindstring `json:"kind,omitempty"`// NetworkUrl: The fully qualified URL of the VPC network to bind to. This// should be formatted like// `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{ne// twork}`NetworkUrlstring `json:"networkUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`}

func (ResponsePolicyNetwork)MarshalJSONadded inv0.38.0

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

typeResponsePolicyRuleadded inv0.38.0

type ResponsePolicyRule struct {// Behavior: Answer this query with a behavior rather than DNS data.//// Possible values://   "behaviorUnspecified"//   "bypassResponsePolicy" - Skip a less-specific Response Policy Rule and let// the query logic continue. This mechanism, when used with wildcard selectors,// lets you exempt specific subdomains from a broader Response Policy Rule and// direct the queries to the public internet instead. For example, if the// following rules exist: “` *.example.com -> LocalData 1.2.3.4// foo.example.com -> Behavior 'passthrough' “` A query for foo.example.com// skips the wildcard rule. This functionality also facilitates allowlisting.// Response Policy Zones (RPZs) can be applied at multiple levels within the// hierarchy: for example, an organization, a folder, a project, or a VPC// network. If an RPZ rule is applied at a higher level, adding a `passthrough`// rule at a lower level will override it. Queries from affected virtual// machines (VMs) to that domain bypass the RPZ and proceed with normal// resolution.Behaviorstring `json:"behavior,omitempty"`// DnsName: The DNS name (wildcard or exact) to apply this rule to. Must be// unique within the Response Policy Rule.DnsNamestring `json:"dnsName,omitempty"`Kindstring `json:"kind,omitempty"`// LocalData: Answer this query directly with DNS data. These// ResourceRecordSets override any other DNS behavior for the matched name; in// particular they override private zones, the public internet, and GCP// internal DNS. No SOA nor NS types are allowed.LocalData *ResponsePolicyRuleLocalData `json:"localData,omitempty"`// RuleName: An identifier for this rule. Must be unique with the// ResponsePolicy.RuleNamestring `json:"ruleName,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Behavior") 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. "Behavior") 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:"-"`}

ResponsePolicyRule: A Response Policy Rule is a selector that applies itsbehavior to queries that match the selector. Selectors are DNS names, whichmay be wildcards or exact matches. Each DNS query subject to a ResponsePolicy matches at most one ResponsePolicyRule, as identified by the dns_namefield with the longest matching suffix.

func (ResponsePolicyRule)MarshalJSONadded inv0.38.0

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

typeResponsePolicyRuleLocalDataadded inv0.38.0

type ResponsePolicyRuleLocalData struct {// LocalDatas: All resource record sets for this selector, one per resource// record type. The name must match the dns_name.LocalDatas []*ResourceRecordSet `json:"localDatas,omitempty"`// ForceSendFields is a list of field names (e.g. "LocalDatas") 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. "LocalDatas") 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:"-"`}

func (ResponsePolicyRuleLocalData)MarshalJSONadded inv0.38.0

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

typeResponsePolicyRulesCreateCalladded inv0.38.0

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

func (*ResponsePolicyRulesCreateCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePolicyRulesCreateCall) ClientOperationId(clientOperationIdstring) *ResponsePolicyRulesCreateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePolicyRulesCreateCall)Contextadded inv0.38.0

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

func (*ResponsePolicyRulesCreateCall)Doadded inv0.38.0

Do executes the "dns.responsePolicyRules.create" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicyRule.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ResponsePolicyRulesCreateCall)Fieldsadded inv0.38.0

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

func (*ResponsePolicyRulesCreateCall)Headeradded inv0.38.0

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

typeResponsePolicyRulesDeleteCalladded inv0.38.0

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

func (*ResponsePolicyRulesDeleteCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePolicyRulesDeleteCall) ClientOperationId(clientOperationIdstring) *ResponsePolicyRulesDeleteCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePolicyRulesDeleteCall)Contextadded inv0.38.0

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

func (*ResponsePolicyRulesDeleteCall)Doadded inv0.38.0

Do executes the "dns.responsePolicyRules.delete" call.

func (*ResponsePolicyRulesDeleteCall)Fieldsadded inv0.38.0

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

func (*ResponsePolicyRulesDeleteCall)Headeradded inv0.38.0

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

typeResponsePolicyRulesGetCalladded inv0.38.0

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

func (*ResponsePolicyRulesGetCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePolicyRulesGetCall) ClientOperationId(clientOperationIdstring) *ResponsePolicyRulesGetCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePolicyRulesGetCall)Contextadded inv0.38.0

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

func (*ResponsePolicyRulesGetCall)Doadded inv0.38.0

Do executes the "dns.responsePolicyRules.get" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicyRule.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ResponsePolicyRulesGetCall)Fieldsadded inv0.38.0

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

func (*ResponsePolicyRulesGetCall)Headeradded inv0.38.0

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

func (*ResponsePolicyRulesGetCall)IfNoneMatchadded inv0.38.0

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.

typeResponsePolicyRulesListCalladded inv0.38.0

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

func (*ResponsePolicyRulesListCall)Contextadded inv0.38.0

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

func (*ResponsePolicyRulesListCall)Doadded inv0.38.0

Do executes the "dns.responsePolicyRules.list" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicyRulesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResponsePolicyRulesListCall)Fieldsadded inv0.38.0

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

func (*ResponsePolicyRulesListCall)Headeradded inv0.38.0

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

func (*ResponsePolicyRulesListCall)IfNoneMatchadded inv0.38.0

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.

func (*ResponsePolicyRulesListCall)MaxResultsadded inv0.38.0

MaxResults sets the optional parameter "maxResults": Maximum number ofresults to be returned. If unspecified, the server decides how many resultsto return.

func (*ResponsePolicyRulesListCall)PageTokenadded inv0.38.0

PageToken sets the optional parameter "pageToken": A tag returned by aprevious list request that was truncated. Use this parameter to continue aprevious list request.

func (*ResponsePolicyRulesListCall)Pagesadded inv0.38.0

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeResponsePolicyRulesListResponseadded inv0.38.0

type ResponsePolicyRulesListResponse struct {// NextPageToken: This field indicates that more results are available beyond// the last page displayed. To fetch the results, make another list request and// use this value as your page token. This lets you retrieve the complete// contents of a very large collection one page at a time. However, if the// contents of the collection change between the first and last paginated list// request, the set of all elements returned are an inconsistent view of the// collection. You can't retrieve a consistent snapshot of a collection larger// than the maximum page size.NextPageTokenstring `json:"nextPageToken,omitempty"`// ResponsePolicyRules: The Response Policy Rule resources.ResponsePolicyRules []*ResponsePolicyRule `json:"responsePolicyRules,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`}

func (ResponsePolicyRulesListResponse)MarshalJSONadded inv0.38.0

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

typeResponsePolicyRulesPatchCalladded inv0.38.0

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

func (*ResponsePolicyRulesPatchCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePolicyRulesPatchCall) ClientOperationId(clientOperationIdstring) *ResponsePolicyRulesPatchCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePolicyRulesPatchCall)Contextadded inv0.38.0

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

func (*ResponsePolicyRulesPatchCall)Doadded inv0.38.0

Do executes the "dns.responsePolicyRules.patch" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicyRulesPatchResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResponsePolicyRulesPatchCall)Fieldsadded inv0.38.0

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

func (*ResponsePolicyRulesPatchCall)Headeradded inv0.38.0

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

typeResponsePolicyRulesPatchResponseadded inv0.38.0

type ResponsePolicyRulesPatchResponse struct {ResponsePolicyRule *ResponsePolicyRule `json:"responsePolicyRule,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponsePolicyRule") 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. "ResponsePolicyRule") 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:"-"`}

func (ResponsePolicyRulesPatchResponse)MarshalJSONadded inv0.38.0

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

typeResponsePolicyRulesServiceadded inv0.38.0

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

funcNewResponsePolicyRulesServiceadded inv0.38.0

func NewResponsePolicyRulesService(s *Service) *ResponsePolicyRulesService

func (*ResponsePolicyRulesService)Createadded inv0.38.0

func (r *ResponsePolicyRulesService) Create(projectstring, responsePolicystring, responsepolicyrule *ResponsePolicyRule) *ResponsePolicyRulesCreateCall

Create: Creates a new Response Policy Rule.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy containing theResponse Policy Rule.

func (*ResponsePolicyRulesService)Deleteadded inv0.38.0

func (r *ResponsePolicyRulesService) Delete(projectstring, responsePolicystring, responsePolicyRulestring) *ResponsePolicyRulesDeleteCall

Delete: Deletes a previously created Response Policy Rule.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy containing theResponse Policy Rule.
  • responsePolicyRule: User assigned name of the Response Policy Ruleaddressed by this request.

func (*ResponsePolicyRulesService)Getadded inv0.38.0

func (r *ResponsePolicyRulesService) Get(projectstring, responsePolicystring, responsePolicyRulestring) *ResponsePolicyRulesGetCall

Get: Fetches the representation of an existing Response Policy Rule.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy containing theResponse Policy Rule.
  • responsePolicyRule: User assigned name of the Response Policy Ruleaddressed by this request.

func (*ResponsePolicyRulesService)Listadded inv0.38.0

List: Enumerates all Response Policy Rules associated with a project.

- project: Identifies the project addressed by this request.- responsePolicy: User assigned name of the Response Policy to list.

func (*ResponsePolicyRulesService)Patchadded inv0.38.0

func (r *ResponsePolicyRulesService) Patch(projectstring, responsePolicystring, responsePolicyRulestring, responsepolicyrule *ResponsePolicyRule) *ResponsePolicyRulesPatchCall

Patch: Applies a partial update to an existing Response Policy Rule.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy containing theResponse Policy Rule.
  • responsePolicyRule: User assigned name of the Response Policy Ruleaddressed by this request.

func (*ResponsePolicyRulesService)Updateadded inv0.38.0

func (r *ResponsePolicyRulesService) Update(projectstring, responsePolicystring, responsePolicyRulestring, responsepolicyrule *ResponsePolicyRule) *ResponsePolicyRulesUpdateCall

Update: Updates an existing Response Policy Rule.

  • project: Identifies the project addressed by this request.
  • responsePolicy: User assigned name of the Response Policy containing theResponse Policy Rule.
  • responsePolicyRule: User assigned name of the Response Policy Ruleaddressed by this request.

typeResponsePolicyRulesUpdateCalladded inv0.38.0

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

func (*ResponsePolicyRulesUpdateCall)ClientOperationIdadded inv0.38.0

func (c *ResponsePolicyRulesUpdateCall) ClientOperationId(clientOperationIdstring) *ResponsePolicyRulesUpdateCall

ClientOperationId sets the optional parameter "clientOperationId": Formutating operation requests only. An optional identifier specified by theclient. Must be unique for operation resources in the Operations collection.

func (*ResponsePolicyRulesUpdateCall)Contextadded inv0.38.0

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

func (*ResponsePolicyRulesUpdateCall)Doadded inv0.38.0

Do executes the "dns.responsePolicyRules.update" call.Any non-2xx status code is an error. Response headers are in either*ResponsePolicyRulesUpdateResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ResponsePolicyRulesUpdateCall)Fieldsadded inv0.38.0

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

func (*ResponsePolicyRulesUpdateCall)Headeradded inv0.38.0

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

typeResponsePolicyRulesUpdateResponseadded inv0.38.0

type ResponsePolicyRulesUpdateResponse struct {ResponsePolicyRule *ResponsePolicyRule `json:"responsePolicyRule,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponsePolicyRule") 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. "ResponsePolicyRule") 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:"-"`}

func (ResponsePolicyRulesUpdateResponse)MarshalJSONadded inv0.38.0

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

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentChanges *ChangesServiceDnsKeys *DnsKeysServiceManagedZoneOperations *ManagedZoneOperationsServiceManagedZones *ManagedZonesServicePolicies *PoliciesServiceProjects *ProjectsServiceResourceRecordSets *ResourceRecordSetsServiceResponsePolicies *ResponsePoliciesServiceResponsePolicyRules *ResponsePolicyRulesService// 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.

funcNewServiceadded inv0.3.0

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

NewService creates a new Service.

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