Ejemplo n.º 1
0
        internal VCenter(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _vCenterClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ConnectedVMwarevSphere", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string vCenterApiVersion);
            _vCenterRestClient = new VCentersRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, vCenterApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Ejemplo n.º 2
0
        internal VCenterCollection(ArmResource parent) : base(parent)
        {
            _vCenterClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ConnectedVMwarevSphere", VCenter.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(VCenter.ResourceType, out string vCenterApiVersion);
            _vCenterRestClient = new VCentersRestOperations(_vCenterClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, vCenterApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }