From 03b851ea40c2b0cdce8292b68b63cb8f6342d17d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 22 Apr 2022 16:16:13 +0800 Subject: [PATCH] regenerate youtube3 API --- gen/youtube3/Cargo.toml | 8 +- gen/youtube3/README.md | 166 +++++++++++++++--------------- gen/youtube3/src/api.rs | 216 ++++++++++++++++++++-------------------- gen/youtube3/src/lib.rs | 4 +- 4 files changed, 197 insertions(+), 197 deletions(-) diff --git a/gen/youtube3/Cargo.toml b/gen/youtube3/Cargo.toml index 16597a6bf4..e91af49ba1 100644 --- a/gen/youtube3/Cargo.toml +++ b/gen/youtube3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-youtube3" -version = "3.0.0+20220303" +version = "3.1.0+20220303" authors = ["Sebastian Thiel "] description = "A complete library to interact with YouTube (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/main/gen/youtube3" homepage = "https://developers.google.com/youtube/" -documentation = "https://docs.rs/google-youtube3/3.0.0+20220303" +documentation = "https://docs.rs/google-youtube3/3.1.0+20220303" license = "MIT" keywords = ["youtube", "google", "protocol", "web", "api"] autobins = false @@ -17,12 +17,12 @@ edition = "2018" [dependencies] -hyper-rustls = "^0.22" +hyper-rustls = "0.23.0" mime = "^ 0.2.0" serde = "^ 1.0" serde_json = "^ 1.0" serde_derive = "^ 1.0" -yup-oauth2 = "^ 6.0" +yup-oauth2 = "^ 6.6" itertools = "^ 0.10" hyper = "^ 0.14" url = "= 1.7" diff --git a/gen/youtube3/README.md b/gen/youtube3/README.md index 37f8af6ff5..f4bdcbaac6 100644 --- a/gen/youtube3/README.md +++ b/gen/youtube3/README.md @@ -5,88 +5,88 @@ DO NOT EDIT ! --> The `google-youtube3` library allows access to all features of the *Google YouTube* service. -This documentation was generated from *YouTube* crate version *3.0.0+20220303*, where *20220303* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v3.0.0*. +This documentation was generated from *YouTube* crate version *3.1.0+20220303*, where *20220303* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v3.1.0*. Everything else about the *YouTube* *v3* API can be found at the [official documentation site](https://developers.google.com/youtube/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/YouTube) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/YouTube) ... -* [abuse reports](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::AbuseReport) - * [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::AbuseReportInsertCall) -* [activities](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Activity) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ActivityListCall) -* [captions](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Caption) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionDeleteCall), [*download*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionDownloadCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionUpdateCall) +* [abuse reports](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::AbuseReport) + * [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::AbuseReportInsertCall) +* [activities](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Activity) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ActivityListCall) +* [captions](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Caption) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionDeleteCall), [*download*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionDownloadCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionUpdateCall) * channel banners - * [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelBannerInsertCall) -* [channel sections](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelSection) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelSectionDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelSectionInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelSectionListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelSectionUpdateCall) -* [channels](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Channel) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelUpdateCall) -* [comment threads](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentThread) - * [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentThreadInsertCall) and [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentThreadListCall) -* [comments](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Comment) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentListCall), [*mark as spam*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentMarkAsSpamCall), [*set moderation status*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentSetModerationStatuCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CommentUpdateCall) -* [i18n languages](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::I18nLanguage) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::I18nLanguageListCall) -* [i18n regions](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::I18nRegion) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::I18nRegionListCall) -* [live broadcasts](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcast) - * [*bind*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcastBindCall), [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcastDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcastInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcastListCall), [*transition*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcastTransitionCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveBroadcastUpdateCall) -* [live chat bans](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatBan) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatBanDeleteCall) and [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatBanInsertCall) -* [live chat messages](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatMessage) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatMessageDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatMessageInsertCall) and [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatMessageListCall) -* [live chat moderators](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatModerator) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatModeratorDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatModeratorInsertCall) and [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveChatModeratorListCall) -* [live streams](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveStream) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveStreamDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveStreamInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveStreamListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::LiveStreamUpdateCall) -* [members](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Member) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::MemberListCall) -* [memberships levels](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::MembershipsLevel) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::MembershipsLevelListCall) -* [playlist items](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistItem) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistItemDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistItemInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistItemListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistItemUpdateCall) -* [playlists](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Playlist) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::PlaylistUpdateCall) + * [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelBannerInsertCall) +* [channel sections](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelSection) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelSectionDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelSectionInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelSectionListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelSectionUpdateCall) +* [channels](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Channel) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelUpdateCall) +* [comment threads](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentThread) + * [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentThreadInsertCall) and [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentThreadListCall) +* [comments](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Comment) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentListCall), [*mark as spam*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentMarkAsSpamCall), [*set moderation status*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentSetModerationStatuCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CommentUpdateCall) +* [i18n languages](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::I18nLanguage) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::I18nLanguageListCall) +* [i18n regions](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::I18nRegion) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::I18nRegionListCall) +* [live broadcasts](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcast) + * [*bind*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcastBindCall), [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcastDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcastInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcastListCall), [*transition*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcastTransitionCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveBroadcastUpdateCall) +* [live chat bans](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatBan) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatBanDeleteCall) and [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatBanInsertCall) +* [live chat messages](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatMessage) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatMessageDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatMessageInsertCall) and [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatMessageListCall) +* [live chat moderators](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatModerator) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatModeratorDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatModeratorInsertCall) and [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveChatModeratorListCall) +* [live streams](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveStream) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveStreamDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveStreamInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveStreamListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::LiveStreamUpdateCall) +* [members](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Member) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::MemberListCall) +* [memberships levels](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::MembershipsLevel) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::MembershipsLevelListCall) +* [playlist items](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistItem) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistItemDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistItemInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistItemListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistItemUpdateCall) +* [playlists](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Playlist) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::PlaylistUpdateCall) * search - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::SearchListCall) -* [subscriptions](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Subscription) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::SubscriptionDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::SubscriptionInsertCall) and [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::SubscriptionListCall) -* [super chat events](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::SuperChatEvent) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::SuperChatEventListCall) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::SearchListCall) +* [subscriptions](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Subscription) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::SubscriptionDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::SubscriptionInsertCall) and [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::SubscriptionListCall) +* [super chat events](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::SuperChatEvent) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::SuperChatEventListCall) * tests - * [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::TestInsertCall) -* [third party links](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThirdPartyLink) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThirdPartyLinkDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThirdPartyLinkInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThirdPartyLinkListCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThirdPartyLinkUpdateCall) -* [thumbnails](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Thumbnail) - * [*set*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThumbnailSetCall) -* [video abuse report reasons](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoAbuseReportReason) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoAbuseReportReasonListCall) -* [video categories](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoCategory) - * [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoCategoryListCall) -* [videos](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::Video) - * [*delete*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoDeleteCall), [*get rating*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoGetRatingCall), [*insert*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoInsertCall), [*list*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoListCall), [*rate*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoRateCall), [*report abuse*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoReportAbuseCall) and [*update*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoUpdateCall) + * [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::TestInsertCall) +* [third party links](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThirdPartyLink) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThirdPartyLinkDeleteCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThirdPartyLinkInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThirdPartyLinkListCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThirdPartyLinkUpdateCall) +* [thumbnails](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Thumbnail) + * [*set*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThumbnailSetCall) +* [video abuse report reasons](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoAbuseReportReason) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoAbuseReportReasonListCall) +* [video categories](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoCategory) + * [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoCategoryListCall) +* [videos](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::Video) + * [*delete*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoDeleteCall), [*get rating*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoGetRatingCall), [*insert*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoInsertCall), [*list*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoListCall), [*rate*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoRateCall), [*report abuse*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoReportAbuseCall) and [*update*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoUpdateCall) * watermarks - * [*set*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::WatermarkSetCall) and [*unset*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::WatermarkUnsetCall) + * [*set*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::WatermarkSetCall) and [*unset*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::WatermarkUnsetCall) * youtube - * [*v3 update comment threads*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::YoutubeV3UpdateCommentThreadCall) + * [*v3 update comment threads*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::YoutubeV3UpdateCommentThreadCall) Upload supported by ... -* [*insert captions*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionInsertCall) -* [*update captions*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionUpdateCall) -* [*insert channel banners*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ChannelBannerInsertCall) -* [*set thumbnails*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::ThumbnailSetCall) -* [*insert videos*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::VideoInsertCall) -* [*set watermarks*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::WatermarkSetCall) +* [*insert captions*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionInsertCall) +* [*update captions*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionUpdateCall) +* [*insert channel banners*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ChannelBannerInsertCall) +* [*set thumbnails*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::ThumbnailSetCall) +* [*insert videos*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::VideoInsertCall) +* [*set watermarks*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::WatermarkSetCall) Download supported by ... -* [*download captions*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/api::CaptionDownloadCall) +* [*download captions*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/api::CaptionDownloadCall) @@ -94,17 +94,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/YouTube)** +* **[Hub](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/YouTube)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::MethodsBuilder) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::CallBuilder) -* **[Resources](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Resource)** + * creates [*Method Builders*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::MethodsBuilder) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::CallBuilder) +* **[Resources](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Resource)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Part)** + * **[Parts](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Part)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::CallBuilder)** +* **[Activities](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::CallBuilder)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -167,7 +167,7 @@ let auth = oauth2::InstalledFlowAuthenticator::builder( secret, oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); -let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); // You can configure optional parameters by calling the respective setters at will, and // execute the final call using `doit()`. // Values shown here are possibly random and not representative ! @@ -207,17 +207,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Result) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Result) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Result), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Result), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::ResponseResult), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::ResponseResult), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -227,29 +227,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Delegate) to the -[Method Builder](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::CallBuilder) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Delegate) to the +[Method Builder](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::CallBuilder) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Delegate) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Delegate) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [encodable](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::RequestValue) and -[decodable](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [encodable](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::RequestValue) and +[decodable](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::Part) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::Part) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-youtube3/3.0.0+20220303/google_youtube3/client::RequestValue) are moved +* [request values](https://docs.rs/google-youtube3/3.1.0+20220303/google_youtube3/client::RequestValue) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/youtube3/src/api.rs b/gen/youtube3/src/api.rs index 2e2faf335e..9406f406f1 100644 --- a/gen/youtube3/src/api.rs +++ b/gen/youtube3/src/api.rs @@ -94,7 +94,7 @@ impl Default for Scope { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -149,7 +149,7 @@ impl<'a, > YouTube<> { YouTube { client, auth: authenticator, - _user_agent: "google-api-rust-client/3.0.0".to_string(), + _user_agent: "google-api-rust-client/3.1.0".to_string(), _base_url: "https://youtube.googleapis.com/".to_string(), _root_url: "https://youtube.googleapis.com/".to_string(), } @@ -247,7 +247,7 @@ impl<'a, > YouTube<> { } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/3.0.0`. + /// It defaults to `google-api-rust-client/3.1.0`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { @@ -5892,7 +5892,7 @@ impl client::Part for ChannelContentDetailsRelatedPlaylists {} /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `insert(...)` /// // to build up your call. @@ -5953,7 +5953,7 @@ impl<'a> AbuseReportMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -6019,7 +6019,7 @@ impl<'a> ActivityMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `download(...)`, `insert(...)`, `list(...)` and `update(...)` /// // to build up your call. @@ -6168,7 +6168,7 @@ impl<'a> CaptionMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `insert(...)` /// // to build up your call. @@ -6229,7 +6229,7 @@ impl<'a> ChannelBannerMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)`, `list(...)` and `update(...)` /// // to build up your call. @@ -6353,7 +6353,7 @@ impl<'a> ChannelSectionMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` and `update(...)` /// // to build up your call. @@ -6442,7 +6442,7 @@ impl<'a> ChannelMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `insert(...)` and `list(...)` /// // to build up your call. @@ -6530,7 +6530,7 @@ impl<'a> CommentThreadMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)`, `list(...)`, `mark_as_spam(...)`, `set_moderation_status(...)` and `update(...)` /// // to build up your call. @@ -6687,7 +6687,7 @@ impl<'a> CommentMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -6746,7 +6746,7 @@ impl<'a> I18nLanguageMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -6805,7 +6805,7 @@ impl<'a> I18nRegionMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `bind(...)`, `delete(...)`, `insert(...)`, `list(...)`, `transition(...)` and `update(...)` /// // to build up your call. @@ -6979,7 +6979,7 @@ impl<'a> LiveBroadcastMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)` and `insert(...)` /// // to build up your call. @@ -7057,7 +7057,7 @@ impl<'a> LiveChatBanMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)` and `list(...)` /// // to build up your call. @@ -7158,7 +7158,7 @@ impl<'a> LiveChatMessageMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)` and `list(...)` /// // to build up your call. @@ -7257,7 +7257,7 @@ impl<'a> LiveChatModeratorMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)`, `list(...)` and `update(...)` /// // to build up your call. @@ -7384,7 +7384,7 @@ impl<'a> LiveStreamMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -7447,7 +7447,7 @@ impl<'a> MemberMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -7505,7 +7505,7 @@ impl<'a> MembershipsLevelMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)`, `list(...)` and `update(...)` /// // to build up your call. @@ -7629,7 +7629,7 @@ impl<'a> PlaylistItemMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)`, `list(...)` and `update(...)` /// // to build up your call. @@ -7756,7 +7756,7 @@ impl<'a> PlaylistMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -7844,7 +7844,7 @@ impl<'a> SearchMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)` and `list(...)` /// // to build up your call. @@ -7950,7 +7950,7 @@ impl<'a> SubscriptionMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -8011,7 +8011,7 @@ impl<'a> SuperChatEventMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `insert(...)` /// // to build up your call. @@ -8073,7 +8073,7 @@ impl<'a> TestMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `insert(...)`, `list(...)` and `update(...)` /// // to build up your call. @@ -8193,7 +8193,7 @@ impl<'a> ThirdPartyLinkMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `set(...)` /// // to build up your call. @@ -8252,7 +8252,7 @@ impl<'a> ThumbnailMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -8311,7 +8311,7 @@ impl<'a> VideoAbuseReportReasonMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `list(...)` /// // to build up your call. @@ -8372,7 +8372,7 @@ impl<'a> VideoCategoryMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `delete(...)`, `get_rating(...)`, `insert(...)`, `list(...)`, `rate(...)`, `report_abuse(...)` and `update(...)` /// // to build up your call. @@ -8561,7 +8561,7 @@ impl<'a> VideoMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `set(...)` and `unset(...)` /// // to build up your call. @@ -8640,7 +8640,7 @@ impl<'a> WatermarkMethods<'a> { /// secret, /// oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// ).build().await.unwrap(); -/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* /// // like `v3_update_comment_threads(...)` /// // to build up your call. @@ -8706,7 +8706,7 @@ impl<'a> YoutubeMethods<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -8977,7 +8977,7 @@ impl<'a> AbuseReportInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -9303,7 +9303,7 @@ impl<'a> ActivityListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -9549,7 +9549,7 @@ impl<'a> CaptionDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -9840,7 +9840,7 @@ impl<'a> CaptionDownloadCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -10274,7 +10274,7 @@ impl<'a> CaptionInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -10582,7 +10582,7 @@ impl<'a> CaptionListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -11016,7 +11016,7 @@ impl<'a> CaptionUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -11413,7 +11413,7 @@ impl<'a> ChannelBannerInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -11660,7 +11660,7 @@ impl<'a> ChannelSectionDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -11984,7 +11984,7 @@ impl<'a> ChannelSectionInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -12305,7 +12305,7 @@ impl<'a> ChannelSectionListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -12600,7 +12600,7 @@ impl<'a> ChannelSectionUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -12960,7 +12960,7 @@ impl<'a> ChannelListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -13244,7 +13244,7 @@ impl<'a> ChannelUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -13515,7 +13515,7 @@ impl<'a> CommentThreadInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -13873,7 +13873,7 @@ impl<'a> CommentThreadListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -14093,7 +14093,7 @@ impl<'a> CommentDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -14364,7 +14364,7 @@ impl<'a> CommentInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -14663,7 +14663,7 @@ impl<'a> CommentListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -14888,7 +14888,7 @@ impl<'a> CommentMarkAsSpamCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -15138,7 +15138,7 @@ impl<'a> CommentSetModerationStatuCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -15409,7 +15409,7 @@ impl<'a> CommentUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -15656,7 +15656,7 @@ impl<'a> I18nLanguageListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -15919,7 +15919,7 @@ impl<'a> I18nRegionListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -16210,7 +16210,7 @@ impl<'a> LiveBroadcastBindCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -16471,7 +16471,7 @@ impl<'a> LiveBroadcastDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -16802,7 +16802,7 @@ impl<'a> LiveBroadcastInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -17160,7 +17160,7 @@ impl<'a> LiveBroadcastListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -17468,7 +17468,7 @@ impl<'a> LiveBroadcastTransitionCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -17781,7 +17781,7 @@ impl<'a> LiveBroadcastUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -18001,7 +18001,7 @@ impl<'a> LiveChatBanDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -18272,7 +18272,7 @@ impl<'a> LiveChatBanInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -18492,7 +18492,7 @@ impl<'a> LiveChatMessageDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -18778,7 +18778,7 @@ impl<'a> LiveChatMessageInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -19079,7 +19079,7 @@ impl<'a> LiveChatMessageListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -19299,7 +19299,7 @@ impl<'a> LiveChatModeratorDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -19585,7 +19585,7 @@ impl<'a> LiveChatModeratorInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -19862,7 +19862,7 @@ impl<'a> LiveChatModeratorListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -20123,7 +20123,7 @@ impl<'a> LiveStreamDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -20455,7 +20455,7 @@ impl<'a> LiveStreamInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -20789,7 +20789,7 @@ impl<'a> LiveStreamListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -21102,7 +21102,7 @@ impl<'a> LiveStreamUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -21409,7 +21409,7 @@ impl<'a> MemberListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -21650,7 +21650,7 @@ impl<'a> MembershipsLevelListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -21882,7 +21882,7 @@ impl<'a> PlaylistItemDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -22165,7 +22165,7 @@ impl<'a> PlaylistItemInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -22476,7 +22476,7 @@ impl<'a> PlaylistItemListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -22759,7 +22759,7 @@ impl<'a> PlaylistItemUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -22991,7 +22991,7 @@ impl<'a> PlaylistDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -23286,7 +23286,7 @@ impl<'a> PlaylistInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -23622,7 +23622,7 @@ impl<'a> PlaylistListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -23905,7 +23905,7 @@ impl<'a> PlaylistUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -24504,7 +24504,7 @@ impl<'a> SearchListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -24724,7 +24724,7 @@ impl<'a> SubscriptionDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -24995,7 +24995,7 @@ impl<'a> SubscriptionInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -25365,7 +25365,7 @@ impl<'a> SubscriptionListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -25638,7 +25638,7 @@ impl<'a> SuperChatEventListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -25919,7 +25919,7 @@ impl<'a> TestInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -26156,7 +26156,7 @@ impl<'a> ThirdPartyLinkDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -26431,7 +26431,7 @@ impl<'a> ThirdPartyLinkInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -26687,7 +26687,7 @@ impl<'a> ThirdPartyLinkListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -26956,7 +26956,7 @@ impl<'a> ThirdPartyLinkUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `upload_resumable(...)`. /// // Values shown here are possibly random and not representative ! @@ -27322,7 +27322,7 @@ impl<'a> ThumbnailSetCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -27574,7 +27574,7 @@ impl<'a> VideoAbuseReportReasonListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -27847,7 +27847,7 @@ impl<'a> VideoCategoryListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -28078,7 +28078,7 @@ impl<'a> VideoDeleteCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -28327,7 +28327,7 @@ impl<'a> VideoGetRatingCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -28771,7 +28771,7 @@ impl<'a> VideoInsertCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -29152,7 +29152,7 @@ impl<'a> VideoListCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -29383,7 +29383,7 @@ impl<'a> VideoRateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -29633,7 +29633,7 @@ impl<'a> VideoReportAbuseCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -29918,7 +29918,7 @@ impl<'a> VideoUpdateCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! @@ -30291,7 +30291,7 @@ impl<'a> WatermarkSetCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // You can configure optional parameters by calling the respective setters at will, and /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! @@ -30523,7 +30523,7 @@ impl<'a> WatermarkUnsetCall<'a> { /// # secret, /// # oauth2::InstalledFlowReturnMethod::HTTPRedirect, /// # ).build().await.unwrap(); -/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +/// # let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); /// // As the method needs a request, you would usually fill it with the desired information /// // into the respective structure. Some of the parts shown here might not be applicable ! /// // Values shown here are possibly random and not representative ! diff --git a/gen/youtube3/src/lib.rs b/gen/youtube3/src/lib.rs index f23516dfb3..d654b20086 100644 --- a/gen/youtube3/src/lib.rs +++ b/gen/youtube3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *YouTube* crate version *3.0.0+20220303*, where *20220303* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v3.0.0*. +//! This documentation was generated from *YouTube* crate version *3.1.0+20220303*, where *20220303* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v3.1.0*. //! //! Everything else about the *YouTube* *v3* API can be found at the //! [official documentation site](https://developers.google.com/youtube/). @@ -168,7 +168,7 @@ //! secret, //! oauth2::InstalledFlowReturnMethod::HTTPRedirect, //! ).build().await.unwrap(); -//! let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); +//! let mut hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); //! // You can configure optional parameters by calling the respective setters at will, and //! // execute the final call using `doit()`. //! // Values shown here are possibly random and not representative !