/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='schemaGroupName'> /// The Schema Group name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SchemaGroup> GetAsync(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, string schemaGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, namespaceName, schemaGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all the Schema Groups in a Namespace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='skip'> /// Skip is only used if a previous operation returned a partial result. If a /// previous response contains a nextLink element, the value of the nextLink /// element will include a skip parameter that specifies a starting point to /// use for subsequent calls. /// </param> /// <param name='top'> /// May be used to limit the number of results to the most recent N /// usageDetails. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <SchemaGroup> > ListByNamespaceAsync(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, int?skip = default(int?), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByNamespaceWithHttpMessagesAsync(resourceGroupName, namespaceName, skip, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all the Schema Groups in a Namespace. /// </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 <SchemaGroup> > ListByNamespaceNextAsync(this ISchemaRegistryOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByNamespaceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Clusters = new ClustersOperations(this); Configuration = new ConfigurationOperations(this); Namespaces = new NamespacesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); Operations = new Operations(this); EventHubs = new EventHubsOperations(this); DisasterRecoveryConfigs = new DisasterRecoveryConfigsOperations(this); ConsumerGroups = new ConsumerGroupsOperations(this); SchemaRegistry = new SchemaRegistryOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-11-01"; 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() } }; CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='schemaGroupName'> /// The Schema Group name /// </param> /// <param name='parameters'> /// Parameters supplied to create an Event Hub resource. /// </param> public static SchemaGroup CreateOrUpdate(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, string schemaGroupName, SchemaGroup parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, namespaceName, schemaGroupName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the Schema Groups in a Namespace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='skip'> /// Skip is only used if a previous operation returned a partial result. If a /// previous response contains a nextLink element, the value of the nextLink /// element will include a skip parameter that specifies a starting point to /// use for subsequent calls. /// </param> /// <param name='top'> /// May be used to limit the number of results to the most recent N /// usageDetails. /// </param> public static IPage <SchemaGroup> ListByNamespace(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, int?skip = default(int?), int?top = default(int?)) { return(operations.ListByNamespaceAsync(resourceGroupName, namespaceName, skip, top).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the Schema Groups in a Namespace. /// </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 <SchemaGroup> ListByNamespaceNext(this ISchemaRegistryOperations operations, string nextPageLink) { return(operations.ListByNamespaceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='schemaGroupName'> /// The Schema Group name /// </param> public static SchemaGroup Get(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, string schemaGroupName) { return(operations.GetAsync(resourceGroupName, namespaceName, schemaGroupName).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='schemaGroupName'> /// The Schema Group name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, string schemaGroupName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, namespaceName, schemaGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group within the azure subscription. /// </param> /// <param name='namespaceName'> /// The Namespace name /// </param> /// <param name='schemaGroupName'> /// The Schema Group name /// </param> public static void Delete(this ISchemaRegistryOperations operations, string resourceGroupName, string namespaceName, string schemaGroupName) { operations.DeleteAsync(resourceGroupName, namespaceName, schemaGroupName).GetAwaiter().GetResult(); }