Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-appplatform] add validate config server(stable) #1924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext {
customDomains: operations.CustomDomains;
deployments: operations.Deployments;
operations: operations.Operations;
runtimeVersions: operations.RuntimeVersions;
skus: operations.Skus;

/**
Expand All @@ -46,6 +47,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext {
this.customDomains = new operations.CustomDomains(this);
this.deployments = new operations.Deployments(this);
this.operations = new operations.Operations(this);
this.runtimeVersions = new operations.RuntimeVersions(this);
this.skus = new operations.Skus(this);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export {
ConfigServerProperties,
ConfigServerResource,
ConfigServerSettings,
ConfigServerSettingsErrorRecord,
ConfigServerSettingsValidateResult,
CustomDomainProperties,
CustomDomainResource,
DeploymentInstance,
Expand All @@ -32,6 +34,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
176 changes: 170 additions & 6 deletions sdk/appplatform/arm-appplatform/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ import * as msRest from "@azure/ms-rest-js";

export { BaseResource, CloudError };

/**
* Desired outbound IP resources for Azure Spring Cloud instance.
*/
export interface NetworkProfileOutboundIPs {
/**
* A list of public IP addresses.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly publicIPs?: string[];
}

/**
* Service network profile payload
*/
Expand All @@ -35,6 +46,11 @@ export interface NetworkProfile {
* Name of the resource group containing network resources of Azure Spring Cloud Apps
*/
appNetworkResourceGroup?: string;
/**
* Desired outbound IP resources for Azure Spring Cloud instance.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly outboundIPs?: NetworkProfileOutboundIPs;
}

/**
Expand Down Expand Up @@ -149,6 +165,38 @@ export interface ManagedIdentityProperties {
tenantId?: string;
}

/**
* Error record of the config server settings
*/
export interface ConfigServerSettingsErrorRecord {
/**
* The name of the config server settings error record
*/
name?: string;
/**
* The uri of the config server settings error record
*/
uri?: string;
/**
* The detail error messages of the record
*/
messages?: string[];
}

/**
* Validation result for config server settings
*/
export interface ConfigServerSettingsValidateResult {
/**
* Indicate if the config server settings are valid
*/
isValid?: boolean;
/**
* The detail validation results
*/
details?: ConfigServerSettingsErrorRecord[];
}

/**
* The error code compose of code and message.
*/
Expand Down Expand Up @@ -693,7 +741,7 @@ export interface CustomDomainValidateResult {
*/
export interface UserSourceInfo {
/**
* Type of the source uploaded. Possible values include: 'Jar', 'Source'
* Type of the source uploaded. Possible values include: 'Jar', 'NetCoreZip', 'Source'
*/
type?: UserSourceType;
/**
Expand Down Expand Up @@ -730,12 +778,16 @@ export interface DeploymentSettings {
* JVM parameter
*/
jvmOptions?: string;
/**
* The path to the .NET executable relative to zip root
*/
netCoreMainEntryPath?: string;
/**
* Collection of environment variables
*/
environmentVariables?: { [propertyName: string]: string };
/**
* Runtime version. Possible values include: 'Java_8', 'Java_11'
* Runtime version. Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
*/
runtimeVersion?: RuntimeVersion;
}
Expand Down Expand Up @@ -764,6 +816,11 @@ export interface DeploymentInstance {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly discoveryStatus?: string;
/**
* Start time of the deployment instance
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly startTime?: string;
}

/**
Expand Down Expand Up @@ -1131,6 +1188,37 @@ export interface ResourceSku {
restrictions?: ResourceSkuRestrictions[];
}

/**
* Supported deployment runtime version descriptor.
*/
export interface SupportedRuntimeVersion {
/**
* The raw value which could be passed to deployment CRUD operations. Possible values include:
* 'Java_8', 'Java_11', 'NetCore_31'
*/
value?: SupportedRuntimeValue;
/**
* The platform of this runtime version (possible values: "Java" or ".NET"). Possible values
* include: 'Java', '.NET Core'
*/
platform?: SupportedRuntimePlatform;
/**
* The detailed version (major.minor) of the platform.
*/
version?: string;
}

/**
* An interface representing AvailableRuntimeVersions.
*/
export interface AvailableRuntimeVersions {
/**
* A list of all supported runtime versions.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly value?: SupportedRuntimeVersion[];
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1321,19 +1409,19 @@ export type AppResourceProvisioningState = 'Succeeded' | 'Failed' | 'Creating' |

/**
* Defines values for UserSourceType.
* Possible values include: 'Jar', 'Source'
* Possible values include: 'Jar', 'NetCoreZip', 'Source'
* @readonly
* @enum {string}
*/
export type UserSourceType = 'Jar' | 'Source';
export type UserSourceType = 'Jar' | 'NetCoreZip' | 'Source';

/**
* Defines values for RuntimeVersion.
* Possible values include: 'Java_8', 'Java_11'
* Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
* @readonly
* @enum {string}
*/
export type RuntimeVersion = 'Java_8' | 'Java_11';
export type RuntimeVersion = 'Java_8' | 'Java_11' | 'NetCore_31';

/**
* Defines values for DeploymentResourceProvisioningState.
Expand Down Expand Up @@ -1376,6 +1464,22 @@ export type ResourceSkuRestrictionsType = 'Location' | 'Zone';
*/
export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription';

/**
* Defines values for SupportedRuntimeValue.
* Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
* @readonly
* @enum {string}
*/
export type SupportedRuntimeValue = 'Java_8' | 'Java_11' | 'NetCore_31';

/**
* Defines values for SupportedRuntimePlatform.
* Possible values include: 'Java', '.NET Core'
* @readonly
* @enum {string}
*/
export type SupportedRuntimePlatform = 'Java' | '.NET Core';

/**
* Contains response data for the get operation.
*/
Expand Down Expand Up @@ -1696,6 +1800,26 @@ export type ConfigServersUpdatePatchResponse = ConfigServerResource & {
};
};

/**
* Contains response data for the validate operation.
*/
export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ConfigServerSettingsValidateResult;
};
};

/**
* Contains response data for the beginUpdatePut operation.
*/
Expand Down Expand Up @@ -1736,6 +1860,26 @@ export type ConfigServersBeginUpdatePatchResponse = ConfigServerResource & {
};
};

/**
* Contains response data for the beginValidate operation.
*/
export type ConfigServersBeginValidateResponse = ConfigServerSettingsValidateResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ConfigServerSettingsValidateResult;
};
};

/**
* Contains response data for the get operation.
*/
Expand Down Expand Up @@ -2636,6 +2780,26 @@ export type OperationsListNextResponse = AvailableOperations & {
};
};

/**
* Contains response data for the listRuntimeVersions operation.
*/
export type RuntimeVersionsListRuntimeVersionsResponse = AvailableRuntimeVersions & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AvailableRuntimeVersions;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
Loading