Microsoft.Azure.Commands.DataFactories.DataFactoryClient.CreateOrUpdateHub C# (CSharp) Method

CreateOrUpdateHub() public method

public CreateOrUpdateHub ( string resourceGroupName, string dataFactoryName, string hubName, string rawJsonContent ) : Microsoft.Azure.Management.DataFactories.Models.Hub
resourceGroupName string
dataFactoryName string
hubName string
rawJsonContent string
return Microsoft.Azure.Management.DataFactories.Models.Hub
        public virtual Hub CreateOrUpdateHub(
            string resourceGroupName,
            string dataFactoryName,
            string hubName,
            string rawJsonContent)
        {
            if (string.IsNullOrWhiteSpace(rawJsonContent))
            {
                throw new ArgumentNullException("rawJsonContent");
            }

            // If create or update failed, the current behavior is to throw
            var response = DataPipelineManagementClient.Hubs.CreateOrUpdateWithRawJsonContent(
                resourceGroupName,
                dataFactoryName,
                hubName,
                new HubCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });

            return response.Hub;
        }