Beispiel #1
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     SharepointSites             = new SharepointSites(this);
     SharepointSite              = new SharepointSite(this);
     Accounts                    = new Accounts(this);
     Aliases                     = new Aliases(this);
     Applications                = new Applications(this);
     Corporatehistorysummaries   = new Corporatehistorysummaries(this);
     Corporateroles              = new Corporateroles(this);
     Establishments              = new Establishments(this);
     Adoxiolegalentities         = new Adoxiolegalentities(this);
     AdoxioLicencetypes          = new AdoxioLicencetypes(this);
     Licenses                    = new Licenses(this);
     Personalhistorysummaries    = new Personalhistorysummaries(this);
     Policydocuments             = new Policydocuments(this);
     Previousaddresses           = new Previousaddresses(this);
     Spddatarows                 = new Spddatarows(this);
     Spdexportses                = new Spdexportses(this);
     AdoxioTiedhouseassociations = new AdoxioTiedhouseassociations(this);
     AdoxioTiedhouseconnections  = new AdoxioTiedhouseconnections(this);
     Workers                     = new Workers(this);
     Contacts                    = new Contacts(this);
     Invoices                    = new Invoices(this);
     SharepointDocumentLocations = new SharepointDocumentLocations(this);
     BaseUri                     = new System.Uri("http://localhost");
     SerializationSettings       = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new  List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
 }
Beispiel #2
0
 /// <summary>
 /// Get entities from sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='top'>
 /// Show only the first n items
 /// </param>
 /// <param name='skip'>
 /// Skip only the first n items
 /// </param>
 /// <param name='search'>
 /// Search items by search phrases
 /// </param>
 /// <param name='filter'>
 /// Filter items by property values
 /// </param>
 /// <param name='count'>
 /// Include count of items
 /// </param>
 /// <param name='orderby'>
 /// Order items by property values
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetOKResponseModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModel> GetAsync(this ISharepointDocumentLocations operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Get entities from sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='top'>
 /// Show only the first n items
 /// </param>
 /// <param name='skip'>
 /// Skip only the first n items
 /// </param>
 /// <param name='search'>
 /// Search items by search phrases
 /// </param>
 /// <param name='filter'>
 /// Filter items by property values
 /// </param>
 /// <param name='count'>
 /// Include count of items
 /// </param>
 /// <param name='orderby'>
 /// Order items by property values
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 public static GetOKResponseModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModelModel Get(this ISharepointDocumentLocations operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>))
 {
     return(operations.GetAsync(top, skip, search, filter, count, orderby, select, expand).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Invoke function RetrieveAbsoluteAndSiteCollectionUrl
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='entity'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MicrosoftDynamicsCRMRetrieveAbsoluteAndSiteCollectionUrlResponse> RetrieveAbsoluteAndSiteCollectionUrlAsync(this ISharepointDocumentLocations operations, string entity, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RetrieveAbsoluteAndSiteCollectionUrlWithHttpMessagesAsync(entity, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #5
0
 /// <summary>
 /// Invoke function RetrieveAbsoluteAndSiteCollectionUrl
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='entity'>
 /// </param>
 public static MicrosoftDynamicsCRMRetrieveAbsoluteAndSiteCollectionUrlResponse RetrieveAbsoluteAndSiteCollectionUrl(this ISharepointDocumentLocations operations, string entity)
 {
     return(operations.RetrieveAbsoluteAndSiteCollectionUrlAsync(entity).GetAwaiter().GetResult());
 }
Beispiel #6
0
 /// <summary>
 /// Update entity in sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharepointdocumentlocationid'>
 /// key: sharepointdocumentlocationid
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateAsync(this ISharepointDocumentLocations operations, string sharepointdocumentlocationid, MicrosoftDynamicsCRMsharepointdocumentlocation body, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateWithHttpMessagesAsync(sharepointdocumentlocationid, body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Beispiel #7
0
 /// <summary>
 /// Update entity in sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharepointdocumentlocationid'>
 /// key: sharepointdocumentlocationid
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 public static void Update(this ISharepointDocumentLocations operations, string sharepointdocumentlocationid, MicrosoftDynamicsCRMsharepointdocumentlocation body)
 {
     operations.UpdateAsync(sharepointdocumentlocationid, body).GetAwaiter().GetResult();
 }
Beispiel #8
0
 /// <summary>
 /// Get entity from sharepointdocumentlocations by key
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharepointdocumentlocationid'>
 /// key: sharepointdocumentlocationid
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MicrosoftDynamicsCRMsharepointdocumentlocation> GetByKeyAsync(this ISharepointDocumentLocations operations, string sharepointdocumentlocationid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetByKeyWithHttpMessagesAsync(sharepointdocumentlocationid, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #9
0
 /// <summary>
 /// Get entity from sharepointdocumentlocations by key
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharepointdocumentlocationid'>
 /// key: sharepointdocumentlocationid
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 public static MicrosoftDynamicsCRMsharepointdocumentlocation GetByKey(this ISharepointDocumentLocations operations, string sharepointdocumentlocationid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>))
 {
     return(operations.GetByKeyAsync(sharepointdocumentlocationid, select, expand).GetAwaiter().GetResult());
 }
Beispiel #10
0
 /// <summary>
 /// Delete entity from sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharepointdocumentlocationid'>
 /// key: sharepointdocumentlocationid
 /// </param>
 /// <param name='ifMatch'>
 /// ETag
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this ISharepointDocumentLocations operations, string sharepointdocumentlocationid, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(sharepointdocumentlocationid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Beispiel #11
0
 /// <summary>
 /// Delete entity from sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharepointdocumentlocationid'>
 /// key: sharepointdocumentlocationid
 /// </param>
 /// <param name='ifMatch'>
 /// ETag
 /// </param>
 public static void Delete(this ISharepointDocumentLocations operations, string sharepointdocumentlocationid, string ifMatch = default(string))
 {
     operations.DeleteAsync(sharepointdocumentlocationid, ifMatch).GetAwaiter().GetResult();
 }
Beispiel #12
0
 /// <summary>
 /// Add new entity to sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// New entity
 /// </param>
 /// <param name='prefer'>
 /// Required in order for the service to return a JSON representation of the
 /// object.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MicrosoftDynamicsCRMsharepointdocumentlocation> CreateAsync(this ISharepointDocumentLocations operations, MicrosoftDynamicsCRMsharepointdocumentlocation body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #13
0
 /// <summary>
 /// Add new entity to sharepointdocumentlocations
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// New entity
 /// </param>
 /// <param name='prefer'>
 /// Required in order for the service to return a JSON representation of the
 /// object.
 /// </param>
 public static MicrosoftDynamicsCRMsharepointdocumentlocation Create(this ISharepointDocumentLocations operations, MicrosoftDynamicsCRMsharepointdocumentlocation body, string prefer = "return=representation")
 {
     return(operations.CreateAsync(body, prefer).GetAwaiter().GetResult());
 }