Esempio n. 1
0
 internal SchemaGroup(ArmResource options, SchemaGroupData resource) : base(options, resource.Id)
 {
     HasData                   = true;
     _data                     = resource;
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _schemaRegistryRestClient = new SchemaRegistryRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal SchemaGroupCollection(ArmResource parent) : base(parent)
        {
            _schemaGroupSchemaRegistryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", SchemaGroup.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(SchemaGroup.ResourceType, out string schemaGroupSchemaRegistryApiVersion);
            _schemaGroupSchemaRegistryRestClient = new SchemaRegistryRestOperations(_schemaGroupSchemaRegistryClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, schemaGroupSchemaRegistryApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Esempio n. 3
0
        internal SchemaGroup(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _schemaGroupSchemaRegistryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string schemaGroupSchemaRegistryApiVersion);
            _schemaGroupSchemaRegistryRestClient = new SchemaRegistryRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, schemaGroupSchemaRegistryApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Esempio n. 4
0
 internal SchemaGroupCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _schemaRegistryRestClient = new SchemaRegistryRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 5
0
 internal SchemaGroup(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _schemaRegistryRestClient = new SchemaRegistryRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 6
0
 internal SchemaGroup(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _schemaRegistryRestClient = new SchemaRegistryRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }