api: google.golang.org/api/youtubereporting/v1 Index | Files

package youtubereporting

import "google.golang.org/api/youtubereporting/v1"

Package youtubereporting provides access to the YouTube Reporting API.

For product documentation, see: https://developers.google.com/youtube/reporting/v1/reports/

Creating a client

Usage example:

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

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

youtubereportingService, err := youtubereporting.NewService(ctx, option.WithScopes(youtubereporting.YtAnalyticsReadonlyScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

youtubereportingService, err := youtubereporting.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

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

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

youtubereporting-gen.go

Constants

const (
    // View monetary and non-monetary YouTube Analytics reports for your
    // YouTube content
    YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"

    // View YouTube Analytics reports for your YouTube content
    YtAnalyticsReadonlyScope = "https://www.googleapis.com/auth/yt-analytics.readonly"
)

OAuth2 scopes used by this API.

type Empty Uses

type Empty struct {
    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

service Foo {
  rpc Bar(google.protobuf.Empty) returns

(google.protobuf.Empty);

}

The JSON representation for `Empty` is empty JSON object `{}`.

type GdataBlobstore2Info Uses

type GdataBlobstore2Info struct {
    // BlobGeneration: gdata
    BlobGeneration int64 `json:"blobGeneration,omitempty,string"`

    // BlobId: gdata
    BlobId string `json:"blobId,omitempty"`

    // DownloadReadHandle: gdata
    DownloadReadHandle string `json:"downloadReadHandle,omitempty"`

    // ReadToken: gdata
    ReadToken string `json:"readToken,omitempty"`

    // UploadMetadataContainer: gdata
    UploadMetadataContainer string `json:"uploadMetadataContainer,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BlobGeneration") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BlobGeneration") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

GdataBlobstore2Info: gdata

func (*GdataBlobstore2Info) MarshalJSON Uses

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

type GdataCompositeMedia Uses

type GdataCompositeMedia struct {
    // BlobRef: gdata
    BlobRef string `json:"blobRef,omitempty"`

    // Blobstore2Info: gdata
    Blobstore2Info *GdataBlobstore2Info `json:"blobstore2Info,omitempty"`

    // CosmoBinaryReference: gdata
    CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`

    // Crc32cHash: gdata
    Crc32cHash int64 `json:"crc32cHash,omitempty"`

    // Inline: gdata
    Inline string `json:"inline,omitempty"`

    // Length: gdata
    Length int64 `json:"length,omitempty,string"`

    // Md5Hash: gdata
    Md5Hash string `json:"md5Hash,omitempty"`

    // ObjectId: gdata
    ObjectId *GdataObjectId `json:"objectId,omitempty"`

    // Path: gdata
    Path string `json:"path,omitempty"`

    // ReferenceType: gdata
    //
    // Possible values:
    //   "PATH" - gdata
    //   "BLOB_REF" - gdata
    //   "INLINE" - gdata
    //   "BIGSTORE_REF" - gdata
    //   "COSMO_BINARY_REFERENCE" - gdata
    ReferenceType string `json:"referenceType,omitempty"`

    // Sha1Hash: gdata
    Sha1Hash string `json:"sha1Hash,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BlobRef") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BlobRef") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GdataCompositeMedia: gdata

func (*GdataCompositeMedia) MarshalJSON Uses

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

type GdataContentTypeInfo Uses

type GdataContentTypeInfo struct {
    // BestGuess: gdata
    BestGuess string `json:"bestGuess,omitempty"`

    // FromBytes: gdata
    FromBytes string `json:"fromBytes,omitempty"`

    // FromFileName: gdata
    FromFileName string `json:"fromFileName,omitempty"`

    // FromHeader: gdata
    FromHeader string `json:"fromHeader,omitempty"`

    // FromUrlPath: gdata
    FromUrlPath string `json:"fromUrlPath,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BestGuess") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BestGuess") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GdataContentTypeInfo: gdata

func (*GdataContentTypeInfo) MarshalJSON Uses

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

type GdataDiffChecksumsResponse Uses

type GdataDiffChecksumsResponse struct {
    // ChecksumsLocation: gdata
    ChecksumsLocation *GdataCompositeMedia `json:"checksumsLocation,omitempty"`

    // ChunkSizeBytes: gdata
    ChunkSizeBytes int64 `json:"chunkSizeBytes,omitempty,string"`

    // ObjectLocation: gdata
    ObjectLocation *GdataCompositeMedia `json:"objectLocation,omitempty"`

    // ObjectSizeBytes: gdata
    ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`

    // ObjectVersion: gdata
    ObjectVersion string `json:"objectVersion,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ChecksumsLocation")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ChecksumsLocation") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

GdataDiffChecksumsResponse: gdata

func (*GdataDiffChecksumsResponse) MarshalJSON Uses

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

type GdataDiffDownloadResponse Uses

type GdataDiffDownloadResponse struct {
    // ObjectLocation: gdata
    ObjectLocation *GdataCompositeMedia `json:"objectLocation,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ObjectLocation") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ObjectLocation") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

GdataDiffDownloadResponse: gdata

func (*GdataDiffDownloadResponse) MarshalJSON Uses

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

type GdataDiffUploadRequest Uses

type GdataDiffUploadRequest struct {
    // ChecksumsInfo: gdata
    ChecksumsInfo *GdataCompositeMedia `json:"checksumsInfo,omitempty"`

    // ObjectInfo: gdata
    ObjectInfo *GdataCompositeMedia `json:"objectInfo,omitempty"`

    // ObjectVersion: gdata
    ObjectVersion string `json:"objectVersion,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ChecksumsInfo") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ChecksumsInfo") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GdataDiffUploadRequest: gdata

func (*GdataDiffUploadRequest) MarshalJSON Uses

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

type GdataDiffUploadResponse Uses

type GdataDiffUploadResponse struct {
    // ObjectVersion: gdata
    ObjectVersion string `json:"objectVersion,omitempty"`

    // OriginalObject: gdata
    OriginalObject *GdataCompositeMedia `json:"originalObject,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ObjectVersion") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ObjectVersion") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GdataDiffUploadResponse: gdata

func (*GdataDiffUploadResponse) MarshalJSON Uses

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

type GdataDiffVersionResponse Uses

type GdataDiffVersionResponse struct {
    // ObjectSizeBytes: gdata
    ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`

    // ObjectVersion: gdata
    ObjectVersion string `json:"objectVersion,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ObjectSizeBytes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ObjectSizeBytes") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

GdataDiffVersionResponse: gdata

func (*GdataDiffVersionResponse) MarshalJSON Uses

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

type GdataDownloadParameters Uses

type GdataDownloadParameters struct {
    // AllowGzipCompression: gdata
    AllowGzipCompression bool `json:"allowGzipCompression,omitempty"`

    // IgnoreRange: gdata
    IgnoreRange bool `json:"ignoreRange,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "AllowGzipCompression") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AllowGzipCompression") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

GdataDownloadParameters: gdata

func (*GdataDownloadParameters) MarshalJSON Uses

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

type GdataMedia Uses

type GdataMedia struct {
    // Algorithm: gdata
    Algorithm string `json:"algorithm,omitempty"`

    // BigstoreObjectRef: gdata
    BigstoreObjectRef string `json:"bigstoreObjectRef,omitempty"`

    // BlobRef: gdata
    BlobRef string `json:"blobRef,omitempty"`

    // Blobstore2Info: gdata
    Blobstore2Info *GdataBlobstore2Info `json:"blobstore2Info,omitempty"`

    // CompositeMedia: gdata
    CompositeMedia []*GdataCompositeMedia `json:"compositeMedia,omitempty"`

    // ContentType: gdata
    ContentType string `json:"contentType,omitempty"`

    // ContentTypeInfo: gdata
    ContentTypeInfo *GdataContentTypeInfo `json:"contentTypeInfo,omitempty"`

    // CosmoBinaryReference: gdata
    CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`

    // Crc32cHash: gdata
    Crc32cHash int64 `json:"crc32cHash,omitempty"`

    // DiffChecksumsResponse: gdata
    DiffChecksumsResponse *GdataDiffChecksumsResponse `json:"diffChecksumsResponse,omitempty"`

    // DiffDownloadResponse: gdata
    DiffDownloadResponse *GdataDiffDownloadResponse `json:"diffDownloadResponse,omitempty"`

    // DiffUploadRequest: gdata
    DiffUploadRequest *GdataDiffUploadRequest `json:"diffUploadRequest,omitempty"`

    // DiffUploadResponse: gdata
    DiffUploadResponse *GdataDiffUploadResponse `json:"diffUploadResponse,omitempty"`

    // DiffVersionResponse: gdata
    DiffVersionResponse *GdataDiffVersionResponse `json:"diffVersionResponse,omitempty"`

    // DownloadParameters: gdata
    DownloadParameters *GdataDownloadParameters `json:"downloadParameters,omitempty"`

    // Filename: gdata
    Filename string `json:"filename,omitempty"`

    // Hash: gdata
    Hash string `json:"hash,omitempty"`

    // HashVerified: gdata
    HashVerified bool `json:"hashVerified,omitempty"`

    // Inline: gdata
    Inline string `json:"inline,omitempty"`

    // IsPotentialRetry: gdata
    IsPotentialRetry bool `json:"isPotentialRetry,omitempty"`

    // Length: gdata
    Length int64 `json:"length,omitempty,string"`

    // Md5Hash: gdata
    Md5Hash string `json:"md5Hash,omitempty"`

    // MediaId: gdata
    MediaId string `json:"mediaId,omitempty"`

    // ObjectId: gdata
    ObjectId *GdataObjectId `json:"objectId,omitempty"`

    // Path: gdata
    Path string `json:"path,omitempty"`

    // ReferenceType: gdata
    //
    // Possible values:
    //   "PATH" - gdata
    //   "BLOB_REF" - gdata
    //   "INLINE" - gdata
    //   "GET_MEDIA" - gdata
    //   "COMPOSITE_MEDIA" - gdata
    //   "BIGSTORE_REF" - gdata
    //   "DIFF_VERSION_RESPONSE" - gdata
    //   "DIFF_CHECKSUMS_RESPONSE" - gdata
    //   "DIFF_DOWNLOAD_RESPONSE" - gdata
    //   "DIFF_UPLOAD_REQUEST" - gdata
    //   "DIFF_UPLOAD_RESPONSE" - gdata
    //   "COSMO_BINARY_REFERENCE" - gdata
    //   "ARBITRARY_BYTES" - gdata
    ReferenceType string `json:"referenceType,omitempty"`

    // Sha1Hash: gdata
    Sha1Hash string `json:"sha1Hash,omitempty"`

    // Sha256Hash: gdata
    Sha256Hash string `json:"sha256Hash,omitempty"`

    // Timestamp: gdata
    Timestamp uint64 `json:"timestamp,omitempty,string"`

    // Token: gdata
    Token string `json:"token,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Algorithm") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Algorithm") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GdataMedia: gdata

func (*GdataMedia) MarshalJSON Uses

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

type GdataObjectId Uses

type GdataObjectId struct {
    // BucketName: gdata
    BucketName string `json:"bucketName,omitempty"`

    // Generation: gdata
    Generation int64 `json:"generation,omitempty,string"`

    // ObjectName: gdata
    ObjectName string `json:"objectName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BucketName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BucketName") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GdataObjectId: gdata

func (*GdataObjectId) MarshalJSON Uses

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

type Job Uses

type Job struct {
    // CreateTime: The creation date/time of the job.
    CreateTime string `json:"createTime,omitempty"`

    // ExpireTime: The date/time when this job will expire/expired. After a
    // job expired, no
    // new reports are generated.
    ExpireTime string `json:"expireTime,omitempty"`

    // Id: The server-generated ID of the job (max. 40 characters).
    Id  string `json:"id,omitempty"`

    // Name: The name of the job (max. 100 characters).
    Name string `json:"name,omitempty"`

    // ReportTypeId: The type of reports this job creates. Corresponds to
    // the ID of a
    // ReportType.
    ReportTypeId string `json:"reportTypeId,omitempty"`

    // SystemManaged: True if this a system-managed job that cannot be
    // modified by the user;
    // otherwise false.
    SystemManaged bool `json:"systemManaged,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreateTime") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Job: A job creating reports of a specific type.

func (*Job) MarshalJSON Uses

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

type JobsCreateCall Uses

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

func (*JobsCreateCall) Context Uses

func (c *JobsCreateCall) Context(ctx context.Context) *JobsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsCreateCall) Do Uses

func (c *JobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error)

Do executes the "youtubereporting.jobs.create" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsCreateCall) Fields Uses

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

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

func (*JobsCreateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsCreateCall) OnBehalfOfContentOwner Uses

func (c *JobsCreateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *JobsCreateCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

type JobsDeleteCall Uses

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

func (*JobsDeleteCall) Context Uses

func (c *JobsDeleteCall) Context(ctx context.Context) *JobsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsDeleteCall) Do Uses

func (c *JobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "youtubereporting.jobs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsDeleteCall) Fields Uses

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

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

func (*JobsDeleteCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsDeleteCall) OnBehalfOfContentOwner Uses

func (c *JobsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *JobsDeleteCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

type JobsGetCall Uses

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

func (*JobsGetCall) Context Uses

func (c *JobsGetCall) Context(ctx context.Context) *JobsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsGetCall) Do Uses

func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error)

Do executes the "youtubereporting.jobs.get" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsGetCall) Fields Uses

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

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

