youtube  v3
Public Member Functions | List of all members
google_youtube_api::YouTubeService::ChannelsResource Class Reference

#include <you_tube_service.h>

Public Member Functions

 ChannelsResource (YouTubeService *service)
 
 ~ChannelsResource ()
 
ChannelsResource_ListMethodNewListMethod (client::AuthorizationCredential *_credential_, const absl::string_view &part) const
 
ChannelsResource_ListMethodPager * NewListMethodPager (client::AuthorizationCredential *_credential_, const absl::string_view &part) const
 
ChannelsResource_UpdateMethodNewUpdateMethod (client::AuthorizationCredential *_credential_, const absl::string_view &part, const Channel &_content_) const
 

Detailed Description

Acts as message factory for accessing data.

Constructor & Destructor Documentation

◆ ChannelsResource()

google_youtube_api::YouTubeService::ChannelsResource::ChannelsResource ( YouTubeService service)
explicit

Standard constructor.

Parameters
[in]serviceThe service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on.

◆ ~ChannelsResource()

google_youtube_api::YouTubeService::ChannelsResource::~ChannelsResource ( )
inline

Standard destructor.

Member Function Documentation

◆ NewListMethod()

ChannelsResource_ListMethod * google_youtube_api::YouTubeService::ChannelsResource::NewListMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part 
) const

Creates a new ChannelsResource_ListMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]partThe part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include.

If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.

Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewListMethodPager()

ChannelsResource_ListMethodPager * google_youtube_api::YouTubeService::ChannelsResource::NewListMethodPager ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part 
) const

Creates a pager for iterating over incremental result pages.

Parameters
[in]<em>credential</em>NULL credentials will not authorize the request.
[in]partThe part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include.

If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.

See also
googleapis::googleapis::ServiceRequestPager

◆ NewUpdateMethod()

ChannelsResource_UpdateMethod * google_youtube_api::YouTubeService::ChannelsResource::NewUpdateMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  part,
const Channel _content_ 
) const

Creates a new ChannelsResource_UpdateMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]partThe part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.

The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.)

Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.

Parameters
[in]<em>content</em>The data object to update.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

The documentation for this class was generated from the following files: