/// <summary>
        /// Permit a list of users to access a private channel This method gives multiple users access to the specified private channel. The authenticated user must be the owner of the channel.
        /// </summary>
        /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="channelId">The ID of the channel.</param>
        /// <param name="inlineObject6"></param>
        /// <returns>Task of List&lt;User&gt;</returns>
        public async System.Threading.Tasks.Task <List <User> > SetChannelPrivacyUsersAsync(decimal channelId, InlineObject6 inlineObject6)
        {
            VimeoOpenApi.Client.ApiResponse <List <User> > localVarResponse = await SetChannelPrivacyUsersAsyncWithHttpInfo(channelId, inlineObject6);

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Permit a list of users to access a private channel This method gives multiple users access to the specified private channel. The authenticated user must be the owner of the channel.
        /// </summary>
        /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="channelId">The ID of the channel.</param>
        /// <param name="inlineObject6"></param>
        /// <returns>Task of ApiResponse (List&lt;User&gt;)</returns>
        public async System.Threading.Tasks.Task <VimeoOpenApi.Client.ApiResponse <List <User> > > SetChannelPrivacyUsersAsyncWithHttpInfo(decimal channelId, InlineObject6 inlineObject6)
        {
            // verify the required parameter 'inlineObject6' is set
            if (inlineObject6 == null)
            {
                throw new VimeoOpenApi.Client.ApiException(400, "Missing required parameter 'inlineObject6' when calling ChannelsPrivateChannelMembersApi->SetChannelPrivacyUsers");
            }


            VimeoOpenApi.Client.RequestOptions localVarRequestOptions = new VimeoOpenApi.Client.RequestOptions();

            String[] _contentTypes = new String[] {
                "application/vnd.vimeo.user+json"
            };

            // to determine the Accept header
            String[] _accepts = new String[] {
                "application/vnd.vimeo.user+json"
            };

            foreach (var _contentType in _contentTypes)
            {
                localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
            }

            foreach (var _accept in _accepts)
            {
                localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
            }

            localVarRequestOptions.PathParameters.Add("channel_id", VimeoOpenApi.Client.ClientUtils.ParameterToString(channelId)); // path parameter
            localVarRequestOptions.Data = inlineObject6;

            // authentication (oauth2) required
            // oauth required
            if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
            {
                localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
            }

            // make the HTTP request

            var localVarResponse = await this.AsynchronousClient.PutAsync <List <User> >("/channels/{channel_id}/privacy/users", localVarRequestOptions, this.Configuration);

            if (this.ExceptionFactory != null)
            {
                Exception _exception = this.ExceptionFactory("SetChannelPrivacyUsers", localVarResponse);
                if (_exception != null)
                {
                    throw _exception;
                }
            }

            return(localVarResponse);
        }
 /// <summary>
 /// Permit a list of users to access a private channel This method gives multiple users access to the specified private channel. The authenticated user must be the owner of the channel.
 /// </summary>
 /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="channelId">The ID of the channel.</param>
 /// <param name="inlineObject6"></param>
 /// <returns>List&lt;User&gt;</returns>
 public List <User> SetChannelPrivacyUsers(decimal channelId, InlineObject6 inlineObject6)
 {
     VimeoOpenApi.Client.ApiResponse <List <User> > localVarResponse = SetChannelPrivacyUsersWithHttpInfo(channelId, inlineObject6);
     return(localVarResponse.Data);
 }