func (*JobsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*JobsGetCall) OnBehalfOfContentOwner Uses

func (c *JobsGetCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *JobsGetCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

type JobsListCall Uses

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

func (*JobsListCall) Context Uses

func (c *JobsListCall) Context(ctx context.Context) *JobsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsListCall) Do Uses

func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error)

Do executes the "youtubereporting.jobs.list" call. Exactly one of *ListJobsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListJobsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsListCall) Fields Uses

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

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

func (*JobsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*JobsListCall) IncludeSystemManaged Uses

func (c *JobsListCall) IncludeSystemManaged(includeSystemManaged bool) *JobsListCall

IncludeSystemManaged sets the optional parameter "includeSystemManaged": If set to true, also system-managed jobs will be returned; otherwise only user-created jobs will be returned. System-managed jobs can neither be modified nor deleted.

func (*JobsListCall) OnBehalfOfContentOwner Uses

func (c *JobsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *JobsListCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

func (*JobsListCall) PageSize Uses

func (c *JobsListCall) PageSize(pageSize int64) *JobsListCall

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer jobs than requested. If unspecified, server will pick an appropriate default.

func (*JobsListCall) PageToken Uses

func (c *JobsListCall) PageToken(pageToken string) *JobsListCall

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListReportTypesResponse.next_page_token returned in response to the previous call to the `ListJobs` method.

func (*JobsListCall) Pages Uses

func (c *JobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error

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.

type JobsReportsGetCall Uses

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

func (*JobsReportsGetCall) Context Uses

func (c *JobsReportsGetCall) Context(ctx context.Context) *JobsReportsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsReportsGetCall) Do Uses

func (c *JobsReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error)

Do executes the "youtubereporting.jobs.reports.get" call. Exactly one of *Report or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Report.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsReportsGetCall) Fields Uses

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

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

