Esempio n. 1
0
 /// <summary>
 /// Updates a Service Fabric service resource.
 /// </summary>
 /// <remarks>
 /// Update a Service Fabric 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 for patch operations.
 /// </param>
 public static ServiceResourceUpdate BeginUpdate(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceResourceUpdate parameters)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// 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='servicePatchDescription'>
 /// The service instance metadata and security metadata.
 /// </param>
 public static ServicesDescription BeginUpdate(this IServicesOperations operations, string resourceGroupName, string resourceName, ServicesPatchDescription servicePatchDescription)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, resourceName, servicePatchDescription).GetAwaiter().GetResult());
 }
Esempio n. 3
0
 /// <summary>
 /// Operation to 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 update operation
 /// </param>
 public static ServiceResource BeginUpdate(this IServicesOperations operations, string resourceGroupName, string serviceName, ServiceResource resource = default(ServiceResource))
 {
     return(operations.BeginUpdateAsync(resourceGroupName, serviceName, resource).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create or update DMS Service Instance
 /// </summary>
 /// <remarks>
 /// The services resource is the top-level resource that represents the
 /// Database Migration Service. The PATCH method updates an existing service.
 /// 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").
 /// </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 BeginUpdate(this IServicesOperations operations, DataMigrationService parameters, string groupName, string serviceName)
 {
     return(operations.BeginUpdateAsync(parameters, groupName, serviceName).GetAwaiter().GetResult());
 }