Пример #1
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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ServicesDescription> BeginUpdateAsync(this IServicesOperations operations, string resourceGroupName, string resourceName, ServicesPatchDescription servicePatchDescription, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, servicePatchDescription, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ServiceResourceUpdate> BeginUpdateAsync(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceResourceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataMigrationService> BeginUpdateAsync(this IServicesOperations operations, DataMigrationService parameters, string groupName, string serviceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(parameters, groupName, serviceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }