/// <summary> /// Lists all of the available API operations for Connected Cluster resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <Operation> Get(this IOperations operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }
/// <summary> /// Get operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The name of the location. /// </param> /// <param name='name'> /// The name of the operation. /// </param> public static OperationResult Get(this IOperations operations, string locationName, string name) { return(operations.GetAsync(locationName, name).GetAwaiter().GetResult()); }
/// <summary> /// Get a operation /// </summary> /// <remarks> /// Get a operation /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='logTimeStamp'> /// </param> public static Operation Get(this IOperations operations, string id, System.DateTime?logTimeStamp = default(System.DateTime?)) { return(operations.GetAsync(id, logTimeStamp).GetAwaiter().GetResult()); }
/// <summary> /// Get the value of key. If the key does not exist the default value is returned. /// </summary> /// <param name="key">The key of the object.</param> /// <returns></returns> public Task <T> GetAsync(string key) { return(_operations.GetAsync(key)); }
/// <summary> /// Get the status of an async operation. /// </summary> /// <remarks> /// Get the status of an async operation by operation id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroup'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspace'> /// The name of the workspace. /// </param> /// <param name='id'> /// The operation id. /// </param> public static AsyncOperationStatus Get(this IOperations operations, System.Guid subscriptionId, string resourceGroup, string workspace, string id) { return(operations.GetAsync(subscriptionId, resourceGroup, workspace, id).GetAwaiter().GetResult()); }