Example #1
0
 /// <summary>
 /// Initializes a new instance of the OperationStatusResult class.
 /// </summary>
 /// <param name="status">Operation status.</param>
 /// <param name="id">Fully qualified ID for the async
 /// operation.</param>
 /// <param name="name">Name of the async operation.</param>
 /// <param name="properties">Additional information, if
 /// available.</param>
 /// <param name="error">If present, details of the operation
 /// error.</param>
 public OperationStatusResult(string status, string id = default(string), string name = default(string), IDictionary <string, string> properties = default(IDictionary <string, string>), ErrorDetail error = default(ErrorDetail))
 {
     Id         = id;
     Name       = name;
     Status     = status;
     Properties = properties;
     Error      = error;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the Extension class.
 /// </summary>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="extensionType">Type of the Extension, of which this
 /// resource is an instance of.  It must be one of the Extension Types
 /// registered with Microsoft.KubernetesConfiguration by the Extension
 /// publisher.</param>
 /// <param name="autoUpgradeMinorVersion">Flag to note if this
 /// extension participates in auto upgrade of minor version, or
 /// not.</param>
 /// <param name="releaseTrain">ReleaseTrain this extension participates
 /// in for auto-upgrade (e.g. Stable, Preview, etc.) - only if
 /// autoUpgradeMinorVersion is 'true'.</param>
 /// <param name="version">User-specified version of the extension for
 /// this extension to 'pin'. To use 'version', autoUpgradeMinorVersion
 /// must be 'false'.</param>
 /// <param name="scope">Scope at which the extension is
 /// installed.</param>
 /// <param name="configurationSettings">Configuration settings, as
 /// name-value pairs for configuring this extension.</param>
 /// <param name="configurationProtectedSettings">Configuration settings
 /// that are sensitive, as name-value pairs for configuring this
 /// extension.</param>
 /// <param name="installedVersion">Installed version of the
 /// extension.</param>
 /// <param name="provisioningState">Status of installation of this
 /// extension. Possible values include: 'Succeeded', 'Failed',
 /// 'Canceled', 'Creating', 'Updating', 'Deleting'</param>
 /// <param name="statuses">Status from this extension.</param>
 /// <param name="errorInfo">Error information from the Agent - e.g.
 /// errors during installation.</param>
 /// <param name="customLocationSettings">Custom Location settings
 /// properties.</param>
 /// <param name="packageUri">Uri of the Helm package</param>
 /// <param name="aksAssignedIdentity">Identity of the Extension
 /// resource in an AKS cluster</param>
 /// <param name="identity">Identity of the Extension resource</param>
 /// <param name="systemData">Top level metadata
 /// https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources</param>
 public Extension(string id = default(string), string name = default(string), string type = default(string), string extensionType = default(string), bool?autoUpgradeMinorVersion = default(bool?), string releaseTrain = default(string), string version = default(string), Scope scope = default(Scope), IDictionary <string, string> configurationSettings = default(IDictionary <string, string>), IDictionary <string, string> configurationProtectedSettings = default(IDictionary <string, string>), string installedVersion = default(string), string provisioningState = default(string), IList <ExtensionStatus> statuses = default(IList <ExtensionStatus>), ErrorDetail errorInfo = default(ErrorDetail), IDictionary <string, string> customLocationSettings = default(IDictionary <string, string>), string packageUri = default(string), ExtensionPropertiesAksAssignedIdentity aksAssignedIdentity = default(ExtensionPropertiesAksAssignedIdentity), Identity identity = default(Identity), SystemData systemData = default(SystemData))
     : base(id, name, type)
 {
     ExtensionType           = extensionType;
     AutoUpgradeMinorVersion = autoUpgradeMinorVersion;
     ReleaseTrain            = releaseTrain;
     Version = version;
     Scope   = scope;
     ConfigurationSettings          = configurationSettings;
     ConfigurationProtectedSettings = configurationProtectedSettings;
     InstalledVersion       = installedVersion;
     ProvisioningState      = provisioningState;
     Statuses               = statuses;
     ErrorInfo              = errorInfo;
     CustomLocationSettings = customLocationSettings;
     PackageUri             = packageUri;
     AksAssignedIdentity    = aksAssignedIdentity;
     Identity               = identity;
     SystemData             = systemData;
     CustomInit();
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the ErrorResponse class.
 /// </summary>
 /// <param name="error">The error object.</param>
 public ErrorResponse(ErrorDetail error = default(ErrorDetail))
 {
     Error = error;
     CustomInit();
 }