/// <summary> /// Initializes a new instance of the SiteRecoveryManagementClient /// class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public SiteRecoveryManagementClient(HttpClient httpClient) : base(httpClient) { this._alertSettings = new AlertSettingsOperations(this); this._events = new EventOperations(this); this._fabrics = new FabricOperations(this); this._jobs = new JobOperations(this); this._logicalNetwork = new LogicalNetworkOperations(this); this._networkMapping = new NetworkMappingOperations(this); this._network = new NetworkOperations(this); this._policies = new PolicyOperations(this); this._protectableItem = new ProtectableItemOperations(this); this._protectionContainerMapping = new ProtectionContainerMappingOperations(this); this._protectionContainer = new ProtectionContainerOperations(this); this._recoveryPlan = new RecoveryPlanOperations(this); this._recoveryPoint = new RecoveryPointOperations(this); this._recoveryServicesProvider = new RecoveryServicesProviderOperations(this); this._replicationProtectedItem = new ReplicationProtectedItemOperations(this); this._storageClassificationMapping = new StorageClassificationMappingOperations(this); this._storageClassification = new StorageClassificationOperations(this); this._vCenters = new VCenterOperations(this); this._apiVersion = "2015-01-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// The list of event categories. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <returns> /// The response of List Event Categories. /// </returns> public static EventCategoryListResponse ListEventCategories(this IEventOperations operations) { return Task.Factory.StartNew((object s) => { return ((IEventOperations)s).ListEventCategoriesAsync(); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// The count of events in a subscription. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='filterString'> /// Required. The filter string should be generated using /// Microsoft.WindowsAzure.Common.OData.FilterStringHere is an /// example:var filterString = /// FilterString.Generate<GetCountSummaryParameters> (p => /// (p.StartTime == startTime) && p.EndTime == endTime); /// </param> /// <returns> /// The event count summary response. /// </returns> public static EventCountSummaryResponse GetCountSummary(this IEventOperations operations, string filterString) { return(Task.Factory.StartNew((object s) => { return ((IEventOperations)s).GetCountSummaryAsync(filterString); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Get the list of events under the vault. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IEventOperations. /// </param> /// <param name='parameters'> /// Optional. Filter for the events to be fetched. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// The response model for the list events operation. /// </returns> public static EventListResponse List(this IEventOperations operations, EventQueryParameter parameters, CustomRequestHeaders customRequestHeaders) { return(Task.Factory.StartNew((object s) => { return ((IEventOperations)s).ListAsync(parameters, customRequestHeaders); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The List Digest Event Next operation lists the next set of digest /// events. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='nextLink'> /// Required. The next link /// </param> /// <returns> /// The List Events operation response. /// </returns> public static EventDataListResponse ListDigestEventsNext(this IEventOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IEventOperations)s).ListDigestEventsNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The List Digest Event Values operation lists the digest events. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='filterString'> /// Required. The filter string /// </param> /// <param name='selectedProperties'> /// Optional. The list of property names to be returned. You can save /// bandwith by selecting only the properties you need. /// </param> /// <returns> /// The List Events operation response. /// </returns> public static EventDataListResponse ListDigestEvents(this IEventOperations operations, string filterString, string selectedProperties) { return(Task.Factory.StartNew((object s) => { return ((IEventOperations)s).ListDigestEventsAsync(filterString, selectedProperties); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Get the list of events under the vault. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IEventOperations. /// </param> /// <param name='eventName'> /// Required. Filter for the events to be fetched. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// Model class for event response. /// </returns> public static EventResponse Get(this IEventOperations operations, string eventName, CustomRequestHeaders customRequestHeaders) { return(Task.Factory.StartNew((object s) => { return ((IEventOperations)s).GetAsync(eventName, customRequestHeaders); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the InsightsClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public InsightsClient(HttpClient httpClient) : base(httpClient) { this._eventOperations = new EventOperations(this); this._metricDefinitionOperations = new MetricDefinitionOperations(this); this._metricOperations = new MetricOperations(this); this._usageMetricOperations = new UsageMetricsOperations(this); this._apiVersion = "2014-04-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
private void InitSubApis() { this.userOperations = new UserTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.placesOperations = new PlacesTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.friendOperations = new FriendTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.feedOperations = new FeedTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.groupOperations = new GroupTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.commentOperations = new CommentTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.likeOperations = new LikeTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.eventOperations = new EventTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.mediaOperations = new MediaTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.pageOperations = new PageTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.fqlOperations = new FqlTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.questionOperations = new QuestionTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.openGraphOperations = new OpenGraphTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); }
private void InitSubApis() { this.userOperations = new UserTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.placesOperations = new PlacesTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.friendOperations = new FriendTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.feedOperations = new FeedTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.groupOperations = new GroupTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.commentOperations = new CommentTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.likeOperations = new LikeTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.eventOperations = new EventTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.mediaOperations = new MediaTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.pageOperations = new PageTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.fqlOperations = new FqlTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.questionOperations = new QuestionTemplate (this.applicationNamespace, this.RestTemplate, this.IsAuthorized); this.openGraphOperations = new OpenGraphTemplate(this.applicationNamespace, this.RestTemplate, this.IsAuthorized); }
/// <summary> /// The List Digest Event Values operation lists the digest events. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='filterString'> /// Required. The filter string /// </param> /// <param name='selectedProperties'> /// Optional. The list of property names to be returned. You can save /// bandwith by selecting only the properties you need. /// </param> /// <returns> /// The List Events operation response. /// </returns> public static Task <EventDataListResponse> ListDigestEventsAsync(this IEventOperations operations, string filterString, string selectedProperties) { return(operations.ListDigestEventsAsync(filterString, selectedProperties, CancellationToken.None)); }
/// <summary> /// The status count of events in a subscription. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='filterString'> /// Required. The filter string. /// </param> /// <returns> /// The List event status count summary operation response. /// </returns> public static Task <EventStatusCountSummaryListResponse> ListEventStatusCountSummaryItemsAsync(this IEventOperations operations, string filterString) { return(operations.ListEventStatusCountSummaryItemsAsync(filterString, CancellationToken.None)); }
/// <summary> /// The List Event Next operation lists the next set of events. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='nextLink'> /// Required. The next link works as a continuation token when all of /// the events are not returned in the response and a second call is /// required /// </param> /// <returns> /// The List Events operation response. /// </returns> public static Task <EventDataListResponse> ListEventsNextAsync(this IEventOperations operations, string nextLink) { return(operations.ListEventsNextAsync(nextLink, CancellationToken.None)); }
/// <summary> /// The count of events in a subscription. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <param name='filterString'> /// Required. The filter string should be generated using /// Microsoft.WindowsAzure.Common.OData.FilterStringHere is an /// example:var filterString = /// FilterString.Generate<GetCountSummaryParameters> (p => /// (p.StartTime == startTime) && p.EndTime == endTime); /// </param> /// <returns> /// The event count summary response. /// </returns> public static Task <EventCountSummaryResponse> GetCountSummaryAsync(this IEventOperations operations, string filterString) { return(operations.GetCountSummaryAsync(filterString, CancellationToken.None)); }
/// <summary> /// Get the list of events under the vault. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IEventOperations. /// </param> /// <param name='eventName'> /// Required. Filter for the events to be fetched. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// Model class for event response. /// </returns> public static Task <EventResponse> GetAsync(this IEventOperations operations, string eventName, CustomRequestHeaders customRequestHeaders) { return(operations.GetAsync(eventName, customRequestHeaders, CancellationToken.None)); }
/// <summary> /// Get the list of events under the vault. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IEventOperations. /// </param> /// <param name='parameters'> /// Optional. Filter for the events to be fetched. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// The response model for the list events operation. /// </returns> public static Task <EventListResponse> ListAsync(this IEventOperations operations, EventQueryParameter parameters, CustomRequestHeaders customRequestHeaders) { return(operations.ListAsync(parameters, customRequestHeaders, CancellationToken.None)); }
/// <summary> /// The list of event categories. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IEventOperations. /// </param> /// <returns> /// The response of List Event Categories. /// </returns> public static Task<EventCategoryListResponse> ListEventCategoriesAsync(this IEventOperations operations) { return operations.ListEventCategoriesAsync(CancellationToken.None); }