/// <summary> /// Create a new Service or update an exiting Service. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serviceName'> /// The name of the Service resource. /// </param> /// <param name='resource'> /// Parameters for the create or update operation /// </param> public static ServiceResource BeginCreateOrUpdate(this IServicesOperations operations, string resourceGroupName, string serviceName, ServiceResource resource = default(ServiceResource)) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, serviceName, resource).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates a Service Fabric managed service resource. /// </summary> /// <remarks> /// Create or update a Service Fabric managed service resource with the /// specified name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster resource. /// </param> /// <param name='applicationName'> /// The name of the application resource. /// </param> /// <param name='serviceName'> /// The name of the service resource in the format of /// {applicationName}~{serviceName}. /// </param> /// <param name='parameters'> /// The service resource. /// </param> public static ServiceResource BeginCreateOrUpdate(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceResource parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates a Search service in the given resource group. If the /// Search service already exists, all properties will be updated with the /// given values. /// <see href="https://aka.ms/search-manage" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the current subscription. You can /// obtain this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='searchServiceName'> /// The name of the Azure Search service to create or update. Search service /// names must only contain lowercase letters, digits or dashes, cannot use /// dash as the first two or last one characters, cannot contain consecutive /// dashes, and must be between 2 and 60 characters in length. Search service /// names must be globally unique since they are part of the service URI /// (https://<name>.search.windows.net). You cannot change the service /// name after the service is created. /// </param> /// <param name='service'> /// The definition of the Search service to create or update. /// </param> /// <param name='searchManagementRequestOptions'> /// Additional parameters for the operation /// </param> public static SearchService BeginCreateOrUpdate(this IServicesOperations operations, string resourceGroupName, string searchServiceName, SearchService service, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions)) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, searchServiceName, service, searchManagementRequestOptions).GetAwaiter().GetResult()); }
/// <summary> /// Create or update the metadata of a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='resourceName'> /// The name of the service instance. /// </param> /// <param name='serviceDescription'> /// The service instance metadata. /// </param> public static ServicesDescription BeginCreateOrUpdate(this IServicesOperations operations, string resourceGroupName, string resourceName, ServicesDescription serviceDescription) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, serviceDescription).GetAwaiter().GetResult()); }
/// <summary> /// Create or update DMS Instance /// </summary> /// <remarks> /// The services resource is the top-level resource that represents the /// Database Migration Service. The PUT method creates a new service or updates /// an existing one. When a service is updated, existing child resources (i.e. /// tasks) are unaffected. Services currently support a single kind, "vm", /// which refers to a VM-based service, although other kinds may be added in /// the future. This method can change the kind, SKU, and network of the /// service, but if tasks are currently running (i.e. the service is busy), /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will /// reply when successful with 200 OK or 201 Created. Long-running operations /// use the provisioningState property. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='parameters'> /// Information about the service /// </param> /// <param name='groupName'> /// Name of the resource group /// </param> /// <param name='serviceName'> /// Name of the service /// </param> public static DataMigrationService BeginCreateOrUpdate(this IServicesOperations operations, DataMigrationService parameters, string groupName, string serviceName) { return(operations.BeginCreateOrUpdateAsync(parameters, groupName, serviceName).GetAwaiter().GetResult()); }