Esempio n. 1
0
        /// <summary>
        /// Links resource to a organization
        /// <param name="resource"><see cref="OrganizationResourcesRequest"/></param>
        /// </summary>
        /// <param name="resource"></param>
        public async Task LinkResourceToOrganization(OrganizationResourcesRequest resource)
        {
            Ensure.ArgumentNotNull(resource, "resource");

            await ApiConnection.Put <OrganizationResourcesRequest>(ApiUrls.LinkResourceToOrganization(), resource);
        }
Esempio n. 2
0
 /// <summary>
 /// Unlink a resource from a organization .
 /// </summary>
 /// <remarks>
 /// <param name="resource"><see cref="OrganizationResourcesRequest"/></param>
 /// This method requires authentication.
 /// See the <a href="http://gs2017dev.sdl.com:41234/documentation/api/index#/">API documentation</a> for more information.
 /// </remarks>
 /// <exception cref="AuthorizationException">
 /// Thrown when the current user does not have permission to make the request.
 /// </exception>
 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
 public async Task UnlinkResourceToOrganization(OrganizationResourcesRequest resource)
 {
     Ensure.ArgumentNotNull(resource, "resource");
     await ApiConnection.Delete(ApiUrls.LinkResourceToOrganization(), resource, "application/json");
 }
Esempio n. 3
0
 /// <summary>
 /// Moves a resource to a organization .
 /// </summary>
 /// <remarks>
 /// <param name="request"><see cref="OrganizationResourcesRequest"/></param>
 /// This method requires authentication.
 /// See the <a href="http://gs2017dev.sdl.com:41234/documentation/api/index#/">API documentation</a> for more information.
 /// </remarks>
 /// <exception cref="AuthorizationException">
 /// Thrown when the current user does not have permission to make the request.
 /// </exception>
 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
 public Task MoveResourceToOrganization(OrganizationResourcesRequest request)
 {
     return(ApiConnection.Put <string>(ApiUrls.MoveOrganizationsResources(), request));
 }