diff --git a/gen/youtube3/src/lib.rs b/gen/youtube3/src/lib.rs index 0778cf0259..475d0ca94b 100644 --- a/gen/youtube3/src/lib.rs +++ b/gen/youtube3/src/lib.rs @@ -3525,6 +3525,7 @@ impl<'a, C, NC, A> I18nLanguageMethodsBuilder<'a, C, NC, A> { _part: part.to_string(), _hl: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3586,6 +3587,7 @@ impl<'a, C, NC, A> ChannelBannerMethodsBuilder<'a, C, NC, A> { _request: request.clone(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3646,6 +3648,7 @@ impl<'a, C, NC, A> ChannelSectionMethodsBuilder<'a, C, NC, A> { _id: Default::default(), _channel_id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3661,6 +3664,7 @@ impl<'a, C, NC, A> ChannelSectionMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3674,6 +3678,7 @@ impl<'a, C, NC, A> ChannelSectionMethodsBuilder<'a, C, NC, A> { _id: id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3688,6 +3693,7 @@ impl<'a, C, NC, A> ChannelSectionMethodsBuilder<'a, C, NC, A> { _part: request.to_parts(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3747,6 +3753,7 @@ impl<'a, C, NC, A> GuideCategoryMethodsBuilder<'a, C, NC, A> { _id: Default::default(), _hl: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3806,6 +3813,7 @@ impl<'a, C, NC, A> PlaylistMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3825,6 +3833,7 @@ impl<'a, C, NC, A> PlaylistMethodsBuilder<'a, C, NC, A> { _id: Default::default(), _channel_id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3838,6 +3847,7 @@ impl<'a, C, NC, A> PlaylistMethodsBuilder<'a, C, NC, A> { _id: id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3852,6 +3862,7 @@ impl<'a, C, NC, A> PlaylistMethodsBuilder<'a, C, NC, A> { _part: request.to_parts(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3909,6 +3920,7 @@ impl<'a, C, NC, A> ThumbnailMethodsBuilder<'a, C, NC, A> { _video_id: video_id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3975,6 +3987,7 @@ impl<'a, C, NC, A> VideoMethodsBuilder<'a, C, NC, A> { _hl: Default::default(), _chart: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -3989,6 +4002,7 @@ impl<'a, C, NC, A> VideoMethodsBuilder<'a, C, NC, A> { _rating: rating.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4002,6 +4016,7 @@ impl<'a, C, NC, A> VideoMethodsBuilder<'a, C, NC, A> { _id: id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4015,6 +4030,7 @@ impl<'a, C, NC, A> VideoMethodsBuilder<'a, C, NC, A> { _id: id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4029,6 +4045,7 @@ impl<'a, C, NC, A> VideoMethodsBuilder<'a, C, NC, A> { _part: request.to_parts(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4047,6 +4064,7 @@ impl<'a, C, NC, A> VideoMethodsBuilder<'a, C, NC, A> { _notify_subscribers: Default::default(), _auto_levels: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4104,6 +4122,7 @@ impl<'a, C, NC, A> SubscriptionMethodsBuilder<'a, C, NC, A> { _request: request.clone(), _part: request.to_parts(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4126,6 +4145,7 @@ impl<'a, C, NC, A> SubscriptionMethodsBuilder<'a, C, NC, A> { _for_channel_id: Default::default(), _channel_id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4138,6 +4158,7 @@ impl<'a, C, NC, A> SubscriptionMethodsBuilder<'a, C, NC, A> { hub: self.hub, _id: id.to_string(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4223,6 +4244,7 @@ impl<'a, C, NC, A> SearchMethodsBuilder<'a, C, NC, A> { _channel_type: Default::default(), _channel_id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4280,6 +4302,7 @@ impl<'a, C, NC, A> I18nRegionMethodsBuilder<'a, C, NC, A> { _part: part.to_string(), _hl: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4339,6 +4362,7 @@ impl<'a, C, NC, A> LiveStreamMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4353,6 +4377,7 @@ impl<'a, C, NC, A> LiveStreamMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4371,6 +4396,7 @@ impl<'a, C, NC, A> LiveStreamMethodsBuilder<'a, C, NC, A> { _max_results: Default::default(), _id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4386,6 +4412,7 @@ impl<'a, C, NC, A> LiveStreamMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4444,6 +4471,7 @@ impl<'a, C, NC, A> ChannelMethodsBuilder<'a, C, NC, A> { _part: request.to_parts(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4465,6 +4493,7 @@ impl<'a, C, NC, A> ChannelMethodsBuilder<'a, C, NC, A> { _for_username: Default::default(), _category_id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4521,6 +4550,7 @@ impl<'a, C, NC, A> PlaylistItemMethodsBuilder<'a, C, NC, A> { hub: self.hub, _id: id.to_string(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4539,6 +4569,7 @@ impl<'a, C, NC, A> PlaylistItemMethodsBuilder<'a, C, NC, A> { _max_results: Default::default(), _id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4553,6 +4584,7 @@ impl<'a, C, NC, A> PlaylistItemMethodsBuilder<'a, C, NC, A> { _part: request.to_parts(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4566,6 +4598,7 @@ impl<'a, C, NC, A> PlaylistItemMethodsBuilder<'a, C, NC, A> { _request: request.clone(), _part: request.to_parts(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4624,6 +4657,7 @@ impl<'a, C, NC, A> WatermarkMethodsBuilder<'a, C, NC, A> { _channel_id: channel_id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4637,6 +4671,7 @@ impl<'a, C, NC, A> WatermarkMethodsBuilder<'a, C, NC, A> { _channel_id: channel_id.to_string(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4699,6 +4734,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _offset_time_ms: Default::default(), _display_slate: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4714,6 +4750,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4729,6 +4766,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4745,6 +4783,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4764,6 +4803,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _id: Default::default(), _broadcast_status: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4778,6 +4818,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4794,6 +4835,7 @@ impl<'a, C, NC, A> LiveBroadcastMethodsBuilder<'a, C, NC, A> { _on_behalf_of_content_owner_channel: Default::default(), _on_behalf_of_content_owner: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4853,6 +4895,7 @@ impl<'a, C, NC, A> VideoCategoryMethodsBuilder<'a, C, NC, A> { _id: Default::default(), _hl: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4917,6 +4960,7 @@ impl<'a, C, NC, A> ActivityMethodsBuilder<'a, C, NC, A> { _home: Default::default(), _channel_id: Default::default(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4932,6 +4976,7 @@ impl<'a, C, NC, A> ActivityMethodsBuilder<'a, C, NC, A> { _request: request.clone(), _part: request.to_parts(), _delegate: Default::default(), + _scope: Default::default(), _additional_params: Default::default() } } @@ -4987,6 +5032,7 @@ impl<'a, C, NC, A> ActivityMethodsBuilder<'a, C, NC, A> { /// // Values shown here are possibly random and not representative ! /// let result = hub.i18n_languages().list("part") /// .hl("eos") +/// .scope("Stet") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -5000,6 +5046,7 @@ pub struct I18nLanguageListMethodBuilder<'a, C, NC, A> _part: String, _hl: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5010,7 +5057,7 @@ impl<'a, C, NC, A> I18nLanguageListMethodBuilder<'a, C, NC, A> where NC: hyper:: /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); params.push(("part", self._part.to_string())); if self._hl.is_some() { params.push(("hl", self._hl.unwrap().to_string())); @@ -5072,6 +5119,21 @@ impl<'a, C, NC, A> I18nLanguageListMethodBuilder<'a, C, NC, A> where NC: hyper:: self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> I18nLanguageListMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -5125,7 +5187,8 @@ impl<'a, C, NC, A> I18nLanguageListMethodBuilder<'a, C, NC, A> where NC: hyper:: /// // execute the final call using `upload_resumable(...)`. /// // Values shown here are possibly random and not representative ! /// let result = hub.channel_banners().insert(&req) -/// .on_behalf_of_content_owner("Stet") +/// .on_behalf_of_content_owner("dolor") +/// .scope("sed") /// .upload_resumable(fs::File::open("file.ext").unwrap(), 282, "application/octet-stream".parse().unwrap()); /// // TODO: show how to handle the result ! /// # } @@ -5139,6 +5202,7 @@ pub struct ChannelBannerInsertMethodBuilder<'a, C, NC, A> _request: ChannelBannerResource, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5149,7 +5213,7 @@ impl<'a, C, NC, A> ChannelBannerInsertMethodBuilder<'a, C, NC, A> where NC: hype /// Perform the operation you have build so far. fn doit(mut self, stream: Option<(R, u64, mime::Mime)>, resumeable_stream: Option<(RS, u64, mime::Mime)>) -> Result where R: Read, RS: ReadSeek { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); } @@ -5235,6 +5299,21 @@ impl<'a, C, NC, A> ChannelBannerInsertMethodBuilder<'a, C, NC, A> where NC: hype self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> ChannelBannerInsertMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -5291,10 +5370,11 @@ impl<'a, C, NC, A> ChannelBannerInsertMethodBuilder<'a, C, NC, A> where NC: hype /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.channel_sections().list("part") -/// .on_behalf_of_content_owner("sed") -/// .mine(false) -/// .id("ipsum") -/// .channel_id("eos") +/// .on_behalf_of_content_owner("ipsum") +/// .mine(true) +/// .id("duo") +/// .channel_id("sadipscing") +/// .scope("dolor") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -5311,6 +5391,7 @@ pub struct ChannelSectionListMethodBuilder<'a, C, NC, A> _id: Option, _channel_id: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5321,7 +5402,7 @@ impl<'a, C, NC, A> ChannelSectionListMethodBuilder<'a, C, NC, A> where NC: hyper /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(6 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(7 + self._additional_params.len()); params.push(("part", self._part.to_string())); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); @@ -5421,6 +5502,21 @@ impl<'a, C, NC, A> ChannelSectionListMethodBuilder<'a, C, NC, A> where NC: hyper self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> ChannelSectionListMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -5483,8 +5579,9 @@ impl<'a, C, NC, A> ChannelSectionListMethodBuilder<'a, C, NC, A> where NC: hyper /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.channel_sections().insert(&req) -/// .on_behalf_of_content_owner_channel("duo") -/// .on_behalf_of_content_owner("sadipscing") +/// .on_behalf_of_content_owner_channel("consetetur") +/// .on_behalf_of_content_owner("ea") +/// .scope("sit") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -5500,6 +5597,7 @@ pub struct ChannelSectionInsertMethodBuilder<'a, C, NC, A> _on_behalf_of_content_owner_channel: Option, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5510,7 +5608,7 @@ impl<'a, C, NC, A> ChannelSectionInsertMethodBuilder<'a, C, NC, A> where NC: hyp /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(5 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(6 + self._additional_params.len()); if self._part.len() == 0 { self._part = self._request.to_parts(); } @@ -5611,6 +5709,21 @@ impl<'a, C, NC, A> ChannelSectionInsertMethodBuilder<'a, C, NC, A> where NC: hyp self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> ChannelSectionInsertMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -5653,7 +5766,8 @@ impl<'a, C, NC, A> ChannelSectionInsertMethodBuilder<'a, C, NC, A> where NC: hyp /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.channel_sections().delete("id") -/// .on_behalf_of_content_owner("consetetur") +/// .on_behalf_of_content_owner("invidunt") +/// .scope("et") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -5667,6 +5781,7 @@ pub struct ChannelSectionDeleteMethodBuilder<'a, C, NC, A> _id: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5677,7 +5792,7 @@ impl<'a, C, NC, A> ChannelSectionDeleteMethodBuilder<'a, C, NC, A> where NC: hyp /// Perform the operation you have build so far. pub fn doit(mut self) -> Result<()> { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); params.push(("id", self._id.to_string())); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); @@ -5736,6 +5851,21 @@ impl<'a, C, NC, A> ChannelSectionDeleteMethodBuilder<'a, C, NC, A> where NC: hyp self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> ChannelSectionDeleteMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -5798,7 +5928,8 @@ impl<'a, C, NC, A> ChannelSectionDeleteMethodBuilder<'a, C, NC, A> where NC: hyp /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.channel_sections().update(&req) -/// .on_behalf_of_content_owner("ea") +/// .on_behalf_of_content_owner("sit") +/// .scope("takimata") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -5813,6 +5944,7 @@ pub struct ChannelSectionUpdateMethodBuilder<'a, C, NC, A> _part: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5823,7 +5955,7 @@ impl<'a, C, NC, A> ChannelSectionUpdateMethodBuilder<'a, C, NC, A> where NC: hyp /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(5 + self._additional_params.len()); if self._part.len() == 0 { self._part = self._request.to_parts(); } @@ -5909,6 +6041,21 @@ impl<'a, C, NC, A> ChannelSectionUpdateMethodBuilder<'a, C, NC, A> where NC: hyp self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> ChannelSectionUpdateMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -5964,9 +6111,10 @@ impl<'a, C, NC, A> ChannelSectionUpdateMethodBuilder<'a, C, NC, A> where NC: hyp /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.guide_categories().list("part") -/// .region_code("sanctus") -/// .id("invidunt") -/// .hl("et") +/// .region_code("consetetur") +/// .id("elitr") +/// .hl("sed") +/// .scope("sea") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -5982,6 +6130,7 @@ pub struct GuideCategoryListMethodBuilder<'a, C, NC, A> _id: Option, _hl: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -5992,7 +6141,7 @@ impl<'a, C, NC, A> GuideCategoryListMethodBuilder<'a, C, NC, A> where NC: hyper: /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(5 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(6 + self._additional_params.len()); params.push(("part", self._part.to_string())); if self._region_code.is_some() { params.push(("regionCode", self._region_code.unwrap().to_string())); @@ -6078,6 +6227,21 @@ impl<'a, C, NC, A> GuideCategoryListMethodBuilder<'a, C, NC, A> where NC: hyper: self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> GuideCategoryListMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -6140,8 +6304,9 @@ impl<'a, C, NC, A> GuideCategoryListMethodBuilder<'a, C, NC, A> where NC: hyper: /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.playlists().insert(&req) -/// .on_behalf_of_content_owner_channel("sit") -/// .on_behalf_of_content_owner("takimata") +/// .on_behalf_of_content_owner_channel("diam") +/// .on_behalf_of_content_owner("clita") +/// .scope("sed") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -6157,6 +6322,7 @@ pub struct PlaylistInsertMethodBuilder<'a, C, NC, A> _on_behalf_of_content_owner_channel: Option, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -6167,7 +6333,7 @@ impl<'a, C, NC, A> PlaylistInsertMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(5 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(6 + self._additional_params.len()); if self._part.len() == 0 { self._part = self._request.to_parts(); } @@ -6268,6 +6434,21 @@ impl<'a, C, NC, A> PlaylistInsertMethodBuilder<'a, C, NC, A> where NC: hyper::ne self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> PlaylistInsertMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -6325,13 +6506,14 @@ impl<'a, C, NC, A> PlaylistInsertMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.playlists().list("part") -/// .page_token("consetetur") -/// .on_behalf_of_content_owner_channel("elitr") -/// .on_behalf_of_content_owner("sed") +/// .page_token("labore") +/// .on_behalf_of_content_owner_channel("kasd") +/// .on_behalf_of_content_owner("elitr") /// .mine(true) -/// .max_results(60) -/// .id("clita") -/// .channel_id("sed") +/// .max_results(79) +/// .id("kasd") +/// .channel_id("ea") +/// .scope("rebum.") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -6351,6 +6533,7 @@ pub struct PlaylistListMethodBuilder<'a, C, NC, A> _id: Option, _channel_id: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -6361,7 +6544,7 @@ impl<'a, C, NC, A> PlaylistListMethodBuilder<'a, C, NC, A> where NC: hyper::net: /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(9 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(10 + self._additional_params.len()); params.push(("part", self._part.to_string())); if self._page_token.is_some() { params.push(("pageToken", self._page_token.unwrap().to_string())); @@ -6499,6 +6682,21 @@ impl<'a, C, NC, A> PlaylistListMethodBuilder<'a, C, NC, A> where NC: hyper::net: self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> PlaylistListMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -6541,7 +6739,8 @@ impl<'a, C, NC, A> PlaylistListMethodBuilder<'a, C, NC, A> where NC: hyper::net: /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.playlists().delete("id") -/// .on_behalf_of_content_owner("labore") +/// .on_behalf_of_content_owner("sadipscing") +/// .scope("nonumy") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -6555,6 +6754,7 @@ pub struct PlaylistDeleteMethodBuilder<'a, C, NC, A> _id: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -6565,7 +6765,7 @@ impl<'a, C, NC, A> PlaylistDeleteMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// Perform the operation you have build so far. pub fn doit(mut self) -> Result<()> { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); params.push(("id", self._id.to_string())); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); @@ -6624,6 +6824,21 @@ impl<'a, C, NC, A> PlaylistDeleteMethodBuilder<'a, C, NC, A> where NC: hyper::ne self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> PlaylistDeleteMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -6686,7 +6901,8 @@ impl<'a, C, NC, A> PlaylistDeleteMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.playlists().update(&req) -/// .on_behalf_of_content_owner("kasd") +/// .on_behalf_of_content_owner("sed") +/// .scope("et") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -6701,6 +6917,7 @@ pub struct PlaylistUpdateMethodBuilder<'a, C, NC, A> _part: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -6711,7 +6928,7 @@ impl<'a, C, NC, A> PlaylistUpdateMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(5 + self._additional_params.len()); if self._part.len() == 0 { self._part = self._request.to_parts(); } @@ -6799,6 +7016,21 @@ impl<'a, C, NC, A> PlaylistUpdateMethodBuilder<'a, C, NC, A> where NC: hyper::ne self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> PlaylistUpdateMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -6842,7 +7074,8 @@ impl<'a, C, NC, A> PlaylistUpdateMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// // execute the final call using `upload_resumable(...)`. /// // Values shown here are possibly random and not representative ! /// let result = hub.thumbnails().set("videoId") -/// .on_behalf_of_content_owner("kasd") +/// .on_behalf_of_content_owner("diam") +/// .scope("et") /// .upload_resumable(fs::File::open("file.ext").unwrap(), 282, "application/octet-stream".parse().unwrap()); /// // TODO: show how to handle the result ! /// # } @@ -6856,6 +7089,7 @@ pub struct ThumbnailSetMethodBuilder<'a, C, NC, A> _video_id: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -6866,7 +7100,7 @@ impl<'a, C, NC, A> ThumbnailSetMethodBuilder<'a, C, NC, A> where NC: hyper::net: /// Perform the operation you have build so far. fn doit(mut self, stream: Option<(R, u64, mime::Mime)>, resumeable_stream: Option<(RS, u64, mime::Mime)>) -> Result where R: Read, RS: ReadSeek { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); params.push(("videoId", self._video_id.to_string())); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); @@ -6952,6 +7186,21 @@ impl<'a, C, NC, A> ThumbnailSetMethodBuilder<'a, C, NC, A> where NC: hyper::net: self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> ThumbnailSetMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -7018,16 +7267,17 @@ impl<'a, C, NC, A> ThumbnailSetMethodBuilder<'a, C, NC, A> where NC: hyper::net: /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.videos().list("part") -/// .video_category_id("kasd") -/// .region_code("ea") -/// .page_token("rebum.") -/// .on_behalf_of_content_owner("dolor") -/// .my_rating("sadipscing") -/// .max_results(10) -/// .locale("sed") -/// .id("et") -/// .hl("gubergren") -/// .chart("diam") +/// .video_category_id("sed") +/// .region_code("consetetur") +/// .page_token("aliquyam") +/// .on_behalf_of_content_owner("accusam") +/// .my_rating("amet.") +/// .max_results(87) +/// .locale("erat") +/// .id("amet") +/// .hl("accusam") +/// .chart("amet.") +/// .scope("erat") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -7050,6 +7300,7 @@ pub struct VideoListMethodBuilder<'a, C, NC, A> _hl: Option, _chart: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -7060,7 +7311,7 @@ impl<'a, C, NC, A> VideoListMethodBuilder<'a, C, NC, A> where NC: hyper::net::Ne /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(12 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(13 + self._additional_params.len()); params.push(("part", self._part.to_string())); if self._video_category_id.is_some() { params.push(("videoCategoryId", self._video_category_id.unwrap().to_string())); @@ -7240,6 +7491,21 @@ impl<'a, C, NC, A> VideoListMethodBuilder<'a, C, NC, A> where NC: hyper::net::Ne self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> VideoListMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -7282,7 +7548,8 @@ impl<'a, C, NC, A> VideoListMethodBuilder<'a, C, NC, A> where NC: hyper::net::Ne /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.videos().rate("id", "rating") -/// .on_behalf_of_content_owner("sed") +/// .on_behalf_of_content_owner("sit") +/// .scope("ipsum") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -7297,6 +7564,7 @@ pub struct VideoRateMethodBuilder<'a, C, NC, A> _rating: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -7307,7 +7575,7 @@ impl<'a, C, NC, A> VideoRateMethodBuilder<'a, C, NC, A> where NC: hyper::net::Ne /// Perform the operation you have build so far. pub fn doit(mut self) -> Result<()> { - let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(5 + self._additional_params.len()); params.push(("id", self._id.to_string())); params.push(("rating", self._rating.to_string())); if self._on_behalf_of_content_owner.is_some() { @@ -7377,6 +7645,21 @@ impl<'a, C, NC, A> VideoRateMethodBuilder<'a, C, NC, A> where NC: hyper::net::Ne self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> VideoRateMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -7419,7 +7702,8 @@ impl<'a, C, NC, A> VideoRateMethodBuilder<'a, C, NC, A> where NC: hyper::net::Ne /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.videos().get_rating("id") -/// .on_behalf_of_content_owner("aliquyam") +/// .on_behalf_of_content_owner("amet.") +/// .scope("rebum.") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -7433,6 +7717,7 @@ pub struct VideoGetRatingMethodBuilder<'a, C, NC, A> _id: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -7443,7 +7728,7 @@ impl<'a, C, NC, A> VideoGetRatingMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// Perform the operation you have build so far. pub fn doit(mut self) -> Result { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); params.push(("id", self._id.to_string())); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); @@ -7502,6 +7787,21 @@ impl<'a, C, NC, A> VideoGetRatingMethodBuilder<'a, C, NC, A> where NC: hyper::ne self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> VideoGetRatingMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -7544,7 +7844,8 @@ impl<'a, C, NC, A> VideoGetRatingMethodBuilder<'a, C, NC, A> where NC: hyper::ne /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.videos().delete("id") -/// .on_behalf_of_content_owner("amet.") +/// .on_behalf_of_content_owner("voluptua.") +/// .scope("dolor") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -7558,6 +7859,7 @@ pub struct VideoDeleteMethodBuilder<'a, C, NC, A> _id: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -7568,7 +7870,7 @@ impl<'a, C, NC, A> VideoDeleteMethodBuilder<'a, C, NC, A> where NC: hyper::net:: /// Perform the operation you have build so far. pub fn doit(mut self) -> Result<()> { - let mut params: Vec<(&str, String)> = Vec::with_capacity(3 + self._additional_params.len()); + let mut params: Vec<(&str, String)> = Vec::with_capacity(4 + self._additional_params.len()); params.push(("id", self._id.to_string())); if self._on_behalf_of_content_owner.is_some() { params.push(("onBehalfOfContentOwner", self._on_behalf_of_content_owner.unwrap().to_string())); @@ -7627,6 +7929,21 @@ impl<'a, C, NC, A> VideoDeleteMethodBuilder<'a, C, NC, A> where NC: hyper::net:: self._delegate = Some(new_value); self } + /// Sets the *scope* property to the given value. + /// + /// + /// Identifies the authorization scope for the method you are building. + /// + /// Use this method to actively specify which scope should be used, instead of relying on the automated algorithm which + /// simply prefers read-only scopes over those who are not. + /// + /// Usually there is more than one suitable scope to authorize an operation, some of which may + /// encompass more rights than others. For example, for listing resources, a *read-only* scope will be + /// sufficient, a read-write scope will do as well. + pub fn scope(mut self, new_value: &str) -> VideoDeleteMethodBuilder<'a, C, NC, A> { + self._scope = Some(new_value.to_string()); + self + } /// Set any additional parameter of the query string used in the request. /// It should be used to set parameters which are not yet available through their own @@ -7709,7 +8026,8 @@ impl<'a, C, NC, A> VideoDeleteMethodBuilder<'a, C, NC, A> where NC: hyper::net:: /// // execute the final call using `doit()`. /// // Values shown here are possibly random and not representative ! /// let result = hub.videos().update(&req) -/// .on_behalf_of_content_owner("clita") +/// .on_behalf_of_content_owner("amet") +/// .scope("dolore") /// .doit(); /// // TODO: show how to handle the result ! /// # } @@ -7724,6 +8042,7 @@ pub struct VideoUpdateMethodBuilder<'a, C, NC, A> _part: String, _on_behalf_of_content_owner: Option, _delegate: Option<&'a mut Delegate>, + _scope: Option, _additional_params: HashMap } @@ -7734,7 +8053,7 @@ impl<'a, C, NC, A> VideoUpdateMethodBuilder<'a, C, NC, A> where NC: hyper::net:: /// Perform the operation you have build so far. pub fn doit(mut self) -> Result