func (*JobsReportsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsReportsGetCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*JobsReportsGetCall) OnBehalfOfContentOwner Uses

func (c *JobsReportsGetCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *JobsReportsGetCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

type JobsReportsListCall Uses

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

func (*JobsReportsListCall) Context Uses

func (c *JobsReportsListCall) Context(ctx context.Context) *JobsReportsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsReportsListCall) CreatedAfter Uses

func (c *JobsReportsListCall) CreatedAfter(createdAfter string) *JobsReportsListCall

CreatedAfter sets the optional parameter "createdAfter": If set, only reports created after the specified date/time are returned.

func (*JobsReportsListCall) Do Uses

func (c *JobsReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsResponse, error)

Do executes the "youtubereporting.jobs.reports.list" call. Exactly one of *ListReportsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListReportsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsReportsListCall) Fields Uses

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

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

func (*JobsReportsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsReportsListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*JobsReportsListCall) OnBehalfOfContentOwner Uses

func (c *JobsReportsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *JobsReportsListCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

func (*JobsReportsListCall) PageSize Uses

func (c *JobsReportsListCall) PageSize(pageSize int64) *JobsReportsListCall

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer report types than requested. If unspecified, server will pick an appropriate default.

func (*JobsReportsListCall) PageToken Uses

func (c *JobsReportsListCall) PageToken(pageToken string) *JobsReportsListCall

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListReportsResponse.next_page_token returned in response to the previous call to the `ListReports` method.

func (*JobsReportsListCall) Pages Uses

func (c *JobsReportsListCall) Pages(ctx context.Context, f func(*ListReportsResponse) error) error

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 (*JobsReportsListCall) StartTimeAtOrAfter Uses

func (c *JobsReportsListCall) StartTimeAtOrAfter(startTimeAtOrAfter string) *JobsReportsListCall

StartTimeAtOrAfter sets the optional parameter "startTimeAtOrAfter": If set, only reports whose start time is greater than or equal the specified date/time are returned.

func (*JobsReportsListCall) StartTimeBefore Uses

func (c *JobsReportsListCall) StartTimeBefore(startTimeBefore string) *JobsReportsListCall

StartTimeBefore sets the optional parameter "startTimeBefore": If set, only reports whose start time is smaller than the specified date/time are returned.

type JobsReportsService Uses

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

func NewJobsReportsService Uses

func NewJobsReportsService(s *Service) *JobsReportsService

func (*JobsReportsService) Get Uses

func (r *JobsReportsService) Get(jobId string, reportId string) *JobsReportsGetCall

Get: Gets the metadata of a specific report.

func (*JobsReportsService) List Uses

func (r *JobsReportsService) List(jobId string) *JobsReportsListCall

List: Lists reports created by a specific job. Returns NOT_FOUND if the job does not exist.

type JobsService Uses

type JobsService struct {
    Reports *JobsReportsService
    // contains filtered or unexported fields
}

func NewJobsService Uses

func NewJobsService(s *Service) *JobsService

func (*JobsService) Create Uses

func (r *JobsService) Create(job *Job) *JobsCreateCall

Create: Creates a job and returns it.

func (*JobsService) Delete Uses

func (r *JobsService) Delete(jobId string) *JobsDeleteCall

Delete: Deletes a job.

func (*JobsService) Get Uses

func (r *JobsService) Get(jobId string) *JobsGetCall

Get: Gets a job.

func (*JobsService) List Uses

func (r *JobsService) List() *JobsListCall

List: Lists jobs.

type ListJobsResponse Uses

type ListJobsResponse struct {
    // Jobs: The list of jobs.
    Jobs []*Job `json:"jobs,omitempty"`

    // NextPageToken: A token to retrieve next page of results.
    // Pass this value in the
    // ListJobsRequest.page_token
    // field in the subsequent call to `ListJobs` method to retrieve the
    // next
    // page of results.
    NextPageToken string `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. "Jobs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Jobs") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListJobsResponse: Response message for ReportingService.ListJobs.

func (*ListJobsResponse) MarshalJSON Uses

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

type ListReportTypesResponse Uses

type ListReportTypesResponse struct {
    // NextPageToken: A token to retrieve next page of results.
    // Pass this value in the
    // ListReportTypesRequest.page_token
    // field in the subsequent call to `ListReportTypes` method to retrieve
    // the
    // next page of results.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ReportTypes: The list of report types.
    ReportTypes []*ReportType `json:"reportTypes,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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListReportTypesResponse: Response message for ReportingService.ListReportTypes.

func (*ListReportTypesResponse) MarshalJSON Uses

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

type ListReportsResponse Uses

type ListReportsResponse struct {
    // NextPageToken: A token to retrieve next page of results.
    // Pass this value in the
    // ListReportsRequest.page_token
    // field in the subsequent call to `ListReports` method to retrieve the
    // next
    // page of results.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // Reports: The list of report types.
    Reports []*Report `json:"reports,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 values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListReportsResponse: Response message for ReportingService.ListReports.

func (*ListReportsResponse) MarshalJSON Uses

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

type MediaDownloadCall Uses

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

func (*MediaDownloadCall) Context Uses

func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall

Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MediaDownloadCall) Do Uses

func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GdataMedia, error)

Do executes the "youtubereporting.media.download" call. Exactly one of *GdataMedia or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GdataMedia.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MediaDownloadCall) Download Uses

func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

func (*MediaDownloadCall) Fields Uses

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

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

func (*MediaDownloadCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MediaDownloadCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type MediaService Uses

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

func NewMediaService Uses

func NewMediaService(s *Service) *MediaService

func (*MediaService) Download Uses

func (r *MediaService) Download(resourceName string) *MediaDownloadCall

Download: Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`.

type Report Uses

type Report struct {
    // CreateTime: The date/time when this report was created.
    CreateTime string `json:"createTime,omitempty"`

    // DownloadUrl: The URL from which the report can be downloaded (max.
    // 1000 characters).
    DownloadUrl string `json:"downloadUrl,omitempty"`

    // EndTime: The end of the time period that the report instance covers.
    // The value is
    // exclusive.
    EndTime string `json:"endTime,omitempty"`

    // Id: The server-generated ID of the report.
    Id  string `json:"id,omitempty"`

    // JobExpireTime: The date/time when the job this report belongs to will
    // expire/expired.
    JobExpireTime string `json:"jobExpireTime,omitempty"`

    // JobId: The ID of the job that created this report.
    JobId string `json:"jobId,omitempty"`

    // StartTime: The start of the time period that the report instance
    // covers. The value is
    // inclusive.
    StartTime string `json:"startTime,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreateTime") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Report: A report's metadata including the URL from which the report itself can be downloaded.

func (*Report) MarshalJSON Uses

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

type ReportType Uses

type ReportType struct {
    // DeprecateTime: The date/time when this report type was/will be
    // deprecated.
    DeprecateTime string `json:"deprecateTime,omitempty"`

    // Id: The ID of the report type (max. 100 characters).
    Id  string `json:"id,omitempty"`

    // Name: The name of the report type (max. 100 characters).
    Name string `json:"name,omitempty"`

    // SystemManaged: True if this a system-managed report type; otherwise
    // false. Reporting jobs
    // for system-managed report types are created automatically and can
    // thus not
    // be used in the `CreateJob` method.
    SystemManaged bool `json:"systemManaged,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DeprecateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DeprecateTime") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ReportType: A report type.

func (*ReportType) MarshalJSON Uses

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

type ReportTypesListCall Uses

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

func (*ReportTypesListCall) Context Uses

func (c *ReportTypesListCall) Context(ctx context.Context) *ReportTypesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ReportTypesListCall) Do Uses

func (c *ReportTypesListCall) Do(opts ...googleapi.CallOption) (*ListReportTypesResponse, error)

Do executes the "youtubereporting.reportTypes.list" call. Exactly one of *ListReportTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListReportTypesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ReportTypesListCall) Fields Uses

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

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

func (*ReportTypesListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ReportTypesListCall) IfNoneMatch Uses

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

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ReportTypesListCall) IncludeSystemManaged Uses

