@azure/arm-managedapplications 2.0.2-alpha.20221026.1 → 2.1.0-alpha.20221128.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +10 -11
  2. package/dist/index.js +164 -46
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/applicationClient.d.ts +2 -0
  7. package/dist-esm/src/applicationClient.d.ts.map +1 -1
  8. package/dist-esm/src/applicationClient.js +68 -26
  9. package/dist-esm/src/applicationClient.js.map +1 -1
  10. package/dist-esm/src/index.d.ts +1 -0
  11. package/dist-esm/src/index.d.ts.map +1 -1
  12. package/dist-esm/src/index.js +1 -0
  13. package/dist-esm/src/index.js.map +1 -1
  14. package/dist-esm/src/models/index.d.ts +19 -8
  15. package/dist-esm/src/models/index.d.ts.map +1 -1
  16. package/dist-esm/src/models/index.js +11 -0
  17. package/dist-esm/src/models/index.js.map +1 -1
  18. package/dist-esm/src/operations/applicationDefinitions.d.ts.map +1 -1
  19. package/dist-esm/src/operations/applicationDefinitions.js +19 -7
  20. package/dist-esm/src/operations/applicationDefinitions.js.map +1 -1
  21. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  22. package/dist-esm/src/operations/applications.js +37 -14
  23. package/dist-esm/src/operations/applications.js.map +1 -1
  24. package/dist-esm/src/pagingHelper.d.ts +13 -0
  25. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  26. package/dist-esm/src/pagingHelper.js +32 -0
  27. package/dist-esm/src/pagingHelper.js.map +1 -0
  28. package/dist-esm/test/sampleTest.js +11 -13
  29. package/dist-esm/test/sampleTest.js.map +1 -1
  30. package/package.json +12 -8
  31. package/review/arm-managedapplications.api.md +24 -32
  32. package/src/applicationClient.ts +81 -28
  33. package/src/index.ts +1 -0
  34. package/src/models/index.ts +19 -8
  35. package/src/operations/applicationDefinitions.ts +26 -9
  36. package/src/operations/applications.ts +46 -17
  37. package/src/pagingHelper.ts +39 -0
  38. package/tsconfig.json +0 -2
  39. package/types/arm-managedapplications.d.ts +30 -8
  40. package/types/tsdoc-metadata.json +1 -1
@@ -5,7 +5,7 @@ import { PollerLike } from '@azure/core-lro';
5
5
  import { PollOperationState } from '@azure/core-lro';
6
6
 
7
7
  /** Information about managed application. */
8
- export declare type Application = GenericResource & {
8
+ export declare interface Application extends GenericResource {
9
9
  /** The plan information. */
10
10
  plan?: Plan;
11
11
  /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */
@@ -26,7 +26,7 @@ export declare type Application = GenericResource & {
26
26
  * NOTE: This property will not be serialized. It can only be populated by the server.
27
27
  */
28
28
  readonly provisioningState?: ProvisioningState;
29
- };
29
+ }
30
30
 
31
31
  /** Managed application artifact. */
32
32
  export declare interface ApplicationArtifact {
@@ -52,6 +52,8 @@ export declare class ApplicationClient extends coreClient.ServiceClient {
52
52
  * @param options The parameter options
53
53
  */
54
54
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
55
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
56
+ private addCustomApiVersionPolicy;
55
57
  /**
56
58
  * Lists all of the available Microsoft.Solutions REST API operations.
57
59
  * @param options The options parameters.
@@ -85,7 +87,7 @@ export declare interface ApplicationClientOptionalParams extends coreClient.Serv
85
87
  }
86
88
 
87
89
  /** Information about managed application definition. */
88
- export declare type ApplicationDefinition = GenericResource & {
90
+ export declare interface ApplicationDefinition extends GenericResource {
89
91
  /** The managed application lock level. */
90
92
  lockLevel: ApplicationLockLevel;
91
93
  /** The managed application definition display name. */
@@ -104,7 +106,7 @@ export declare type ApplicationDefinition = GenericResource & {
104
106
  mainTemplate?: Record<string, unknown>;
105
107
  /** The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. */
106
108
  createUiDefinition?: Record<string, unknown>;
107
- };
109
+ }
108
110
 
109
111
  /** List of managed application definitions. */
110
112
  export declare interface ApplicationDefinitionListResult {
@@ -276,7 +278,7 @@ export declare interface ApplicationListResult {
276
278
  export declare type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None";
277
279
 
278
280
  /** Information about managed application. */
279
- export declare type ApplicationPatchable = GenericResource & {
281
+ export declare interface ApplicationPatchable extends GenericResource {
280
282
  /** The plan information. */
281
283
  plan?: PlanPatchable;
282
284
  /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */
@@ -297,7 +299,7 @@ export declare type ApplicationPatchable = GenericResource & {
297
299
  * NOTE: This property will not be serialized. It can only be populated by the server.
298
300
  */
299
301
  readonly provisioningState?: ProvisioningState;
300
- };
302
+ }
301
303
 
302
304
  /** The managed application provider authorization. */
303
305
  export declare interface ApplicationProviderAuthorization {
@@ -527,14 +529,23 @@ export declare interface ErrorResponse {
527
529
  }
528
530
 
529
531
  /** Resource information. */
530
- export declare type GenericResource = Resource & {
532
+ export declare interface GenericResource extends Resource {
531
533
  /** ID of the resource that manages this resource. */
532
534
  managedBy?: string;
533
535
  /** The SKU of the resource. */
534
536
  sku?: Sku;
535
537
  /** The identity of the resource. */
536
538
  identity?: Identity;
537
- };
539
+ }
540
+
541
+ /**
542
+ * Given a result page from a pageable operation, returns a
543
+ * continuation token that can be used to begin paging from
544
+ * that point later.
545
+ * @param page A result object from calling .byPage() on a paged operation.
546
+ * @returns The continuation token that can be passed into byPage().
547
+ */
548
+ export declare function getContinuationToken(page: unknown): string | undefined;
538
549
 
539
550
  /** Identity for the resource. */
540
551
  export declare interface Identity {
@@ -554,16 +565,27 @@ export declare interface Identity {
554
565
 
555
566
  /** Known values of {@link ProvisioningState} that the service accepts. */
556
567
  export declare enum KnownProvisioningState {
568
+ /** Accepted */
557
569
  Accepted = "Accepted",
570
+ /** Running */
558
571
  Running = "Running",
572
+ /** Ready */
559
573
  Ready = "Ready",
574
+ /** Creating */
560
575
  Creating = "Creating",
576
+ /** Created */
561
577
  Created = "Created",
578
+ /** Deleting */
562
579
  Deleting = "Deleting",
580
+ /** Deleted */
563
581
  Deleted = "Deleted",
582
+ /** Canceled */
564
583
  Canceled = "Canceled",
584
+ /** Failed */
565
585
  Failed = "Failed",
586
+ /** Succeeded */
566
587
  Succeeded = "Succeeded",
588
+ /** Updating */
567
589
  Updating = "Updating"
568
590
  }
569
591
 
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.31.2"
8
+ "packageVersion": "7.33.6"
9
9
  }
10
10
  ]
11
11
  }