Ejemplo n.º 1
0
        private Azure(RestClient restClient, string subscriptionId, string tenantId, IAuthenticated authenticated)
        {
            resourceManager          = ResourceManager.Fluent.ResourceManager.Authenticate(restClient).WithSubscription(subscriptionId);
            storageManager           = StorageManager.Authenticate(restClient, subscriptionId);
            computeManager           = ComputeManager.Authenticate(restClient, subscriptionId);
            networkManager           = NetworkManager.Authenticate(restClient, subscriptionId);
            batchManager             = BatchManager.Authenticate(restClient, subscriptionId);
            keyVaultManager          = KeyVaultManager.Authenticate(restClient, subscriptionId, tenantId);
            trafficManager           = TrafficManager.Fluent.TrafficManager.Authenticate(restClient, subscriptionId);
            dnsZoneManager           = DnsZoneManager.Authenticate(restClient, subscriptionId);
            sqlManager               = SqlManager.Authenticate(restClient, subscriptionId);
            redisManager             = RedisManager.Authenticate(restClient, subscriptionId);
            cdnManager               = CdnManager.Authenticate(restClient, subscriptionId);
            appServiceManager        = AppServiceManager.Authenticate(restClient, subscriptionId, tenantId);
            searchManager            = SearchManager.Authenticate(restClient, subscriptionId);
            serviceBusManager        = ServiceBusManager.Authenticate(restClient, subscriptionId);
            containerInstanceManager = ContainerInstanceManager.Authenticate(restClient, subscriptionId);
            registryManager          = RegistryManager.Authenticate(restClient, subscriptionId);
            containerServiceManager  = ContainerServiceManager.Authenticate(restClient, subscriptionId);
            cosmosDBManager          = CosmosDBManager.Authenticate(restClient, subscriptionId);
            authorizationManager     = AuthorizationManager.Authenticate(restClient, subscriptionId);
            msiManager               = MsiManager.Authenticate(restClient, subscriptionId);
            batchAIManager           = BatchAIManager.Authenticate(restClient, subscriptionId);
            monitorManager           = MonitorManager.Authenticate(restClient, subscriptionId);
            eventHubManager          = EventHubManager.Authenticate(restClient, subscriptionId);

            SubscriptionId     = subscriptionId;
            this.authenticated = authenticated;
        }
        ///GENMHASH:DEDF5AE2F1ABB9DF6AD962840B38A58B:0F98D2133F32D8FB212E9B9A457FA932
        internal KubernetesClusterImpl(string name, ManagedClusterInner innerObject, IContainerServiceManager manager) : base(name, innerObject, manager)
        {
            //$ super(name, innerObject, manager);
            if (this.Inner.AgentPoolProfiles == null)
            {
                this.Inner.AgentPoolProfiles = new List <ContainerServiceAgentPoolProfile>();
            }

            this.useLatestVersion = false;
        }
        ///GENMHASH:DEDF5AE2F1ABB9DF6AD962840B38A58B:0F98D2133F32D8FB212E9B9A457FA932
        internal KubernetesClusterImpl(string name, ManagedClusterInner innerObject, IContainerServiceManager manager) : base(name, innerObject, manager)
        {
            //$ super(name, innerObject, manager);
            if (this.Inner.AgentPoolProfiles == null)
            {
                this.Inner.AgentPoolProfiles = new List <ManagedClusterAgentPoolProfile>();
            }

            this.adminKubeConfigContent = null;
            this.userKubeConfigContent  = null;
        }
Ejemplo n.º 4
0
 ///GENMHASH:CEE9B4E44892129894F967CA6EF022FA:CA53D863E18032E03B7ADE68186DACBF
 internal KubernetesClustersImpl(IContainerServiceManager containerServiceManager) : base(containerServiceManager.Inner.ManagedClusters, containerServiceManager)
 {
 }
 ///GENMHASH:2096D69FFE4705FC1B56A705A72E5775:5E0ADC686DDAB249E3ABAB5E538E38B4
 internal ContainerServicesImpl(IContainerServiceManager containerServiceManager) : base(containerServiceManager.Inner.ContainerServices, containerServiceManager)
 {
 }
Ejemplo n.º 6
0
        ///GENMHASH:E6D0551D4FCBCBFCB92123F27E001E43:1B6DFFB2F94EAF8297DB9CFDE661F1A6
        internal ContainerServiceImpl(string name, ContainerServiceInner innerObject, IContainerServiceManager manager) : base(name, innerObject, manager)
        {
            if (this.Inner.AgentPoolProfiles == null)
            {
                this.Inner.AgentPoolProfiles = new List <ContainerServiceAgentPoolProfile>();
            }

            if (this.Inner.MasterProfile != null && this.Inner.MasterProfile.VnetSubnetID != null)
            {
                this.networkId  = ResourceUtils.ParentResourcePathFromResourceId(this.Inner.MasterProfile.VnetSubnetID);
                this.subnetName = ResourceUtils.NameFromResourceId(this.Inner.MasterProfile.VnetSubnetID);
            }
            else
            {
                this.networkId  = null;
                this.subnetName = null;
            }
        }