func (c *ReportTypesListCall) IncludeSystemManaged(includeSystemManaged bool) *ReportTypesListCall

IncludeSystemManaged sets the optional parameter "includeSystemManaged": If set to true, also system-managed report types will be returned; otherwise only the report types that can be used to create new reporting jobs will be returned.

func (*ReportTypesListCall) OnBehalfOfContentOwner Uses

func (c *ReportTypesListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ReportTypesListCall

OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).

func (*ReportTypesListCall) PageSize Uses

func (c *ReportTypesListCall) PageSize(pageSize int64) *ReportTypesListCall

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer report types than requested. If unspecified, server will pick an appropriate default.

func (*ReportTypesListCall) PageToken Uses

func (c *ReportTypesListCall) PageToken(pageToken string) *ReportTypesListCall

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListReportTypesResponse.next_page_token returned in response to the previous call to the `ListReportTypes` method.

func (*ReportTypesListCall) Pages Uses

func (c *ReportTypesListCall) Pages(ctx context.Context, f func(*ListReportTypesResponse) error) error

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.

type ReportTypesService Uses

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

func NewReportTypesService Uses

func NewReportTypesService(s *Service) *ReportTypesService

func (*ReportTypesService) List Uses

func (r *ReportTypesService) List() *ReportTypesListCall

List: Lists report types.

type Service Uses

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

    Jobs *JobsService

    Media *MediaService

    ReportTypes *ReportTypesService
    // contains filtered or unexported fields
}

func New Uses

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.

func NewService Uses

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

NewService creates a new Service.

Package youtubereporting imports 14 packages (graph) and is imported by 1 packages. Updated 2019-07-20. Refresh now. Tools for package owners.