diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md index b0fcd6f94621..025da703fd04 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-kubernetesconfiguration ### How to use -#### nodejs - client creation and get sourceControlConfigurations as an example written in TypeScript. +#### nodejs - client creation and get extensions as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -38,8 +38,8 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const clusterRp = "Microsoft.ContainerService"; const clusterResourceName = "managedClusters"; const clusterName = "testclusterName"; - const sourceControlConfigurationName = "testsourceControlConfigurationName"; - client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => { + const extensionName = "testextensionName"; + client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -48,7 +48,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get sourceControlConfigurations as an example written in JavaScript. +#### browser - Authentication, client creation and get extensions as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -86,8 +86,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const clusterRp = "Microsoft.ContainerService"; const clusterResourceName = "managedClusters"; const clusterName = "testclusterName"; - const sourceControlConfigurationName = "testsourceControlConfigurationName"; - client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => { + const extensionName = "testextensionName"; + client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/clusterExtensionTypeMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/clusterExtensionTypeMappers.ts new file mode 100644 index 000000000000..6d67fb7f4c31 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/clusterExtensionTypeMappers.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ClusterScopeSettings, + ComplianceStatus, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Extension, + ExtensionStatus, + ExtensionType, + HelmOperatorProperties, + Identity, + Plan, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Scope, + ScopeCluster, + ScopeNamespace, + Sku, + SourceControlConfiguration, + SupportedScopes, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/clusterExtensionTypesMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/clusterExtensionTypesMappers.ts new file mode 100644 index 000000000000..736105c33f72 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/clusterExtensionTypesMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ClusterScopeSettings, + ComplianceStatus, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Extension, + ExtensionStatus, + ExtensionType, + ExtensionTypeList, + HelmOperatorProperties, + Identity, + Plan, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Scope, + ScopeCluster, + ScopeNamespace, + Sku, + SourceControlConfiguration, + SupportedScopes, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/extensionTypeVersionsMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/extensionTypeVersionsMappers.ts new file mode 100644 index 000000000000..91a0e75ab79a --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/extensionTypeVersionsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + ExtensionVersionList, + ExtensionVersionListVersionsItem, + SystemData +} from "../models/mappers"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/extensionsMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/extensionsMappers.ts new file mode 100644 index 000000000000..5195426234c5 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/extensionsMappers.ts @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ClusterScopeSettings, + ComplianceStatus, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Extension, + ExtensionsList, + ExtensionStatus, + HelmOperatorProperties, + Identity, + Plan, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Scope, + ScopeCluster, + ScopeNamespace, + Sku, + SourceControlConfiguration, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts index a073fedae0ab..c469ce6b5d87 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts @@ -12,75 +12,133 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Sample result definition + * Specifies that the scope of the extension is Cluster */ -export interface Result { +export interface ScopeCluster { /** - * Sample property of type string + * Namespace where the extension Release must be placed, for a Cluster scoped extension. If this + * namespace does not exist, it will be created */ - sampleProperty?: string; + releaseNamespace?: string; } /** - * Error definition. + * Specifies that the scope of the extension is Namespace */ -export interface ErrorDefinition { +export interface ScopeNamespace { /** - * Service specific error code which serves as the substatus for the HTTP error code. + * Namespace where the extension will be created for an Namespace scoped extension. If this + * namespace does not exist, it will be created */ - code: string; + targetNamespace?: string; +} + +/** + * Scope of the extension. It can be either Cluster or Namespace; but not both. + */ +export interface Scope { /** - * Description of the error. + * Specifies that the scope of the extension is Cluster */ - message: string; + cluster?: ScopeCluster; + /** + * Specifies that the scope of the extension is Namespace + */ + namespace?: ScopeNamespace; } /** - * Error response. + * Status from the extension. */ -export interface ErrorResponse { +export interface ExtensionStatus { + /** + * Status code provided by the Extension + */ + code?: string; + /** + * Short description of status of the extension. + */ + displayStatus?: string; + /** + * Level of the status. Possible values include: 'Error', 'Warning', 'Information'. Default + * value: 'Information'. + */ + level?: LevelType; + /** + * Detailed message of the status from the Extension. + */ + message?: string; /** - * Error definition. + * DateLiteral (per ISO8601) noting the time of installation status. */ - error?: ErrorDefinition; + time?: string; } /** - * Compliance Status details + * The resource management error additional info. */ -export interface ComplianceStatus { +export interface ErrorAdditionalInfo { /** - * The compliance state of the configuration. Possible values include: 'Pending', 'Compliant', - * 'Noncompliant', 'Installed', 'Failed' + * The additional info type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly complianceState?: ComplianceStateType; + readonly type?: string; /** - * Datetime the configuration was last applied. + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastConfigApplied?: Date; + readonly info?: any; +} + +/** + * The error detail. + */ +export interface ErrorDetail { /** - * Message from when the configuration was applied. + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message?: string; + readonly code?: string; /** - * Level of the message. Possible values include: 'Error', 'Warning', 'Information' + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - messageLevel?: MessageLevelType; + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** - * Properties for Helm operator. + * Identity for the resource. */ -export interface HelmOperatorProperties { +export interface Identity { /** - * Version of the operator Helm chart. + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - chartVersion?: string; + readonly principalId?: string; /** - * Values override for the operator Helm chart. + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - chartValues?: string; + readonly tenantId?: string; + /** + * The identity type. Possible values include: 'SystemAssigned' + */ + type?: ResourceIdentityType; } /** @@ -110,7 +168,7 @@ export interface SystemData { */ lastModifiedByType?: CreatedByType; /** - * The type of identity that last modified the resource. + * The timestamp of resource last modification (UTC) */ lastModifiedAt?: Date; } @@ -148,69 +206,70 @@ export interface ProxyResource extends Resource { } /** - * The SourceControl Configuration object returned in Get & Put response. + * The Extension object. */ -export interface SourceControlConfiguration extends ProxyResource { +export interface Extension extends ProxyResource { /** - * Url of the SourceControl Repository. + * 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. */ - repositoryUrl?: string; + extensionType?: string; /** - * The namespace to which this operator is installed to. Maximum of 253 lower case alphanumeric - * characters, hyphen and period only. Default value: 'default'. + * Flag to note if this extension participates in auto upgrade of minor version, or not. Default + * value: true. */ - operatorNamespace?: string; + autoUpgradeMinorVersion?: boolean; /** - * Instance name of the operator - identifying the specific configuration. + * ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - + * only if autoUpgradeMinorVersion is 'true'. Default value: 'Stable'. */ - operatorInstanceName?: string; + releaseTrain?: string; /** - * Type of the operator. Possible values include: 'Flux' + * Version of the extension for this extension, if it is 'pinned' to a specific version. + * autoUpgradeMinorVersion must be 'false'. */ - operatorType?: OperatorType; + version?: string; /** - * Any Parameters for the Operator instance in string format. + * Scope at which the extension is installed. */ - operatorParams?: string; + scope?: Scope; /** - * Name-value pairs of protected configuration settings for the configuration + * Configuration settings, as name-value pairs for configuring this extension. */ - configurationProtectedSettings?: { [propertyName: string]: string }; + configurationSettings?: { [propertyName: string]: string }; /** - * Scope at which the operator will be installed. Possible values include: 'cluster', - * 'namespace'. Default value: 'cluster'. + * Configuration settings that are sensitive, as name-value pairs for configuring this extension. */ - operatorScope?: OperatorScopeType; + configurationProtectedSettings?: { [propertyName: string]: string }; /** - * Public Key associated with this SourceControl configuration (either generated within the - * cluster or provided by the user). + * Status of installation of this extension. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'Creating', 'Updating', 'Deleting' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly repositoryPublicKey?: string; + readonly provisioningState?: ProvisioningState; /** - * Base64-encoded known_hosts contents containing public SSH keys required to access private Git - * instances + * Status from this extension. */ - sshKnownHostsContents?: string; + statuses?: ExtensionStatus[]; /** - * Option to enable Helm Operator for this git configuration. + * Error information from the Agent - e.g. errors during installation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enableHelmOperator?: boolean; + readonly errorInfo?: ErrorDetail; /** - * Properties for Helm operator. + * Custom Location settings properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - helmOperatorProperties?: HelmOperatorProperties; + readonly customLocationSettings?: { [propertyName: string]: string }; /** - * The provisioning state of the resource provider. Possible values include: 'Accepted', - * 'Deleting', 'Running', 'Succeeded', 'Failed' + * Uri of the Helm package * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningStateType; + readonly packageUri?: string; /** - * Compliance Status of the Configuration - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Identity of the Extension resource */ - readonly complianceStatus?: ComplianceStatus; + identity?: Identity; /** * 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 @@ -219,44 +278,30 @@ export interface SourceControlConfiguration extends ProxyResource { } /** - * Display metadata associated with the operation. + * The current status of an async operation. */ -export interface ResourceProviderOperationDisplay { - /** - * Resource provider: Microsoft KubernetesConfiguration. - */ - provider?: string; - /** - * Resource on which the operation is performed. - */ - resource?: string; +export interface OperationStatusResult { /** - * Type of operation: get, read, delete, etc. + * Fully qualified ID for the async operation. */ - operation?: string; + id?: string; /** - * Description of this operation. + * Name of the async operation. */ - description?: string; -} - -/** - * Supported operation of this resource provider. - */ -export interface ResourceProviderOperation { + name?: string; /** - * Operation name, in format of {provider}/{resource}/{operation} + * Operation status. */ - name?: string; + status: string; /** - * Display metadata associated with the operation. + * Additional information, if available. */ - display?: ResourceProviderOperationDisplay; + properties?: { [propertyName: string]: string }; /** - * The flag that indicates whether the operation applies to data plane. + * If present, details of the operation error. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isDataAction?: boolean; + readonly error?: ErrorDetail; } /** @@ -288,142 +333,631 @@ export interface AzureEntityResource extends Resource { } /** - * An interface representing SourceControlConfigurationClientOptions. + * An interface representing ResourceModelWithAllowedPropertySetIdentity. */ -export interface SourceControlConfigurationClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface ResourceModelWithAllowedPropertySetIdentity extends Identity { } /** - * @interface - * Result of the request to list Source Control Configurations. It contains a list of - * SourceControlConfiguration objects and a URL link to get the next set of results. - * @extends Array + * The resource model definition representing SKU */ -export interface SourceControlConfigurationList extends Array { +export interface Sku { /** - * URL to get the next set of configuration objects, if any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the SKU. Ex - P3. It is typically a letter+number code */ - readonly nextLink?: string; + name: string; + /** + * This field is required to be implemented by the Resource Provider if the service has more than + * one tier, but is not required on a PUT. Possible values include: 'Free', 'Basic', 'Standard', + * 'Premium' + */ + tier?: SkuTier; + /** + * The SKU size. When the name field is the combination of tier and some other value, this would + * be the standalone code. + */ + size?: string; + /** + * If the service has different generations of hardware, for the same SKU, then that can be + * captured here. + */ + family?: string; + /** + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in + * is not possible for the resource this may be omitted. + */ + capacity?: number; } /** - * @interface - * Result of the request to list operations. - * @extends Array + * An interface representing ResourceModelWithAllowedPropertySetSku. */ -export interface ResourceProviderOperationList extends Array { - /** - * URL to the next set of results, if any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export interface ResourceModelWithAllowedPropertySetSku extends Sku { } /** - * Defines values for ComplianceStateType. - * Possible values include: 'Pending', 'Compliant', 'Noncompliant', 'Installed', 'Failed' - * @readonly - * @enum {string} + * Plan for the resource. */ -export type ComplianceStateType = 'Pending' | 'Compliant' | 'Noncompliant' | 'Installed' | 'Failed'; +export interface Plan { + /** + * A user defined name of the 3rd Party Artifact that is being procured. + */ + name: string; + /** + * The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + */ + publisher: string; + /** + * The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID + * specified for the artifact at the time of Data Market onboarding. + */ + product: string; + /** + * A publisher provided promotion code as provisioned in Data Market for the said + * product/artifact. + */ + promotionCode?: string; + /** + * The version of the desired product/artifact. + */ + version?: string; +} /** - * Defines values for MessageLevelType. - * Possible values include: 'Error', 'Warning', 'Information' - * @readonly - * @enum {string} + * An interface representing ResourceModelWithAllowedPropertySetPlan. */ -export type MessageLevelType = 'Error' | 'Warning' | 'Information'; +export interface ResourceModelWithAllowedPropertySetPlan extends Plan { +} /** - * Defines values for OperatorType. - * Possible values include: 'Flux' - * @readonly - * @enum {string} + * The resource model definition containing the full set of allowed properties for a resource. + * Except properties bag, there cannot be a top level property outside of this set. */ -export type OperatorType = 'Flux'; +export interface ResourceModelWithAllowedPropertySet extends BaseResource { + /** + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The geo-location where the resource lives + */ + location?: string; + /** + * The fully qualified resource ID of the resource that manages this resource. Indicates if this + * resource is managed by another Azure resource. If this is present, complete mode deployment + * will not delete the resource if it is removed from the template since it is managed by another + * resource. + */ + managedBy?: string; + /** + * Metadata used by portal/tooling/etc to render different UX experiences for resources of the + * same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource + * provider must validate and persist this value. + */ + kind?: string; + /** + * The etag field is *not* required. If it is provided in the response body, it must also be + * provided as a header per the normal etag convention. Entity tags are used for comparing two + * or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag + * (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range + * (section 14.27) header fields. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + identity?: ResourceModelWithAllowedPropertySetIdentity; + sku?: ResourceModelWithAllowedPropertySetSku; + plan?: ResourceModelWithAllowedPropertySetPlan; +} /** - * Defines values for OperatorScopeType. - * Possible values include: 'cluster', 'namespace' - * @readonly - * @enum {string} + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response */ -export type OperatorScopeType = 'cluster' | 'namespace'; +export interface ErrorResponse { + /** + * The error object. + */ + error?: ErrorDetail; +} /** - * Defines values for ProvisioningStateType. - * Possible values include: 'Accepted', 'Deleting', 'Running', 'Succeeded', 'Failed' - * @readonly - * @enum {string} + * Extension scope settings */ -export type ProvisioningStateType = 'Accepted' | 'Deleting' | 'Running' | 'Succeeded' | 'Failed'; +export interface ClusterScopeSettings extends ProxyResource { + /** + * Describes if multiple instances of the extension are allowed + */ + allowMultipleInstances?: boolean; + /** + * Default extension release namespace + */ + defaultReleaseNamespace?: string; +} /** - * Defines values for CreatedByType. - * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - * @readonly - * @enum {string} + * Extension scopes */ -export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; +export interface SupportedScopes { + /** + * Default extension scopes: cluster or namespace + */ + defaultScope?: string; + /** + * Scope settings + */ + clusterScopeSettings?: ClusterScopeSettings; +} /** - * Defines values for ClusterRp. - * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' - * @readonly - * @enum {string} + * Represents an Extension Type. */ -export type ClusterRp = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; +export interface ExtensionType { + /** + * Extension release train: preview or stable + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly releaseTrains?: string[]; + /** + * Cluster types. Possible values include: 'connectedClusters', 'managedClusters' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clusterTypes?: ClusterTypes; + /** + * Extension scopes + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly supportedScopes?: SupportedScopes; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} /** - * Defines values for ClusterResourceName. - * Possible values include: 'managedClusters', 'connectedClusters' - * @readonly - * @enum {string} + * An interface representing ExtensionVersionListVersionsItem. */ -export type ClusterResourceName = 'managedClusters' | 'connectedClusters'; +export interface ExtensionVersionListVersionsItem { + /** + * The release train for this Extension Type + */ + releaseTrain?: string; + /** + * Versions available for this Extension Type and release train + */ + versions?: string[]; +} /** - * Defines values for ClusterRp1. - * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' - * @readonly - * @enum {string} + * Compliance Status details */ -export type ClusterRp1 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; +export interface ComplianceStatus { + /** + * The compliance state of the configuration. Possible values include: 'Pending', 'Compliant', + * 'Noncompliant', 'Installed', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly complianceState?: ComplianceStateType; + /** + * Datetime the configuration was last applied. + */ + lastConfigApplied?: Date; + /** + * Message from when the configuration was applied. + */ + message?: string; + /** + * Level of the message. Possible values include: 'Error', 'Warning', 'Information' + */ + messageLevel?: MessageLevelType; +} /** - * Defines values for ClusterResourceName1. - * Possible values include: 'managedClusters', 'connectedClusters' - * @readonly - * @enum {string} + * Properties for Helm operator. */ -export type ClusterResourceName1 = 'managedClusters' | 'connectedClusters'; +export interface HelmOperatorProperties { + /** + * Version of the operator Helm chart. + */ + chartVersion?: string; + /** + * Values override for the operator Helm chart. + */ + chartValues?: string; +} /** - * Defines values for ClusterRp2. - * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * The SourceControl Configuration object returned in Get & Put response. + */ +export interface SourceControlConfiguration extends ProxyResource { + /** + * Url of the SourceControl Repository. + */ + repositoryUrl?: string; + /** + * The namespace to which this operator is installed to. Maximum of 253 lower case alphanumeric + * characters, hyphen and period only. Default value: 'default'. + */ + operatorNamespace?: string; + /** + * Instance name of the operator - identifying the specific configuration. + */ + operatorInstanceName?: string; + /** + * Type of the operator. Possible values include: 'Flux' + */ + operatorType?: OperatorType; + /** + * Any Parameters for the Operator instance in string format. + */ + operatorParams?: string; + /** + * Name-value pairs of protected configuration settings for the configuration + */ + configurationProtectedSettings?: { [propertyName: string]: string }; + /** + * Scope at which the operator will be installed. Possible values include: 'cluster', + * 'namespace'. Default value: 'cluster'. + */ + operatorScope?: OperatorScopeType; + /** + * Public Key associated with this SourceControl configuration (either generated within the + * cluster or provided by the user). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly repositoryPublicKey?: string; + /** + * Base64-encoded known_hosts contents containing public SSH keys required to access private Git + * instances + */ + sshKnownHostsContents?: string; + /** + * Option to enable Helm Operator for this git configuration. + */ + enableHelmOperator?: boolean; + /** + * Properties for Helm operator. + */ + helmOperatorProperties?: HelmOperatorProperties; + /** + * The provisioning state of the resource provider. Possible values include: 'Accepted', + * 'Deleting', 'Running', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningStateType; + /** + * Compliance Status of the Configuration + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly complianceStatus?: ComplianceStatus; + /** + * 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 + */ + systemData?: SystemData; +} + +/** + * Display metadata associated with the operation. + */ +export interface ResourceProviderOperationDisplay { + /** + * Resource provider: Microsoft KubernetesConfiguration. + */ + provider?: string; + /** + * Resource on which the operation is performed. + */ + resource?: string; + /** + * Type of operation: get, read, delete, etc. + */ + operation?: string; + /** + * Description of this operation. + */ + description?: string; +} + +/** + * Supported operation of this resource provider. + */ +export interface ResourceProviderOperation { + /** + * Operation name, in format of {provider}/{resource}/{operation} + */ + name?: string; + /** + * Display metadata associated with the operation. + */ + display?: ResourceProviderOperationDisplay; + /** + * The intended executor of the operation;governs the display of the operation in the RBAC UX and + * the audit logs UX + */ + origin?: string; + /** + * The flag that indicates whether the operation applies to data plane. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isDataAction?: boolean; +} + +/** + * Optional Parameters. + */ +export interface ExtensionsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Delete the extension resource in Azure - not the normal asynchronous delete. + */ + forceDelete?: boolean; +} + +/** + * Optional Parameters. + */ +export interface ExtensionsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Delete the extension resource in Azure - not the normal asynchronous delete. + */ + forceDelete?: boolean; +} + +/** + * An interface representing SourceControlConfigurationClientOptions. + */ +export interface SourceControlConfigurationClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Result of the request to list Extensions. It contains a list of Extension objects and a URL + * link to get the next set of results. + * @extends Array + */ +export interface ExtensionsList extends Array { + /** + * URL to get the next set of extension objects, if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The async operations in progress, in the cluster. + * @extends Array + */ +export interface OperationStatusList extends Array { + /** + * URL to get the next set of Operation Result objects, if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List Extension Types + * @extends Array + */ +export interface ExtensionTypeList extends Array { + /** + * The link to fetch the next page of Extension Types + */ + nextLink?: string; +} + +/** + * @interface + * List versions for an Extension + * @extends Array + */ +export interface ExtensionVersionList extends Array { + /** + * Versions available for this Extension Type + */ + versions?: ExtensionVersionListVersionsItem[]; + /** + * The link to fetch the next page of Extension Types + */ + nextLink?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * @interface + * Result of the request to list Source Control Configurations. It contains a list of + * SourceControlConfiguration objects and a URL link to get the next set of results. + * @extends Array + */ +export interface SourceControlConfigurationList extends Array { + /** + * URL to get the next set of configuration objects, if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Result of the request to list operations. + * @extends Array + */ +export interface ResourceProviderOperationList extends Array { + /** + * URL to the next set of results, if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating', 'Deleting' * @readonly * @enum {string} */ -export type ClusterRp2 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; +export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'Creating' | 'Updating' | 'Deleting'; /** - * Defines values for ClusterResourceName2. - * Possible values include: 'managedClusters', 'connectedClusters' + * Defines values for LevelType. + * Possible values include: 'Error', 'Warning', 'Information' * @readonly * @enum {string} */ -export type ClusterResourceName2 = 'managedClusters' | 'connectedClusters'; +export type LevelType = 'Error' | 'Warning' | 'Information'; /** - * Defines values for ClusterRp3. - * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned' * @readonly * @enum {string} */ -export type ClusterRp3 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; +export type ResourceIdentityType = 'SystemAssigned'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for SkuTier. + * Possible values include: 'Free', 'Basic', 'Standard', 'Premium' + * @readonly + * @enum {string} + */ +export type SkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium'; + +/** + * Defines values for ClusterTypes. + * Possible values include: 'connectedClusters', 'managedClusters' + * @readonly + * @enum {string} + */ +export type ClusterTypes = 'connectedClusters' | 'managedClusters'; + +/** + * Defines values for ComplianceStateType. + * Possible values include: 'Pending', 'Compliant', 'Noncompliant', 'Installed', 'Failed' + * @readonly + * @enum {string} + */ +export type ComplianceStateType = 'Pending' | 'Compliant' | 'Noncompliant' | 'Installed' | 'Failed'; + +/** + * Defines values for MessageLevelType. + * Possible values include: 'Error', 'Warning', 'Information' + * @readonly + * @enum {string} + */ +export type MessageLevelType = 'Error' | 'Warning' | 'Information'; + +/** + * Defines values for OperatorType. + * Possible values include: 'Flux' + * @readonly + * @enum {string} + */ +export type OperatorType = 'Flux'; + +/** + * Defines values for OperatorScopeType. + * Possible values include: 'cluster', 'namespace' + * @readonly + * @enum {string} + */ +export type OperatorScopeType = 'cluster' | 'namespace'; + +/** + * Defines values for ProvisioningStateType. + * Possible values include: 'Accepted', 'Deleting', 'Running', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type ProvisioningStateType = 'Accepted' | 'Deleting' | 'Running' | 'Succeeded' | 'Failed'; + +/** + * Defines values for ClusterRp. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp1. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp1 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName1. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName1 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp2. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp2 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName2. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName2 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp3. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp3 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; /** * Defines values for ClusterResourceName3. @@ -433,6 +967,426 @@ export type ClusterRp3 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; */ export type ClusterResourceName3 = 'managedClusters' | 'connectedClusters'; +/** + * Defines values for ClusterRp4. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp4 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName4. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName4 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp5. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp5 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName5. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName5 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp6. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp6 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterType. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterType = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp7. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp7 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterRp8. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp8 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName6. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName6 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp9. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp9 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName7. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName7 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp10. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp10 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName8. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName8 = 'managedClusters' | 'connectedClusters'; + +/** + * Defines values for ClusterRp11. + * Possible values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @readonly + * @enum {string} + */ +export type ClusterRp11 = 'Microsoft.ContainerService' | 'Microsoft.Kubernetes'; + +/** + * Defines values for ClusterResourceName9. + * Possible values include: 'managedClusters', 'connectedClusters' + * @readonly + * @enum {string} + */ +export type ClusterResourceName9 = 'managedClusters' | 'connectedClusters'; + +/** + * Contains response data for the create operation. + */ +export type ExtensionsCreateResponse = Extension & { + /** + * 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: Extension; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExtensionsGetResponse = Extension & { + /** + * 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: Extension; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ExtensionsListResponse = ExtensionsList & { + /** + * 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: ExtensionsList; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type ExtensionsBeginCreateResponse = Extension & { + /** + * 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: Extension; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ExtensionsListNextResponse = ExtensionsList & { + /** + * 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: ExtensionsList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationStatusListResponse = OperationStatusList & { + /** + * 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: OperationStatusList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type OperationStatusGetResponse = OperationStatusResult & { + /** + * 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: OperationStatusResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationStatusListNextResponse = OperationStatusList & { + /** + * 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: OperationStatusList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ClusterExtensionTypeGetResponse = ExtensionType & { + /** + * 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: ExtensionType; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ClusterExtensionTypesListResponse = ExtensionTypeList & { + /** + * 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: ExtensionTypeList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ClusterExtensionTypesListNextResponse = ExtensionTypeList & { + /** + * 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: ExtensionTypeList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ExtensionTypeVersionsListResponse = ExtensionVersionList & { + /** + * 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: ExtensionVersionList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ExtensionTypeVersionsListNextResponse = ExtensionVersionList & { + /** + * 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: ExtensionVersionList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LocationExtensionTypesListResponse = ExtensionTypeList & { + /** + * 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: ExtensionTypeList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LocationExtensionTypesListNextResponse = ExtensionTypeList & { + /** + * 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: ExtensionTypeList; + }; +}; + /** * Contains response data for the get operation. */ diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/locationExtensionTypesMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/locationExtensionTypesMappers.ts new file mode 100644 index 000000000000..736105c33f72 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/locationExtensionTypesMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ClusterScopeSettings, + ComplianceStatus, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Extension, + ExtensionStatus, + ExtensionType, + ExtensionTypeList, + HelmOperatorProperties, + Identity, + Plan, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Scope, + ScopeCluster, + ScopeNamespace, + Sku, + SourceControlConfiguration, + SupportedScopes, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts index 1b253cc00559..411908e03caf 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts @@ -12,14 +12,14 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const Result: msRest.CompositeMapper = { - serializedName: "Result", +export const ScopeCluster: msRest.CompositeMapper = { + serializedName: "ScopeCluster", type: { name: "Composite", - className: "Result", + className: "ScopeCluster", modelProperties: { - sampleProperty: { - serializedName: "sampleProperty", + releaseNamespace: { + serializedName: "releaseNamespace", type: { name: "String" } @@ -28,25 +28,730 @@ export const Result: msRest.CompositeMapper = { } }; -export const ErrorDefinition: msRest.CompositeMapper = { - serializedName: "ErrorDefinition", +export const ScopeNamespace: msRest.CompositeMapper = { + serializedName: "ScopeNamespace", type: { name: "Composite", - className: "ErrorDefinition", + className: "ScopeNamespace", + modelProperties: { + targetNamespace: { + serializedName: "targetNamespace", + type: { + name: "String" + } + } + } + } +}; + +export const Scope: msRest.CompositeMapper = { + serializedName: "Scope", + type: { + name: "Composite", + className: "Scope", + modelProperties: { + cluster: { + nullable: true, + serializedName: "cluster", + type: { + name: "Composite", + className: "ScopeCluster" + } + }, + namespace: { + nullable: true, + serializedName: "namespace", + type: { + name: "Composite", + className: "ScopeNamespace" + } + } + } + } +}; + +export const ExtensionStatus: msRest.CompositeMapper = { + serializedName: "ExtensionStatus", + type: { + name: "Composite", + className: "ExtensionStatus", modelProperties: { code: { - required: true, serializedName: "code", type: { name: "String" } }, - message: { - required: true, - serializedName: "message", + displayStatus: { + serializedName: "displayStatus", + type: { + name: "String" + } + }, + level: { + serializedName: "level", + defaultValue: 'Information', + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + time: { + serializedName: "time", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned" + ] + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const Extension: msRest.CompositeMapper = { + serializedName: "Extension", + type: { + name: "Composite", + className: "Extension", + modelProperties: { + ...ProxyResource.type.modelProperties, + extensionType: { + serializedName: "properties.extensionType", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + defaultValue: true, + type: { + name: "Boolean" + } + }, + releaseTrain: { + serializedName: "properties.releaseTrain", + defaultValue: 'Stable', + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "Composite", + className: "Scope" + } + }, + configurationSettings: { + nullable: true, + serializedName: "properties.configurationSettings", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + configurationProtectedSettings: { + nullable: true, + serializedName: "properties.configurationProtectedSettings", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + statuses: { + nullable: true, + serializedName: "properties.statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtensionStatus" + } + } + } + }, + errorInfo: { + nullable: true, + readOnly: true, + serializedName: "properties.errorInfo", + type: { + name: "Composite", + className: "ErrorDetail" + } + }, + customLocationSettings: { + nullable: true, + readOnly: true, + serializedName: "properties.customLocationSettings", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + packageUri: { + nullable: true, + readOnly: true, + serializedName: "properties.packageUri", + type: { + name: "String" + } + }, + identity: { + nullable: true, + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OperationStatusResult: msRest.CompositeMapper = { + serializedName: "OperationStatusResult", + type: { + name: "Composite", + className: "OperationStatusResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + properties: { + nullable: true, + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + error: { + nullable: true, + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceModelWithAllowedPropertySetIdentity: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet_identity", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetIdentity", + modelProperties: { + ...Identity.type.modelProperties + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: [ + "Free", + "Basic", + "Standard", + "Premium" + ] + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const ResourceModelWithAllowedPropertySetSku: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet_sku", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetSku", + modelProperties: { + ...Sku.type.modelProperties + } + } +}; + +export const Plan: msRest.CompositeMapper = { + serializedName: "Plan", + type: { + name: "Composite", + className: "Plan", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + publisher: { + required: true, + serializedName: "publisher", + type: { + name: "String" + } + }, + product: { + required: true, + serializedName: "product", + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceModelWithAllowedPropertySetPlan: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet_plan", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetPlan", + modelProperties: { + ...Plan.type.modelProperties + } + } +}; + +export const ResourceModelWithAllowedPropertySet: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySet", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + managedBy: { + serializedName: "managedBy", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + constraints: { + Pattern: /^[-\w\._,\(\)]+$/ + }, + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetIdentity" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetSku" + } + }, + plan: { + serializedName: "plan", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetPlan" + } } } } @@ -62,40 +767,28 @@ export const ErrorResponse: msRest.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDefinition" + className: "ErrorDetail" } } } } }; -export const ComplianceStatus: msRest.CompositeMapper = { - serializedName: "ComplianceStatus", +export const ClusterScopeSettings: msRest.CompositeMapper = { + serializedName: "ClusterScopeSettings", type: { name: "Composite", - className: "ComplianceStatus", + className: "ClusterScopeSettings", modelProperties: { - complianceState: { - readOnly: true, - serializedName: "complianceState", - type: { - name: "String" - } - }, - lastConfigApplied: { - serializedName: "lastConfigApplied", - type: { - name: "DateTime" - } - }, - message: { - serializedName: "message", + ...ProxyResource.type.modelProperties, + allowMultipleInstances: { + serializedName: "properties.allowMultipleInstances", type: { - name: "String" + name: "Boolean" } }, - messageLevel: { - serializedName: "messageLevel", + defaultReleaseNamespace: { + serializedName: "properties.defaultReleaseNamespace", type: { name: "String" } @@ -104,97 +797,132 @@ export const ComplianceStatus: msRest.CompositeMapper = { } }; -export const HelmOperatorProperties: msRest.CompositeMapper = { - serializedName: "HelmOperatorProperties", +export const SupportedScopes: msRest.CompositeMapper = { + serializedName: "SupportedScopes", type: { name: "Composite", - className: "HelmOperatorProperties", + className: "SupportedScopes", modelProperties: { - chartVersion: { - serializedName: "chartVersion", + defaultScope: { + serializedName: "defaultScope", type: { name: "String" } }, - chartValues: { - serializedName: "chartValues", + clusterScopeSettings: { + serializedName: "clusterScopeSettings", type: { - name: "String" + name: "Composite", + className: "ClusterScopeSettings" } } } } }; -export const SystemData: msRest.CompositeMapper = { - serializedName: "systemData", +export const ExtensionType: msRest.CompositeMapper = { + serializedName: "ExtensionType", type: { name: "Composite", - className: "SystemData", + className: "ExtensionType", modelProperties: { - createdBy: { - serializedName: "createdBy", + releaseTrains: { + readOnly: true, + serializedName: "properties.releaseTrains", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - createdByType: { - serializedName: "createdByType", + clusterTypes: { + readOnly: true, + serializedName: "properties.clusterTypes", type: { - name: "String" + name: "Enum", + allowedValues: [ + "connectedClusters", + "managedClusters" + ] } }, - createdAt: { - serializedName: "createdAt", + supportedScopes: { + readOnly: true, + serializedName: "properties.supportedScopes", type: { - name: "DateTime" + name: "Composite", + className: "SupportedScopes" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + } + } + } +}; + +export const ExtensionVersionListVersionsItem: msRest.CompositeMapper = { + serializedName: "ExtensionVersionList_versionsItem", + type: { + name: "Composite", + className: "ExtensionVersionListVersionsItem", + modelProperties: { + releaseTrain: { + serializedName: "releaseTrain", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + versions: { + serializedName: "versions", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const ComplianceStatus: msRest.CompositeMapper = { + serializedName: "ComplianceStatus", type: { name: "Composite", - className: "Resource", + className: "ComplianceStatus", modelProperties: { - id: { + complianceState: { readOnly: true, - serializedName: "id", + serializedName: "complianceState", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + lastConfigApplied: { + serializedName: "lastConfigApplied", + type: { + name: "DateTime" + } + }, + message: { + serializedName: "message", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + messageLevel: { + serializedName: "messageLevel", type: { name: "String" } @@ -203,13 +931,24 @@ export const Resource: msRest.CompositeMapper = { } }; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", +export const HelmOperatorProperties: msRest.CompositeMapper = { + serializedName: "HelmOperatorProperties", type: { name: "Composite", - className: "ProxyResource", + className: "HelmOperatorProperties", modelProperties: { - ...Resource.type.modelProperties + chartVersion: { + serializedName: "chartVersion", + type: { + name: "String" + } + }, + chartValues: { + serializedName: "chartValues", + type: { + name: "String" + } + } } } }; @@ -375,6 +1114,12 @@ export const ResourceProviderOperation: msRest.CompositeMapper = { className: "ResourceProviderOperationDisplay" } }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, isDataAction: { readOnly: true, serializedName: "isDataAction", @@ -386,27 +1131,28 @@ export const ResourceProviderOperation: msRest.CompositeMapper = { } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", +export const ExtensionsList: msRest.CompositeMapper = { + serializedName: "ExtensionsList", type: { name: "Composite", - className: "TrackedResource", + className: "ExtensionsList", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + value: { + readOnly: true, + serializedName: "", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "Extension" } } } }, - location: { - required: true, - serializedName: "location", + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { name: "String" } @@ -415,19 +1161,95 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", +export const OperationStatusList: msRest.CompositeMapper = { + serializedName: "OperationStatusList", type: { name: "Composite", - className: "AzureEntityResource", + className: "OperationStatusList", modelProperties: { - ...Resource.type.modelProperties, - etag: { + value: { readOnly: true, - serializedName: "etag", + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationStatusResult" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExtensionTypeList: msRest.CompositeMapper = { + serializedName: "ExtensionTypeList", + type: { + name: "Composite", + className: "ExtensionTypeList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtensionType" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExtensionVersionList: msRest.CompositeMapper = { + serializedName: "ExtensionVersionList", + type: { + name: "Composite", + className: "ExtensionVersionList", + modelProperties: { + versions: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtensionVersionListVersionsItem" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationStatusMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationStatusMappers.ts new file mode 100644 index 000000000000..c685567feb95 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationStatusMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + OperationStatusList, + OperationStatusResult +} from "../models/mappers"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationsMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationsMappers.ts index e275551c2766..aeb6dcd45292 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationsMappers.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/operationsMappers.ts @@ -7,7 +7,8 @@ */ export { - ErrorDefinition, + ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, ResourceProviderOperation, ResourceProviderOperationDisplay, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts index c46fa660fefe..8cdae1880ec3 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/parameters.ts @@ -24,6 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -59,6 +62,58 @@ export const clusterRp: msRest.OperationURLParameter = { } } }; +export const clusterType: msRest.OperationURLParameter = { + parameterPath: "clusterType", + mapper: { + required: true, + serializedName: "clusterType", + type: { + name: "String" + } + } +}; +export const extensionName: msRest.OperationURLParameter = { + parameterPath: "extensionName", + mapper: { + required: true, + serializedName: "extensionName", + type: { + name: "String" + } + } +}; +export const extensionTypeName: msRest.OperationURLParameter = { + parameterPath: "extensionTypeName", + mapper: { + required: true, + serializedName: "extensionTypeName", + type: { + name: "String" + } + } +}; +export const forceDelete: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "forceDelete" + ], + mapper: { + serializedName: "forceDelete", + type: { + name: "Boolean" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -70,11 +125,26 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const operationId: msRest.OperationURLParameter = { + parameterPath: "operationId", + mapper: { + required: true, + serializedName: "operationId", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, type: { name: "String" } @@ -95,6 +165,9 @@ export const subscriptionId: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/sourceControlConfigurationsMappers.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/sourceControlConfigurationsMappers.ts index d4c79a2cb886..14422cfd660f 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/sourceControlConfigurationsMappers.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/sourceControlConfigurationsMappers.ts @@ -9,12 +9,26 @@ export { AzureEntityResource, BaseResource, + ClusterScopeSettings, ComplianceStatus, - ErrorDefinition, + ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, + Extension, + ExtensionStatus, HelmOperatorProperties, + Identity, + Plan, ProxyResource, Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Scope, + ScopeCluster, + ScopeNamespace, + Sku, SourceControlConfiguration, SourceControlConfigurationList, SystemData, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts new file mode 100644 index 000000000000..4d264a76cb3f --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionType.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/clusterExtensionTypeMappers"; +import * as Parameters from "../models/parameters"; +import { SourceControlConfigurationClientContext } from "../sourceControlConfigurationClientContext"; + +/** Class representing a ClusterExtensionType. */ +export class ClusterExtensionType { + private readonly client: SourceControlConfigurationClientContext; + + /** + * Create a ClusterExtensionType. + * @param {SourceControlConfigurationClientContext} client Reference to the service client. + */ + constructor(client: SourceControlConfigurationClientContext) { + this.client = client; + } + + /** + * Get Extension Type details + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterType The Kubernetes cluster resource name - either managedClusters (for AKS + * clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionTypeName Extension type name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp6, clusterType: Models.ClusterType, clusterName: string, extensionTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterType The Kubernetes cluster resource name - either managedClusters (for AKS + * clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionTypeName Extension type name + * @param callback The callback + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp6, clusterType: Models.ClusterType, clusterName: string, extensionTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterType The Kubernetes cluster resource name - either managedClusters (for AKS + * clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionTypeName Extension type name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp6, clusterType: Models.ClusterType, clusterName: string, extensionTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterRp: Models.ClusterRp6, clusterType: Models.ClusterType, clusterName: string, extensionTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterRp, + clusterType, + clusterName, + extensionTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterType}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensionTypes/{extensionTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterType, + Parameters.clusterName, + Parameters.extensionTypeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts new file mode 100644 index 000000000000..a52f805dd12b --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/clusterExtensionTypes.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/clusterExtensionTypesMappers"; +import * as Parameters from "../models/parameters"; +import { SourceControlConfigurationClientContext } from "../sourceControlConfigurationClientContext"; + +/** Class representing a ClusterExtensionTypes. */ +export class ClusterExtensionTypes { + private readonly client: SourceControlConfigurationClientContext; + + /** + * Create a ClusterExtensionTypes. + * @param {SourceControlConfigurationClientContext} client Reference to the service client. + */ + constructor(client: SourceControlConfigurationClientContext) { + this.client = client; + } + + /** + * Get Extension Types + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterName The name of the kubernetes cluster. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp7, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterName The name of the kubernetes cluster. + * @param callback The callback + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp7, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterName The name of the kubernetes cluster. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp7, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterRp: Models.ClusterRp7, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterRp, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get Extension Types + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/connectedClusters/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensionTypes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionTypeList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionTypeList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts new file mode 100644 index 000000000000..a2f5f65167b2 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensionTypeVersions.ts @@ -0,0 +1,138 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/extensionTypeVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { SourceControlConfigurationClientContext } from "../sourceControlConfigurationClientContext"; + +/** Class representing a ExtensionTypeVersions. */ +export class ExtensionTypeVersions { + private readonly client: SourceControlConfigurationClientContext; + + /** + * Create a ExtensionTypeVersions. + * @param {SourceControlConfigurationClientContext} client Reference to the service client. + */ + constructor(client: SourceControlConfigurationClientContext) { + this.client = client; + } + + /** + * List available versions for an Extension Type + * @param location extension location + * @param extensionTypeName Extension type name + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, extensionTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location extension location + * @param extensionTypeName Extension type name + * @param callback The callback + */ + list(location: string, extensionTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param location extension location + * @param extensionTypeName Extension type name + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, extensionTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, extensionTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + extensionTypeName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List available versions for an Extension Type + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.KubernetesConfiguration/locations/{location}/extensionTypes/{extensionTypeName}/versions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.extensionTypeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionVersionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionVersionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts new file mode 100644 index 000000000000..cd3ef6e14b8e --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/extensions.ts @@ -0,0 +1,411 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/extensionsMappers"; +import * as Parameters from "../models/parameters"; +import { SourceControlConfigurationClientContext } from "../sourceControlConfigurationClientContext"; + +/** Class representing a Extensions. */ +export class Extensions { + private readonly client: SourceControlConfigurationClientContext; + + /** + * Create a Extensions. + * @param {SourceControlConfigurationClientContext} client Reference to the service client. + */ + constructor(client: SourceControlConfigurationClientContext) { + this.client = client; + } + + /** + * Create a new Kubernetes Cluster Extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param extension Properties necessary to Create an Extension. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, extensionName: string, extension: Models.Extension, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterRp,clusterResourceName,clusterName,extensionName,extension,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets Kubernetes Cluster Extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param callback The callback + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, extensionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, extensionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterRp, + clusterResourceName, + clusterName, + extensionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from + * the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, extensionName: string, options?: Models.ExtensionsDeleteMethodOptionalParams): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterRp,clusterResourceName,clusterName,extensionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * List all Extensions in the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param callback The callback + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterRp, + clusterResourceName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Create a new Kubernetes Cluster Extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param extension Properties necessary to Create an Extension. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, extensionName: string, extension: Models.Extension, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterRp, + clusterResourceName, + clusterName, + extensionName, + extension, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from + * the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, extensionName: string, options?: Models.ExtensionsBeginDeleteMethodOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterRp, + clusterResourceName, + clusterName, + extensionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List all Extensions in the cluster. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterResourceName, + Parameters.clusterName, + Parameters.extensionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Extension + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterResourceName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterResourceName, + Parameters.clusterName, + Parameters.extensionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "extension", + mapper: { + ...Mappers.Extension, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Extension + }, + 201: { + bodyMapper: Mappers.Extension + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterResourceName, + Parameters.clusterName, + Parameters.extensionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.forceDelete + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts index 0747a061f3f2..5ded92e7caba 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/index.ts @@ -7,5 +7,11 @@ * regenerated. */ +export * from "./extensions"; +export * from "./operationStatus"; +export * from "./clusterExtensionType"; +export * from "./clusterExtensionTypes"; +export * from "./extensionTypeVersions"; +export * from "./locationExtensionTypes"; export * from "./sourceControlConfigurations"; export * from "./operations"; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.ts new file mode 100644 index 000000000000..f03c6e70101b --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/locationExtensionTypes.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/locationExtensionTypesMappers"; +import * as Parameters from "../models/parameters"; +import { SourceControlConfigurationClientContext } from "../sourceControlConfigurationClientContext"; + +/** Class representing a LocationExtensionTypes. */ +export class LocationExtensionTypes { + private readonly client: SourceControlConfigurationClientContext; + + /** + * Create a LocationExtensionTypes. + * @param {SourceControlConfigurationClientContext} client Reference to the service client. + */ + constructor(client: SourceControlConfigurationClientContext) { + this.client = client; + } + + /** + * List all Extension Types + * @param location extension location + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location extension location + * @param callback The callback + */ + list(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location extension location + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List all Extension Types + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.KubernetesConfiguration/locations/{location}/extensionTypes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionTypeList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionTypeList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts new file mode 100644 index 000000000000..c7eaab102746 --- /dev/null +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/operationStatus.ts @@ -0,0 +1,249 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationStatusMappers"; +import * as Parameters from "../models/parameters"; +import { SourceControlConfigurationClientContext } from "../sourceControlConfigurationClientContext"; + +/** Class representing a OperationStatus. */ +export class OperationStatus { + private readonly client: SourceControlConfigurationClientContext; + + /** + * Create a OperationStatus. + * @param {SourceControlConfigurationClientContext} client Reference to the service client. + */ + constructor(client: SourceControlConfigurationClientContext) { + this.client = client; + } + + /** + * List Async Operations, currently in progress, in a cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp4, clusterResourceName: Models.ClusterResourceName4, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param callback The callback + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp4, clusterResourceName: Models.ClusterResourceName4, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, clusterRp: Models.ClusterRp4, clusterResourceName: Models.ClusterResourceName4, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterRp: Models.ClusterRp4, clusterResourceName: Models.ClusterResourceName4, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterRp, + clusterResourceName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get Async Operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param operationId operation Id + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp5, clusterResourceName: Models.ClusterResourceName5, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param operationId operation Id + * @param callback The callback + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp5, clusterResourceName: Models.ClusterResourceName5, clusterName: string, extensionName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS + * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: + * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' + * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for + * AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include: + * 'managedClusters', 'connectedClusters' + * @param clusterName The name of the kubernetes cluster. + * @param extensionName Name of the Extension. + * @param operationId operation Id + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterRp: Models.ClusterRp5, clusterResourceName: Models.ClusterResourceName5, clusterName: string, extensionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterRp: Models.ClusterRp5, clusterResourceName: Models.ClusterResourceName5, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterRp, + clusterResourceName, + clusterName, + extensionName, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List Async Operations, currently in progress, in a cluster + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/operations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterResourceName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatusList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}/operations/{operationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterRp, + Parameters.clusterResourceName, + Parameters.clusterName, + Parameters.extensionName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatusList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts index 490f633c5fa9..f9eb7c0b9033 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/operations/sourceControlConfigurations.ts @@ -28,7 +28,7 @@ export class SourceControlConfigurations { /** * Gets details of the Source Control Configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -40,9 +40,9 @@ export class SourceControlConfigurations { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, clusterRp: Models.ClusterRp8, clusterResourceName: Models.ClusterResourceName6, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -53,9 +53,9 @@ export class SourceControlConfigurations { * @param sourceControlConfigurationName Name of the Source Control Configuration. * @param callback The callback */ - get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterRp: Models.ClusterRp8, clusterResourceName: Models.ClusterResourceName6, clusterName: string, sourceControlConfigurationName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -67,8 +67,8 @@ export class SourceControlConfigurations { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, clusterRp: Models.ClusterRp8, clusterResourceName: Models.ClusterResourceName6, clusterName: string, sourceControlConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterRp: Models.ClusterRp8, clusterResourceName: Models.ClusterResourceName6, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -84,7 +84,7 @@ export class SourceControlConfigurations { /** * Create a new Kubernetes Source Control Configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -97,9 +97,9 @@ export class SourceControlConfigurations { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp9, clusterResourceName: Models.ClusterResourceName7, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -111,9 +111,9 @@ export class SourceControlConfigurations { * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp9, clusterResourceName: Models.ClusterResourceName7, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -126,8 +126,8 @@ export class SourceControlConfigurations { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp9, clusterResourceName: Models.ClusterResourceName7, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp9, clusterResourceName: Models.ClusterResourceName7, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -145,7 +145,7 @@ export class SourceControlConfigurations { /** * This will delete the YAML file used to set up the Source control configuration, thus stopping * future sync from the source repo. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -157,14 +157,14 @@ export class SourceControlConfigurations { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp10, clusterResourceName: Models.ClusterResourceName8, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginDeleteMethod(resourceGroupName,clusterRp,clusterResourceName,clusterName,sourceControlConfigurationName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * List all Source Control Configurations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -175,9 +175,9 @@ export class SourceControlConfigurations { * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, clusterRp: Models.ClusterRp11, clusterResourceName: Models.ClusterResourceName9, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -187,9 +187,9 @@ export class SourceControlConfigurations { * @param clusterName The name of the kubernetes cluster. * @param callback The callback */ - list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterRp: Models.ClusterRp11, clusterResourceName: Models.ClusterResourceName9, clusterName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -200,8 +200,8 @@ export class SourceControlConfigurations { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, clusterRp: Models.ClusterRp11, clusterResourceName: Models.ClusterResourceName9, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterRp: Models.ClusterRp11, clusterResourceName: Models.ClusterResourceName9, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -217,7 +217,7 @@ export class SourceControlConfigurations { /** * This will delete the YAML file used to set up the Source control configuration, thus stopping * future sync from the source repo. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS * clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible values include: * 'Microsoft.ContainerService', 'Microsoft.Kubernetes' @@ -229,7 +229,7 @@ export class SourceControlConfigurations { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp10, clusterResourceName: Models.ClusterResourceName8, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts index bd2cc20ebd69..c914eaebddd6 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts @@ -16,18 +16,29 @@ import { SourceControlConfigurationClientContext } from "./sourceControlConfigur class SourceControlConfigurationClient extends SourceControlConfigurationClientContext { // Operation groups + extensions: operations.Extensions; + operationStatus: operations.OperationStatus; + clusterExtensionType: operations.ClusterExtensionType; + clusterExtensionTypes: operations.ClusterExtensionTypes; + extensionTypeVersions: operations.ExtensionTypeVersions; + locationExtensionTypes: operations.LocationExtensionTypes; sourceControlConfigurations: operations.SourceControlConfigurations; operations: operations.Operations; /** * Initializes a new instance of the SourceControlConfigurationClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. - * 00000000-0000-0000-0000-000000000000) + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SourceControlConfigurationClientOptions) { super(credentials, subscriptionId, options); + this.extensions = new operations.Extensions(this); + this.operationStatus = new operations.OperationStatus(this); + this.clusterExtensionType = new operations.ClusterExtensionType(this); + this.clusterExtensionTypes = new operations.ClusterExtensionTypes(this); + this.extensionTypeVersions = new operations.ExtensionTypeVersions(this); + this.locationExtensionTypes = new operations.LocationExtensionTypes(this); this.sourceControlConfigurations = new operations.SourceControlConfigurations(this); this.operations = new operations.Operations(this); } diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts index 2b240880b2e7..48cac04002f6 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts @@ -16,14 +16,13 @@ const packageVersion = "3.0.0"; export class SourceControlConfigurationClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; - subscriptionId: string; apiVersion?: string; + subscriptionId: string; /** * Initializes a new instance of the SourceControlConfigurationClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. - * 00000000-0000-0000-0000-000000000000) + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SourceControlConfigurationClientOptions) { @@ -37,14 +36,14 @@ export class SourceControlConfigurationClientContext extends msRestAzure.AzureSe if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2021-03-01'; + this.apiVersion = '2021-05-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -52,10 +51,10 @@ export class SourceControlConfigurationClientContext extends msRestAzure.AzureSe this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }