/// <summary> /// Get a list of Capability Type resources for given Target Type and location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// String that represents a Location resource name. /// </param> /// <param name='targetTypeName'> /// String that represents a Target Type resource name. /// </param> /// <param name='continuationToken'> /// String that sets the continuation token. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <CapabilityType> > ListAsync(this ICapabilityTypesOperations operations, string locationName, string targetTypeName, string continuationToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(locationName, targetTypeName, continuationToken, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a list of Capability Type resources for given Target Type and location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <CapabilityType> > ListNextAsync(this ICapabilityTypesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Capabilities = new CapabilitiesOperations(this); Experiments = new ExperimentsOperations(this); Operations = new Operations(this); Targets = new TargetsOperations(this); TargetTypes = new TargetTypesOperations(this); CapabilityTypes = new CapabilityTypesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-09-15-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; 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() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); 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() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Action>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Action>("type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Get a Capability Type resource for given Target Type and location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// String that represents a Location resource name. /// </param> /// <param name='targetTypeName'> /// String that represents a Target Type resource name. /// </param> /// <param name='capabilityTypeName'> /// String that represents a Capability Type resource name. /// </param> public static CapabilityType Get(this ICapabilityTypesOperations operations, string locationName, string targetTypeName, string capabilityTypeName) { return(operations.GetAsync(locationName, targetTypeName, capabilityTypeName).GetAwaiter().GetResult()); }
/// <summary> /// Get a list of Capability Type resources for given Target Type and location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// String that represents a Location resource name. /// </param> /// <param name='targetTypeName'> /// String that represents a Target Type resource name. /// </param> /// <param name='continuationToken'> /// String that sets the continuation token. /// </param> public static IPage <CapabilityType> List(this ICapabilityTypesOperations operations, string locationName, string targetTypeName, string continuationToken = default(string)) { return(operations.ListAsync(locationName, targetTypeName, continuationToken).GetAwaiter().GetResult()); }
/// <summary> /// Get a list of Capability Type resources for given Target Type and location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <CapabilityType> ListNext(this ICapabilityTypesOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }