Beispiel #1
0
        public PSEventHubClusterAttributes UpdateEventHubCluster(string resourceGroupName, string clusterName, PSEventHubClusterAttributes parameter)
        {
            var parameterCluster = new Management.EventHub.Models.Cluster();

            parameterCluster.Location     = parameter.Location;
            parameterCluster.Sku          = new ClusterSku();
            parameterCluster.Sku.Capacity = parameter.Sku.Capacity;
            parameterCluster.Tags         = parameter.Tags;

            Management.EventHub.Models.Cluster response = Client.Clusters.Update(resourceGroupName, clusterName, parameterCluster);
            return(new PSEventHubClusterAttributes(response));
        }
Beispiel #2
0
 public PSEventHubClusterAttributes GetEventHubCluster(string resourceGroupName, string clusterName)
 {
     Management.EventHub.Models.Cluster response = Client.Clusters.Get(resourceGroupName, clusterName);
     return(new PSEventHubClusterAttributes(response));
 }