RestartDeployedCodePackageContent Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parameters for restarting a deployed code package.
public class RestartDeployedCodePackageContent : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent>
type RestartDeployedCodePackageContent = class
interface IJsonModel<RestartDeployedCodePackageContent>
interface IPersistableModel<RestartDeployedCodePackageContent>
Public Class RestartDeployedCodePackageContent
Implements IJsonModel(Of RestartDeployedCodePackageContent), IPersistableModel(Of RestartDeployedCodePackageContent)
- Inheritance
-
RestartDeployedCodePackageContent
- Implements
Constructors
| Name | Description |
|---|---|
| RestartDeployedCodePackageContent(String, String, String, String) |
Initializes a new instance of RestartDeployedCodePackageContent. |
Properties
| Name | Description |
|---|---|
| CodePackageInstanceId |
The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package. |
| CodePackageName |
The name of the code package as specified in the service manifest. |
| NodeName |
The name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code package is running. |
| ServiceManifestName |
The name of the service manifest as specified in the code package. |
| ServicePackageActivationId |
The activation id of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an empty string. |
Methods
| Name | Description |
|---|---|
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<RestartDeployedCodePackageContent>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<RestartDeployedCodePackageContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<RestartDeployedCodePackageContent>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<RestartDeployedCodePackageContent>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<RestartDeployedCodePackageContent>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |