diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts index ac48cdcd1a25..032ca01fcfc8 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts @@ -20,6 +20,10 @@ class HybridComputeManagementClient extends HybridComputeManagementClientContext machines: operations.Machines; machineExtensions: operations.MachineExtensions; operations: operations.Operations; + privateLinkScopes: operations.PrivateLinkScopes; + privateLinkResources: operations.PrivateLinkResources; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkScopedResources: operations.PrivateLinkScopedResources; /** * Initializes a new instance of the HybridComputeManagementClient class. @@ -32,6 +36,10 @@ class HybridComputeManagementClient extends HybridComputeManagementClientContext this.machines = new operations.Machines(this); this.machineExtensions = new operations.MachineExtensions(this); this.operations = new operations.Operations(this); + this.privateLinkScopes = new operations.PrivateLinkScopes(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkScopedResources = new operations.PrivateLinkScopedResources(this); } } diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts index c10927790ff4..1b0280c6e7fc 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts @@ -44,7 +44,7 @@ export class HybridComputeManagementClientContext extends msRestAzure.AzureServi super(credentials, options); - this.apiVersion = '2019-12-12'; + this.apiVersion = '2020-08-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts index dacb6cdfd4d7..b9a4d27996cb 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts @@ -246,24 +246,40 @@ export interface MachineProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly osVersion?: string; + /** + * Specifies the Arc Machine's unique SMBIOS ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmUuid?: string; /** * Machine Extensions information */ extensions?: MachineExtensionInstanceView[]; -} - -/** - * Describes the properties required to reconnect a hybrid machine. - */ -export interface MachineReconnectProperties { /** - * Specifies the hybrid machine unique ID. + * Specifies the Operating System product SKU. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmId?: string; + readonly osSku?: string; /** - * Public Key that the client provides to be used during initial resource onboarding. + * Specifies the Windows domain name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - clientPublicKey?: string; + readonly domainName?: string; + /** + * Specifies the AD fully qualified display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly adFqdn?: string; + /** + * Specifies the DNS fully qualified display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dnsFqdn?: string; + /** + * List of private link scoped resources associated with this machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateLinkScopedResources?: string[]; } /** @@ -274,23 +290,24 @@ export interface MachineUpdateProperties { } /** - * Identity for the resource. + * An interface representing Identity. + * @summary Managed Identity. */ export interface Identity { /** - * The principal ID of resource identity. + * The identity type. + */ + type?: string; + /** + * The identity's principal id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * The tenant ID of resource. + * The identity's tenant id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; - /** - * The identity type. Possible values include: 'SystemAssigned' - */ - type?: ResourceIdentityType; } /** @@ -399,10 +416,40 @@ export interface Machine extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly osVersion?: string; + /** + * Specifies the Arc Machine's unique SMBIOS ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmUuid?: string; /** * Machine Extensions information */ extensions?: MachineExtensionInstanceView[]; + /** + * Specifies the Operating System product SKU. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly osSku?: string; + /** + * Specifies the Windows domain name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly domainName?: string; + /** + * Specifies the AD fully qualified display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly adFqdn?: string; + /** + * Specifies the DNS fully qualified display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dnsFqdn?: string; + /** + * List of private link scoped resources associated with this machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateLinkScopedResources?: string[]; identity?: MachineIdentity; } @@ -421,34 +468,31 @@ export interface UpdateResource { */ export interface MachineUpdate extends UpdateResource { /** - * The principal ID of resource identity. + * The identity type. + */ + type?: string; + /** + * The identity's principal id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * The tenant ID of resource. + * The identity's tenant id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; - /** - * The identity type. Possible values include: 'SystemAssigned' - */ - type?: ResourceIdentityType; locationData?: LocationData; } /** - * Describes a hybrid machine reconnect. + * Contains details when the response code indicates an error. + * @summary Error response. */ -export interface MachineReconnect { - /** - * Specifies the hybrid machine unique ID. - */ - vmId?: string; +export interface ErrorResponse { /** - * Public Key that the client provides to be used during initial resource onboarding. + * The error details. */ - clientPublicKey?: string; + error: ErrorDetail; } /** @@ -646,137 +690,151 @@ export interface AzureEntityResource extends Resource { } /** - * An interface representing ResourceModelWithAllowedPropertySetIdentity. + * An azure resource object */ -export interface ResourceModelWithAllowedPropertySetIdentity extends Identity { -} - -/** - * The resource model definition representing SKU - */ -export interface Sku { +export interface PrivateLinkScopesResource extends BaseResource { /** - * The name of the SKU. Ex - P3. It is typically a letter+number code + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name: string; + readonly id?: 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' + * Azure resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tier?: SkuTier; + readonly name?: string; /** - * The SKU size. When the name field is the combination of tier and some other value, this would - * be the standalone code. + * Azure resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - size?: string; + readonly type?: string; /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. + * Resource location */ - family?: string; + location: 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. + * Resource tags */ - capacity?: number; + tags?: { [propertyName: string]: string }; } /** - * An interface representing ResourceModelWithAllowedPropertySetSku. + * A container holding only the Tags for a resource, allowing the user to update the tags on a + * PrivateLinkScope instance. */ -export interface ResourceModelWithAllowedPropertySetSku extends Sku { +export interface TagsResource { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; } /** - * Plan for the resource. + * Private endpoint which the connection belongs to. */ -export interface Plan { - /** - * A user defined name of the 3rd Party Artifact that is being procured. - */ - name: string; +export interface PrivateEndpointProperty { /** - * The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + * Resource id of the private endpoint. */ - publisher: string; + id?: string; +} + +/** + * State of the private endpoint connection. + */ +export interface PrivateLinkServiceConnectionStateProperty { /** - * 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. + * The private link service connection status. */ - product: string; + status: string; /** - * A publisher provided promotion code as provisioned in Data Market for the said - * product/artifact. + * The private link service connection description. */ - promotionCode?: string; + description: string; /** - * The version of the desired product/artifact. + * The actions required for private link service connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - version?: string; + readonly actionsRequired?: string; } /** - * An interface representing ResourceModelWithAllowedPropertySetPlan. + * A private endpoint connection */ -export interface ResourceModelWithAllowedPropertySetPlan extends Plan { +export interface PrivateEndpointConnection extends ProxyResource { + /** + * Private endpoint which the connection belongs to. + */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: 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. + * An Azure Arc PrivateLinkScope definition. */ -export interface ResourceModelWithAllowedPropertySet extends BaseResource { +export interface HybridComputePrivateLinkScope extends PrivateLinkScopesResource { /** - * 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.** + * Indicates whether machines associated with the private link scope can also use public Azure + * Arc service endpoints. Possible values include: 'Enabled', 'Disabled'. Default value: + * 'Disabled'. */ - readonly id?: string; + publicNetworkAccess?: PublicNetworkAccessType; /** - * The name of the resource + * Current state of this PrivateLinkScope: whether or not is has been provisioned within the + * resource group it is defined. Users cannot change this value but are able to read from it. + * Values will include Provisioning ,Succeeded, Canceled and Failed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly provisioningState?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts.. + * List of private endpoint connections. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ProxyResource { /** - * The geo-location where the resource lives + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - location?: string; + readonly groupId?: 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. + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - managedBy?: string; + readonly requiredMembers?: 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. + * Required DNS zone names of the the private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind?: string; + readonly requiredZoneNames?: string[]; +} + +/** + * A private link scoped resource + */ +export interface ScopedResource extends ProxyResource { /** - * 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.** + * The resource id of the scoped Azure monitor resource. */ - readonly etag?: string; + linkedResourceId?: string; /** - * Resource tags. + * State of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; - identity?: ResourceModelWithAllowedPropertySetIdentity; - sku?: ResourceModelWithAllowedPropertySetSku; - plan?: ResourceModelWithAllowedPropertySetPlan; + readonly provisioningState?: string; } /** @@ -798,7 +856,33 @@ export interface ErrorAdditionalInfo { /** * The resource management error response. */ -export interface ErrorResponse { +export interface ErrorResponseV2 { + /** + * The error object. + */ + error?: ErrorResponseV2Error; +} + +/** + * The resource management error response. + */ +export interface ErrorResponseCommon extends ErrorResponseV2 { + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorResponseCommon[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * The error object. + */ +export interface ErrorResponseV2Error { /** * The error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -818,7 +902,7 @@ export interface ErrorResponse { * The error details. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: ErrorResponse[]; + readonly details?: ErrorResponseV2[]; /** * The error additional info. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -887,6 +971,58 @@ export interface MachineExtensionsListResult extends Array { export interface OperationListResult extends Array { } +/** + * @interface + * Describes the list of Azure Arc PrivateLinkScope resources. + * @extends Array + */ +export interface HybridComputePrivateLinkScopeListResult extends Array { + /** + * The URI to get the next set of Azure Arc PrivateLinkScope definitions if too many + * PrivateLinkScopes where returned in the result set. + */ + nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of scoped resources in a private link scope. + * @extends Array + */ +export interface ScopedResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * Defines values for StatusTypes. * Possible values include: 'Connected', 'Disconnected', 'Error' @@ -904,20 +1040,12 @@ export type StatusTypes = 'Connected' | 'Disconnected' | 'Error'; export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; /** - * Defines values for SkuTier. - * Possible values include: 'Free', 'Basic', 'Standard', 'Premium' - * @readonly - * @enum {string} - */ -export type SkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium'; - -/** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned' + * Defines values for PublicNetworkAccessType. + * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type ResourceIdentityType = 'SystemAssigned'; +export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; /** * Defines values for InstanceViewTypes. @@ -1186,3 +1314,403 @@ export type OperationsListResponse = OperationListResult & { parsedBody: OperationListResult; }; }; + +/** + * Contains response data for the list operation. + */ +export type PrivateLinkScopesListResponse = HybridComputePrivateLinkScopeListResult & { + /** + * 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: HybridComputePrivateLinkScopeListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type PrivateLinkScopesListByResourceGroupResponse = HybridComputePrivateLinkScopeListResult & { + /** + * 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: HybridComputePrivateLinkScopeListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateLinkScopesGetResponse = HybridComputePrivateLinkScope & { + /** + * 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: HybridComputePrivateLinkScope; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateLinkScopesCreateOrUpdateResponse = HybridComputePrivateLinkScope & { + /** + * 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: HybridComputePrivateLinkScope; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type PrivateLinkScopesUpdateTagsResponse = HybridComputePrivateLinkScope & { + /** + * 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: HybridComputePrivateLinkScope; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type PrivateLinkScopesListNextResponse = HybridComputePrivateLinkScopeListResult & { + /** + * 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: HybridComputePrivateLinkScopeListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type PrivateLinkScopesListByResourceGroupNextResponse = HybridComputePrivateLinkScopeListResult & { + /** + * 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: HybridComputePrivateLinkScopeListResult; + }; +}; + +/** + * Contains response data for the listByPrivateLinkScope operation. + */ +export type PrivateLinkResourcesListByPrivateLinkScopeResponse = PrivateLinkResourceListResult & { + /** + * 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: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { + /** + * 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: PrivateLinkResource; + }; +}; + +/** + * Contains response data for the listByPrivateLinkScopeNext operation. + */ +export type PrivateLinkResourcesListByPrivateLinkScopeNextResponse = PrivateLinkResourceListResult & { + /** + * 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: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the listByPrivateLinkScope operation. + */ +export type PrivateEndpointConnectionsListByPrivateLinkScopeResponse = PrivateEndpointConnectionListResult & { + /** + * 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: PrivateEndpointConnectionListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the listByPrivateLinkScopeNext operation. + */ +export type PrivateEndpointConnectionsListByPrivateLinkScopeNextResponse = PrivateEndpointConnectionListResult & { + /** + * 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: PrivateEndpointConnectionListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateLinkScopedResourcesGetResponse = ScopedResource & { + /** + * 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: ScopedResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateLinkScopedResourcesCreateOrUpdateResponse = ScopedResource & { + /** + * 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: ScopedResource; + }; +}; + +/** + * Contains response data for the listByPrivateLinkScope operation. + */ +export type PrivateLinkScopedResourcesListByPrivateLinkScopeResponse = ScopedResourceListResult & { + /** + * 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: ScopedResourceListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type PrivateLinkScopedResourcesBeginCreateOrUpdateResponse = ScopedResource & { + /** + * 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: ScopedResource; + }; +}; + +/** + * Contains response data for the listByPrivateLinkScopeNext operation. + */ +export type PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse = ScopedResourceListResult & { + /** + * 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: ScopedResourceListResult; + }; +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts index 1b1b5f751de2..f8a75cd0a53b 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts @@ -11,6 +11,7 @@ export { BaseResource, CloudError, ErrorDetail, + HybridComputePrivateLinkScope, Identity, LocationData, Machine, @@ -24,14 +25,14 @@ export { MachinePropertiesOsProfile, MachineUpdate, OSProfile, - Plan, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - ResourceModelWithAllowedPropertySet, - ResourceModelWithAllowedPropertySetIdentity, - ResourceModelWithAllowedPropertySetPlan, - ResourceModelWithAllowedPropertySetSku, - Sku, + ScopedResource, TrackedResource, UpdateResource } from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts index 18ae96ee14ce..e76a80d3fc29 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts @@ -9,9 +9,9 @@ export { AzureEntityResource, BaseResource, - ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + HybridComputePrivateLinkScope, Identity, LocationData, Machine, @@ -23,13 +23,13 @@ export { MachineListResult, MachinePropertiesOsProfile, OSProfile, - Plan, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - ResourceModelWithAllowedPropertySet, - ResourceModelWithAllowedPropertySetIdentity, - ResourceModelWithAllowedPropertySetPlan, - ResourceModelWithAllowedPropertySetSku, - Sku, + ScopedResource, TrackedResource } from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts index 42bf7bf9e577..3bfef1e0e676 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts @@ -386,6 +386,13 @@ export const MachineProperties: msRest.CompositeMapper = { name: "String" } }, + vmUuid: { + readOnly: true, + serializedName: "vmUuid", + type: { + name: "String" + } + }, extensions: { serializedName: "extensions", type: { @@ -397,28 +404,46 @@ export const MachineProperties: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const MachineReconnectProperties: msRest.CompositeMapper = { - serializedName: "MachineReconnectProperties", - type: { - name: "Composite", - className: "MachineReconnectProperties", - modelProperties: { - vmId: { - serializedName: "vmId", + }, + osSku: { + readOnly: true, + serializedName: "osSku", type: { name: "String" } }, - clientPublicKey: { - serializedName: "clientPublicKey", + domainName: { + readOnly: true, + serializedName: "domainName", type: { name: "String" } + }, + adFqdn: { + readOnly: true, + serializedName: "adFqdn", + type: { + name: "String" + } + }, + dnsFqdn: { + readOnly: true, + serializedName: "dnsFqdn", + type: { + name: "String" + } + }, + privateLinkScopedResources: { + readOnly: true, + serializedName: "privateLinkScopedResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -447,6 +472,12 @@ export const Identity: msRest.CompositeMapper = { name: "Composite", className: "Identity", modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, principalId: { readOnly: true, serializedName: "principalId", @@ -460,15 +491,6 @@ export const Identity: msRest.CompositeMapper = { type: { name: "String" } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned" - ] - } } } } @@ -647,6 +669,13 @@ export const Machine: msRest.CompositeMapper = { name: "String" } }, + vmUuid: { + readOnly: true, + serializedName: "properties.vmUuid", + type: { + name: "String" + } + }, extensions: { serializedName: "properties.extensions", type: { @@ -659,6 +688,46 @@ export const Machine: msRest.CompositeMapper = { } } }, + osSku: { + readOnly: true, + serializedName: "properties.osSku", + type: { + name: "String" + } + }, + domainName: { + readOnly: true, + serializedName: "properties.domainName", + type: { + name: "String" + } + }, + adFqdn: { + readOnly: true, + serializedName: "properties.adFqdn", + type: { + name: "String" + } + }, + dnsFqdn: { + readOnly: true, + serializedName: "properties.dnsFqdn", + type: { + name: "String" + } + }, + privateLinkScopedResources: { + readOnly: true, + serializedName: "properties.privateLinkScopedResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, identity: { serializedName: "identity", type: { @@ -698,6 +767,12 @@ export const MachineUpdate: msRest.CompositeMapper = { className: "MachineUpdate", modelProperties: { ...UpdateResource.type.modelProperties, + type: { + serializedName: "identity.type", + type: { + name: "String" + } + }, principalId: { readOnly: true, serializedName: "identity.principalId", @@ -712,15 +787,6 @@ export const MachineUpdate: msRest.CompositeMapper = { name: "String" } }, - type: { - serializedName: "identity.type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned" - ] - } - }, locationData: { serializedName: "properties.locationData", type: { @@ -732,22 +798,18 @@ export const MachineUpdate: msRest.CompositeMapper = { } }; -export const MachineReconnect: msRest.CompositeMapper = { - serializedName: "MachineReconnect", +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", type: { name: "Composite", - className: "MachineReconnect", + className: "ErrorResponse", modelProperties: { - vmId: { - serializedName: "properties.vmId", - type: { - name: "String" - } - }, - clientPublicKey: { - serializedName: "properties.clientPublicKey", + error: { + required: true, + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } @@ -1032,110 +1094,115 @@ export const AzureEntityResource: msRest.CompositeMapper = { } }; -export const ResourceModelWithAllowedPropertySetIdentity: msRest.CompositeMapper = { - serializedName: "ResourceModelWithAllowedPropertySet_identity", - type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetIdentity", - modelProperties: { - ...Identity.type.modelProperties - } - } -}; - -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const PrivateLinkScopesResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkScopesResource", type: { name: "Composite", - className: "Sku", + className: "PrivateLinkScopesResource", modelProperties: { - name: { - required: true, - serializedName: "name", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - tier: { - serializedName: "tier", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "Free", - "Basic", - "Standard", - "Premium" - ] + name: "String" } }, - size: { - serializedName: "size", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - family: { - serializedName: "family", + location: { + required: true, + serializedName: "location", type: { name: "String" } }, - capacity: { - serializedName: "capacity", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const ResourceModelWithAllowedPropertySetSku: msRest.CompositeMapper = { - serializedName: "ResourceModelWithAllowedPropertySet_sku", +export const TagsResource: msRest.CompositeMapper = { + serializedName: "TagsResource", type: { name: "Composite", - className: "ResourceModelWithAllowedPropertySetSku", + className: "TagsResource", modelProperties: { - ...Sku.type.modelProperties + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } } } }; -export const Plan: msRest.CompositeMapper = { - serializedName: "Plan", +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", type: { name: "Composite", - className: "Plan", + className: "PrivateEndpointProperty", modelProperties: { - name: { - required: true, - serializedName: "name", + id: { + serializedName: "id", type: { name: "String" } - }, - publisher: { + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { required: true, - serializedName: "publisher", + serializedName: "status", type: { name: "String" } }, - product: { + description: { required: true, - serializedName: "product", - type: { - name: "String" - } - }, - promotionCode: { - serializedName: "promotionCode", + serializedName: "description", type: { name: "String" } }, - version: { - serializedName: "version", + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", type: { name: "String" } @@ -1144,102 +1211,136 @@ export const Plan: msRest.CompositeMapper = { } }; -export const ResourceModelWithAllowedPropertySetPlan: msRest.CompositeMapper = { - serializedName: "ResourceModelWithAllowedPropertySet_plan", - type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetPlan", - modelProperties: { - ...Plan.type.modelProperties - } - } -}; - -export const ResourceModelWithAllowedPropertySet: msRest.CompositeMapper = { - serializedName: "ResourceModelWithAllowedPropertySet", +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", type: { name: "Composite", - className: "ResourceModelWithAllowedPropertySet", + className: "PrivateEndpointConnection", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpointProperty" } }, - name: { - readOnly: true, - serializedName: "name", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - type: { + provisioningState: { readOnly: true, - serializedName: "type", + serializedName: "properties.provisioningState", type: { name: "String" } - }, - location: { - serializedName: "location", + } + } + } +}; + +export const HybridComputePrivateLinkScope: msRest.CompositeMapper = { + serializedName: "HybridComputePrivateLinkScope", + type: { + name: "Composite", + className: "HybridComputePrivateLinkScope", + modelProperties: { + ...PrivateLinkScopesResource.type.modelProperties, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + defaultValue: 'Disabled', type: { name: "String" } }, - managedBy: { - serializedName: "managedBy", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - kind: { - serializedName: "kind", - constraints: { - Pattern: /^[-\w\._,\(\)]+$/ - }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } - }, - etag: { + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupId: { readOnly: true, - serializedName: "etag", + serializedName: "properties.groupId", type: { name: "String" } }, - tags: { - serializedName: "tags", + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } } } }, - identity: { - serializedName: "identity", + requiredZoneNames: { + readOnly: true, + serializedName: "properties.requiredZoneNames", type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetIdentity" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - sku: { - serializedName: "sku", + } + } + } +}; + +export const ScopedResource: msRest.CompositeMapper = { + serializedName: "ScopedResource", + type: { + name: "Composite", + className: "ScopedResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + linkedResourceId: { + serializedName: "properties.linkedResourceId", type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetSku" + name: "String" } }, - plan: { - serializedName: "plan", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Composite", - className: "ResourceModelWithAllowedPropertySetPlan" + name: "String" } } } @@ -1270,11 +1371,65 @@ export const ErrorAdditionalInfo: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorResponseV2: msRest.CompositeMapper = { + serializedName: "ErrorResponseV2", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorResponseV2", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseV2Error" + } + } + } + } +}; + +export const ErrorResponseCommon: msRest.CompositeMapper = { + serializedName: "ErrorResponseCommon", + type: { + name: "Composite", + className: "ErrorResponseCommon", + modelProperties: { + ...ErrorResponseV2.type.modelProperties, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponseCommon" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorResponseV2Error: msRest.CompositeMapper = { + serializedName: "ErrorResponseV2_error", + type: { + name: "Composite", + className: "ErrorResponseV2Error", modelProperties: { code: { readOnly: true, @@ -1305,7 +1460,7 @@ export const ErrorResponse: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" + className: "ErrorResponseV2" } } } @@ -1406,3 +1561,122 @@ export const OperationListResult: msRest.CompositeMapper = { } } }; + +export const HybridComputePrivateLinkScopeListResult: msRest.CompositeMapper = { + serializedName: "HybridComputePrivateLinkScopeListResult", + type: { + name: "Composite", + className: "HybridComputePrivateLinkScopeListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridComputePrivateLinkScope" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ScopedResourceListResult: msRest.CompositeMapper = { + serializedName: "ScopedResourceListResult", + type: { + name: "Composite", + className: "ScopedResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScopedResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts index fb4f1e19fb86..17e27c67ba9f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts @@ -7,7 +7,7 @@ */ export { - ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, OperationListResult, OperationValue diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts index 7491d9aa69a3..08eb8245fb26 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts @@ -55,6 +55,16 @@ export const extensionName: msRest.OperationURLParameter = { } } }; +export const groupName: msRest.OperationURLParameter = { + parameterPath: "groupName", + mapper: { + required: true, + serializedName: "groupName", + type: { + name: "String" + } + } +}; export const name: msRest.OperationURLParameter = { parameterPath: "name", mapper: { @@ -76,6 +86,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -86,6 +106,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const scopeName: msRest.OperationURLParameter = { + parameterPath: "scopeName", + mapper: { + required: true, + serializedName: "scopeName", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateEndpointConnectionsMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..6b5bd2e11f5d --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommon, + ErrorResponseV2, + ErrorResponseV2Error, + HybridComputePrivateLinkScope, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionPropertiesInstanceView, + MachineIdentity, + MachinePropertiesOsProfile, + OSProfile, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ScopedResource, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkResourcesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..30dfa2f7d30f --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommon, + ErrorResponseV2, + ErrorResponseV2Error, + HybridComputePrivateLinkScope, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionPropertiesInstanceView, + MachineIdentity, + MachinePropertiesOsProfile, + OSProfile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ScopedResource, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopedResourcesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopedResourcesMappers.ts new file mode 100644 index 000000000000..c25486ff03b5 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopedResourcesMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommon, + ErrorResponseV2, + ErrorResponseV2Error, + HybridComputePrivateLinkScope, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionPropertiesInstanceView, + MachineIdentity, + MachinePropertiesOsProfile, + OSProfile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ScopedResource, + ScopedResourceListResult, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopesMappers.ts new file mode 100644 index 000000000000..15841ab75f3d --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopesMappers.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommon, + ErrorResponseV2, + ErrorResponseV2Error, + HybridComputePrivateLinkScope, + HybridComputePrivateLinkScopeListResult, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionPropertiesInstanceView, + MachineIdentity, + MachinePropertiesOsProfile, + OSProfile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ScopedResource, + TagsResource, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts index 35660def86a6..f851a9134243 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts @@ -11,3 +11,7 @@ export * from "./machines"; export * from "./machineExtensions"; export * from "./operations"; +export * from "./privateLinkScopes"; +export * from "./privateLinkResources"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkScopedResources"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..395f8d50c59c --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts @@ -0,0 +1,328 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,scopeName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(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 + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkResources.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..0bbbc41c3976 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkResources.ts @@ -0,0 +1,198 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, groupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + groupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(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 + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.groupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopedResources.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopedResources.ts new file mode 100644 index 000000000000..7dc35eb235f8 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopedResources.ts @@ -0,0 +1,331 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/privateLinkScopedResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateLinkScopedResources. */ +export class PrivateLinkScopedResources { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateLinkScopedResources. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a scoped resource in a private link scope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, name: string, parameters: Models.ScopedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,scopeName,name,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, scopeName: string, name: string, parameters: Models.ScopedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + name, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + name, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(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 + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/scopedResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScopedResource + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/scopedResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScopedResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/scopedResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ScopedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ScopedResource + }, + 201: { + bodyMapper: Mappers.ScopedResource + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/scopedResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScopedResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts new file mode 100644 index 000000000000..82d4679c570b --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts @@ -0,0 +1,484 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/privateLinkScopesMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateLinkScopes. */ +export class PrivateLinkScopes { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateLinkScopes. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of all Azure Arc PrivateLinkScopes within a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Azure Arc PrivateLinkScopes within a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Azure Arc PrivateLinkScope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns a Azure Arc PrivateLinkScope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value + * for InstrumentationKey nor AppId in the Put operation. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param parameters Properties that need to be specified to create or update a Azure Arc for + * Servers and Clusters PrivateLinkScope. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param parameters Properties that need to be specified to create or update a Azure Arc for + * Servers and Clusters PrivateLinkScope. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param parameters Properties that need to be specified to create or update a Azure Arc for + * Servers and Clusters PrivateLinkScope. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate + * method. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance. + * @param callback The callback + */ + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance. + * @param options The optional parameters + * @param callback The callback + */ + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + privateLinkScopeTags, + options + }, + updateTagsOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Azure Arc PrivateLinkScope. + * @param resourceGroupName The name of the resource group. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of all Azure Arc PrivateLinkScopes within a subscription. + * @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; + } + + /** + * Gets a list of Azure Arc PrivateLinkScopes within a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(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 + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/privateLinkScopes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.HybridComputePrivateLinkScope, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + 201: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const updateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateLinkScopeTags", + mapper: { + ...Mappers.TagsResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseV2 + } + }, + serializer +};