@azure/arm-locks 2.0.1-alpha.20220413.1 → 2.1.0-alpha.20220421.1

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 (103) hide show
  1. package/CHANGELOG.md +15 -11
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +265 -8
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/authorizationOperationsListSample.js +43 -0
  11. package/dist-esm/samples-dev/authorizationOperationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js +32 -0
  15. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js.map +1 -0
  16. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js +36 -0
  19. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js.map +1 -0
  20. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js +31 -0
  23. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js.map +1 -0
  24. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js +32 -0
  27. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js.map +1 -0
  28. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js +31 -0
  31. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js.map +1 -0
  32. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js +35 -0
  35. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js.map +1 -0
  36. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js +30 -0
  39. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js.map +1 -0
  40. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js +31 -0
  43. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js.map +1 -0
  44. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js +31 -0
  47. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js.map +1 -0
  48. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js +35 -0
  51. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js.map +1 -0
  52. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js +30 -0
  55. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js.map +1 -0
  56. package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/managementLocksGetByScopeSample.js +31 -0
  59. package/dist-esm/samples-dev/managementLocksGetByScopeSample.js.map +1 -0
  60. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js +44 -0
  63. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js.map +1 -0
  64. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js +48 -0
  67. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js.map +1 -0
  68. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js +43 -0
  71. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js.map +1 -0
  72. package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/managementLocksListByScopeSample.js +44 -0
  75. package/dist-esm/samples-dev/managementLocksListByScopeSample.js.map +1 -0
  76. package/dist-esm/src/managementLockClient.d.ts.map +1 -1
  77. package/dist-esm/src/managementLockClient.js +21 -3
  78. package/dist-esm/src/managementLockClient.js.map +1 -1
  79. package/dist-esm/src/models/index.d.ts +84 -0
  80. package/dist-esm/src/models/index.d.ts.map +1 -1
  81. package/dist-esm/src/models/index.js +8 -0
  82. package/dist-esm/src/models/index.js.map +1 -1
  83. package/dist-esm/src/models/mappers.d.ts +4 -0
  84. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  85. package/dist-esm/src/models/mappers.js +144 -0
  86. package/dist-esm/src/models/mappers.js.map +1 -1
  87. package/dist-esm/src/models/parameters.js +1 -1
  88. package/dist-esm/src/operations/authorizationOperations.js +6 -0
  89. package/dist-esm/src/operations/authorizationOperations.js.map +1 -1
  90. package/dist-esm/src/operations/managementLocks.js +80 -4
  91. package/dist-esm/src/operations/managementLocks.js.map +1 -1
  92. package/package.json +26 -10
  93. package/review/arm-locks.api.md +46 -0
  94. package/rollup.config.js +6 -72
  95. package/src/managementLockClient.ts +28 -3
  96. package/src/models/index.ts +90 -0
  97. package/src/models/mappers.ts +148 -0
  98. package/src/models/parameters.ts +1 -1
  99. package/src/operations/authorizationOperations.ts +6 -0
  100. package/src/operations/managementLocks.ts +80 -4
  101. package/tsconfig.json +23 -5
  102. package/types/arm-locks.d.ts +90 -0
  103. package/types/tsdoc-metadata.json +1 -1
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");function _interopNamespace(t){if(t&&t.__esModule)return t;var a=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),a.default=t,Object.freeze(a)}var coreClient__namespace=_interopNamespace(coreClient);exports.KnownLockLevel=void 0,function(e){e.NotSpecified="NotSpecified",e.CanNotDelete="CanNotDelete",e.ReadOnly="ReadOnly"}(exports.KnownLockLevel||(exports.KnownLockLevel={}));const OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}}}}},ManagementLockObject={type:{name:"Composite",className:"ManagementLockObject",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},level:{serializedName:"properties.level",required:!0,type:{name:"String"}},notes:{serializedName:"properties.notes",type:{name:"String"}},owners:{serializedName:"properties.owners",type:{name:"Sequence",element:{type:{name:"Composite",className:"ManagementLockOwner"}}}}}}},ManagementLockOwner={type:{name:"Composite",className:"ManagementLockOwner",modelProperties:{applicationId:{serializedName:"applicationId",type:{name:"String"}}}}},ManagementLockListResult={type:{name:"Composite",className:"ManagementLockListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ManagementLockObject"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ManagementLockObject:ManagementLockObject,ManagementLockOwner:ManagementLockOwner,ManagementLockListResult:ManagementLockListResult});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2016-09-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:ManagementLockObject},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},lockName={parameterPath:"lockName",mapper:{serializedName:"lockName",required:!0,type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},scope={parameterPath:"scope",mapper:{serializedName:"scope",required:!0,type:{name:"String"}}},resourceProviderNamespace={parameterPath:"resourceProviderNamespace",mapper:{serializedName:"resourceProviderNamespace",required:!0,type:{name:"String"}}},parentResourcePath={parameterPath:"parentResourcePath",mapper:{serializedName:"parentResourcePath",required:!0,type:{name:"String"}},skipEncoding:!0},resourceType={parameterPath:"resourceType",mapper:{serializedName:"resourceType",required:!0,type:{name:"String"}},skipEncoding:!0},resourceName={parameterPath:"resourceName",mapper:{serializedName:"resourceName",required:!0,type:{name:"String"}}},filter={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}};class AuthorizationOperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listPagingPage(i));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.Authorization/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class ManagementLocksImpl{constructor(e){this.client=e}listAtResourceGroupLevel(e,r){const t=this.listAtResourceGroupLevelPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtResourceGroupLevelPagingPage(e,r)}}listAtResourceGroupLevelPagingPage(t,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtResourceGroupLevel(t,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listAtResourceGroupLevelNext(t,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtResourceGroupLevelPagingAll(i,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listAtResourceGroupLevelPagingPage(i,o));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}listAtResourceLevel(e,r,t,a,s,i){const o=this.listAtResourceLevelPagingAll(e,r,t,a,s,i);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtResourceLevelPagingPage(e,r,t,a,s,i)}}listAtResourceLevelPagingPage(t,a,s,i,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtResourceLevel(t,a,s,i,o,n));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listAtResourceLevelNext(t,a,s,i,o,r,n)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtResourceLevelPagingAll(i,o,n,p,c,l){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listAtResourceLevelPagingPage(i,o,n,p,c,l));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}listAtSubscriptionLevel(e){const r=this.listAtSubscriptionLevelPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtSubscriptionLevelPagingPage(e)}}listAtSubscriptionLevelPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtSubscriptionLevel(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listAtSubscriptionLevelNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtSubscriptionLevelPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listAtSubscriptionLevelPagingPage(i));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}listByScope(e,r){const t=this.listByScopePagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByScopePagingPage(e,r)}}listByScopePagingPage(t,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByScope(t,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByScopeNext(t,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByScopePagingAll(i,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listByScopePagingPage(i,o));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}createOrUpdateAtResourceGroupLevel(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,lockName:r,parameters:t,options:a},createOrUpdateAtResourceGroupLevelOperationSpec)}deleteAtResourceGroupLevel(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,lockName:r,options:t},deleteAtResourceGroupLevelOperationSpec)}getAtResourceGroupLevel(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,lockName:r,options:t},getAtResourceGroupLevelOperationSpec)}createOrUpdateByScope(e,r,t,a){return this.client.sendOperationRequest({scope:e,lockName:r,parameters:t,options:a},createOrUpdateByScopeOperationSpec)}deleteByScope(e,r,t){return this.client.sendOperationRequest({scope:e,lockName:r,options:t},deleteByScopeOperationSpec)}getByScope(e,r,t){return this.client.sendOperationRequest({scope:e,lockName:r,options:t},getByScopeOperationSpec)}createOrUpdateAtResourceLevel(e,r,t,a,s,i,o,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,lockName:i,parameters:o,options:n},createOrUpdateAtResourceLevelOperationSpec)}deleteAtResourceLevel(e,r,t,a,s,i,o){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,lockName:i,options:o},deleteAtResourceLevelOperationSpec)}getAtResourceLevel(e,r,t,a,s,i,o){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,lockName:i,options:o},getAtResourceLevelOperationSpec)}createOrUpdateAtSubscriptionLevel(e,r,t){return this.client.sendOperationRequest({lockName:e,parameters:r,options:t},createOrUpdateAtSubscriptionLevelOperationSpec)}deleteAtSubscriptionLevel(e,r){return this.client.sendOperationRequest({lockName:e,options:r},deleteAtSubscriptionLevelOperationSpec)}getAtSubscriptionLevel(e,r){return this.client.sendOperationRequest({lockName:e,options:r},getAtSubscriptionLevelOperationSpec)}_listAtResourceGroupLevel(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listAtResourceGroupLevelOperationSpec)}_listAtResourceLevel(e,r,t,a,s,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,options:i},listAtResourceLevelOperationSpec)}_listAtSubscriptionLevel(e){return this.client.sendOperationRequest({options:e},listAtSubscriptionLevelOperationSpec)}_listByScope(e,r){return this.client.sendOperationRequest({scope:e,options:r},listByScopeOperationSpec)}_listAtResourceGroupLevelNext(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:t},listAtResourceGroupLevelNextOperationSpec)}_listAtResourceLevelNext(e,r,t,a,s,i,o){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,nextLink:i,options:o},listAtResourceLevelNextOperationSpec)}_listAtSubscriptionLevelNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listAtSubscriptionLevelNextOperationSpec)}_listByScopeNext(e,r,t){return this.client.sendOperationRequest({scope:e,nextLink:r,options:t},listByScopeNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),createOrUpdateAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId],serializer:serializer},getAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId],headerParameters:[accept],serializer:serializer},createOrUpdateByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,lockName,scope],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,lockName,scope],serializer:serializer},getByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject}},queryParameters:[apiVersion],urlParameters:[$host,lockName,scope],headerParameters:[accept],serializer:serializer},createOrUpdateAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],serializer:serializer},getAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},createOrUpdateAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,lockName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,lockName,subscriptionId],serializer:serializer},getAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject}},queryParameters:[apiVersion],urlParameters:[$host,lockName,subscriptionId],headerParameters:[accept],serializer:serializer},listAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,resourceGroupName,subscriptionId],headerParameters:[accept],serializer:serializer},listAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,resourceGroupName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},listAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,scope],headerParameters:[accept],serializer:serializer},listAtResourceGroupLevelNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,resourceGroupName,subscriptionId],headerParameters:[accept],serializer:serializer},listAtResourceLevelNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,resourceGroupName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},listAtSubscriptionLevelNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer},listByScopeNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,scope],headerParameters:[accept],serializer:serializer};class ManagementLockClient extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},a="azsdk-js-arm-locks/2.0.0",a=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+a:a,e=(t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),t),{userAgentOptions:{userAgentPrefix:a},baseUri:t.endpoint||"https://management.azure.com"}));super(e),this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2016-09-01",this.authorizationOperations=new AuthorizationOperationsImpl(this),this.managementLocks=new ManagementLocksImpl(this)}}exports.ManagementLockClient=ManagementLockClient;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),tslib=require("tslib");function _interopNamespace(t){if(t&&t.__esModule)return t;var a=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),a.default=t,Object.freeze(a)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);exports.KnownLockLevel=void 0,function(e){e.NotSpecified="NotSpecified",e.CanNotDelete="CanNotDelete",e.ReadOnly="ReadOnly"}(exports.KnownLockLevel||(exports.KnownLockLevel={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={}));const OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},ErrorDetail={type:{name:"Composite",className:"ErrorDetail",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetail"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},ManagementLockObject={type:{name:"Composite",className:"ManagementLockObject",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},level:{serializedName:"properties.level",required:!0,type:{name:"String"}},notes:{serializedName:"properties.notes",type:{name:"String"}},owners:{serializedName:"properties.owners",type:{name:"Sequence",element:{type:{name:"Composite",className:"ManagementLockOwner"}}}}}}},ManagementLockOwner={type:{name:"Composite",className:"ManagementLockOwner",modelProperties:{applicationId:{serializedName:"applicationId",type:{name:"String"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},ManagementLockListResult={type:{name:"Composite",className:"ManagementLockListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ManagementLockObject"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ErrorResponse:ErrorResponse,ErrorDetail:ErrorDetail,ErrorAdditionalInfo:ErrorAdditionalInfo,ManagementLockObject:ManagementLockObject,ManagementLockOwner:ManagementLockOwner,SystemData:SystemData,ManagementLockListResult:ManagementLockListResult});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2020-05-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:ManagementLockObject},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},lockName={parameterPath:"lockName",mapper:{serializedName:"lockName",required:!0,type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},scope={parameterPath:"scope",mapper:{serializedName:"scope",required:!0,type:{name:"String"}}},resourceProviderNamespace={parameterPath:"resourceProviderNamespace",mapper:{serializedName:"resourceProviderNamespace",required:!0,type:{name:"String"}}},parentResourcePath={parameterPath:"parentResourcePath",mapper:{serializedName:"parentResourcePath",required:!0,type:{name:"String"}},skipEncoding:!0},resourceType={parameterPath:"resourceType",mapper:{serializedName:"resourceType",required:!0,type:{name:"String"}},skipEncoding:!0},resourceName={parameterPath:"resourceName",mapper:{serializedName:"resourceName",required:!0,type:{name:"String"}}},filter={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}};class AuthorizationOperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listPagingPage(i));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.Authorization/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class ManagementLocksImpl{constructor(e){this.client=e}listAtResourceGroupLevel(e,r){const t=this.listAtResourceGroupLevelPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtResourceGroupLevelPagingPage(e,r)}}listAtResourceGroupLevelPagingPage(t,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtResourceGroupLevel(t,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listAtResourceGroupLevelNext(t,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtResourceGroupLevelPagingAll(i,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listAtResourceGroupLevelPagingPage(i,o));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}listAtResourceLevel(e,r,t,a,s,i){const o=this.listAtResourceLevelPagingAll(e,r,t,a,s,i);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtResourceLevelPagingPage(e,r,t,a,s,i)}}listAtResourceLevelPagingPage(t,a,s,i,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtResourceLevel(t,a,s,i,o,n));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listAtResourceLevelNext(t,a,s,i,o,r,n)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtResourceLevelPagingAll(i,o,n,p,l,c){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listAtResourceLevelPagingPage(i,o,n,p,l,c));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}listAtSubscriptionLevel(e){const r=this.listAtSubscriptionLevelPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtSubscriptionLevelPagingPage(e)}}listAtSubscriptionLevelPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtSubscriptionLevel(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listAtSubscriptionLevelNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtSubscriptionLevelPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listAtSubscriptionLevelPagingPage(i));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}listByScope(e,r){const t=this.listByScopePagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByScopePagingPage(e,r)}}listByScopePagingPage(t,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByScope(t,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByScopeNext(t,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByScopePagingAll(i,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listByScopePagingPage(i,o));!(t=yield tslib.__await(a.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}createOrUpdateAtResourceGroupLevel(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,lockName:r,parameters:t,options:a},createOrUpdateAtResourceGroupLevelOperationSpec)}deleteAtResourceGroupLevel(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,lockName:r,options:t},deleteAtResourceGroupLevelOperationSpec)}getAtResourceGroupLevel(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,lockName:r,options:t},getAtResourceGroupLevelOperationSpec)}createOrUpdateByScope(e,r,t,a){return this.client.sendOperationRequest({scope:e,lockName:r,parameters:t,options:a},createOrUpdateByScopeOperationSpec)}deleteByScope(e,r,t){return this.client.sendOperationRequest({scope:e,lockName:r,options:t},deleteByScopeOperationSpec)}getByScope(e,r,t){return this.client.sendOperationRequest({scope:e,lockName:r,options:t},getByScopeOperationSpec)}createOrUpdateAtResourceLevel(e,r,t,a,s,i,o,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,lockName:i,parameters:o,options:n},createOrUpdateAtResourceLevelOperationSpec)}deleteAtResourceLevel(e,r,t,a,s,i,o){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,lockName:i,options:o},deleteAtResourceLevelOperationSpec)}getAtResourceLevel(e,r,t,a,s,i,o){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,lockName:i,options:o},getAtResourceLevelOperationSpec)}createOrUpdateAtSubscriptionLevel(e,r,t){return this.client.sendOperationRequest({lockName:e,parameters:r,options:t},createOrUpdateAtSubscriptionLevelOperationSpec)}deleteAtSubscriptionLevel(e,r){return this.client.sendOperationRequest({lockName:e,options:r},deleteAtSubscriptionLevelOperationSpec)}getAtSubscriptionLevel(e,r){return this.client.sendOperationRequest({lockName:e,options:r},getAtSubscriptionLevelOperationSpec)}_listAtResourceGroupLevel(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listAtResourceGroupLevelOperationSpec)}_listAtResourceLevel(e,r,t,a,s,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,options:i},listAtResourceLevelOperationSpec)}_listAtSubscriptionLevel(e){return this.client.sendOperationRequest({options:e},listAtSubscriptionLevelOperationSpec)}_listByScope(e,r){return this.client.sendOperationRequest({scope:e,options:r},listByScopeOperationSpec)}_listAtResourceGroupLevelNext(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:t},listAtResourceGroupLevelNextOperationSpec)}_listAtResourceLevelNext(e,r,t,a,s,i,o){return this.client.sendOperationRequest({resourceGroupName:e,resourceProviderNamespace:r,parentResourcePath:t,resourceType:a,resourceName:s,nextLink:i,options:o},listAtResourceLevelNextOperationSpec)}_listAtSubscriptionLevelNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listAtSubscriptionLevelNextOperationSpec)}_listByScopeNext(e,r,t){return this.client.sendOperationRequest({scope:e,nextLink:r,options:t},listByScopeNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),createOrUpdateAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId],headerParameters:[accept],serializer:serializer},getAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId],headerParameters:[accept],serializer:serializer},createOrUpdateByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,lockName,scope],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,lockName,scope],headerParameters:[accept],serializer:serializer},getByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,lockName,scope],headerParameters:[accept],serializer:serializer},createOrUpdateAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},getAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,lockName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},createOrUpdateAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"PUT",responses:{200:{bodyMapper:ManagementLockObject},201:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,lockName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,lockName,subscriptionId],headerParameters:[accept],serializer:serializer},getAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockObject},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,lockName,subscriptionId],headerParameters:[accept],serializer:serializer},listAtResourceGroupLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,resourceGroupName,subscriptionId],headerParameters:[accept],serializer:serializer},listAtResourceLevelOperationSpec={path:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,resourceGroupName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},listAtSubscriptionLevelOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByScopeOperationSpec={path:"/{scope}/providers/Microsoft.Authorization/locks",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,scope],headerParameters:[accept],serializer:serializer},listAtResourceGroupLevelNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,resourceGroupName,subscriptionId],headerParameters:[accept],serializer:serializer},listAtResourceLevelNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,resourceGroupName,subscriptionId,resourceProviderNamespace,parentResourcePath,resourceType,resourceName],headerParameters:[accept],serializer:serializer},listAtSubscriptionLevelNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer},listByScopeNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ManagementLockListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,scope],headerParameters:[accept],serializer:serializer};class ManagementLockClient extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},a="azsdk-js-arm-locks/2.1.0",a=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+a:a,e=(t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),t),{userAgentOptions:{userAgentPrefix:a},baseUri:null!=(a=null!=(e=t.endpoint)?e:t.baseUri)?a:"https://management.azure.com"}));if(super(e),null!=t&&t.pipeline&&0<t.pipeline.getOrderedPolicies().length){const s=t.pipeline.getOrderedPolicies();s.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({scopes:e.baseUri+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}})))}this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2020-05-01",this.authorizationOperations=new AuthorizationOperationsImpl(this),this.managementLocks=new ManagementLocksImpl(this)}}exports.ManagementLockClient=ManagementLockClient;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/authorizationOperations.ts","../src/operations/managementLocks.ts","../src/managementLockClient.ts"],"names":["KnownLockLevel","OperationListResult","type","name","className","modelProperties","value","serializedName","element","nextLink","Operation","display","OperationDisplay","provider","resource","operation","ManagementLockObject","id","readOnly","level","required","notes","owners","ManagementLockOwner","applicationId","ManagementLockListResult","accept","parameterPath","mapper","defaultValue","isConstant","$host","skipEncoding","apiVersion","contentType","parameters","ManagementLockObjectMapper","resourceGroupName","constraints","Pattern","RegExp","MaxLength","MinLength","lockName","subscriptionId","scope","resourceProviderNamespace","parentResourcePath","resourceType","resourceName","filter","AuthorizationOperationsImpl","constructor","client","this","list","options","iter","listPagingAll","next","Symbol","asyncIterator","byPage","listPagingPage","let","result","__await","_list","continuationToken","_listNext","_c","_b","__asyncValues","done","page","__asyncDelegator","sendOperationRequest","listOperationSpec","listNextOperationSpec","serializer","coreClient","createSerializer","Mappers","path","httpMethod","responses","200","bodyMapper","Mappers.OperationListResult","queryParameters","Parameters.apiVersion","urlParameters","Parameters.$host","headerParameters","Parameters.accept","Parameters.nextLink","ManagementLocksImpl","listAtResourceGroupLevel","listAtResourceGroupLevelPagingAll","listAtResourceGroupLevelPagingPage","_listAtResourceGroupLevel","_listAtResourceGroupLevelNext","listAtResourceLevel","listAtResourceLevelPagingAll","listAtResourceLevelPagingPage","_listAtResourceLevel","tslib","_listAtResourceLevelNext","listAtSubscriptionLevel","listAtSubscriptionLevelPagingAll","listAtSubscriptionLevelPagingPage","_listAtSubscriptionLevel","_listAtSubscriptionLevelNext","listByScope","listByScopePagingAll","listByScopePagingPage","_listByScope","_listByScopeNext","createOrUpdateAtResourceGroupLevel","createOrUpdateAtResourceGroupLevelOperationSpec","deleteAtResourceGroupLevel","deleteAtResourceGroupLevelOperationSpec","getAtResourceGroupLevel","getAtResourceGroupLevelOperationSpec","createOrUpdateByScope","createOrUpdateByScopeOperationSpec","deleteByScope","deleteByScopeOperationSpec","getByScope","getByScopeOperationSpec","createOrUpdateAtResourceLevel","createOrUpdateAtResourceLevelOperationSpec","deleteAtResourceLevel","deleteAtResourceLevelOperationSpec","getAtResourceLevel","getAtResourceLevelOperationSpec","createOrUpdateAtSubscriptionLevel","createOrUpdateAtSubscriptionLevelOperationSpec","deleteAtSubscriptionLevel","deleteAtSubscriptionLevelOperationSpec","getAtSubscriptionLevel","getAtSubscriptionLevelOperationSpec","listAtResourceGroupLevelOperationSpec","listAtResourceLevelOperationSpec","listAtSubscriptionLevelOperationSpec","listByScopeOperationSpec","listAtResourceGroupLevelNextOperationSpec","listAtResourceLevelNextOperationSpec","listAtSubscriptionLevelNextOperationSpec","listByScopeNextOperationSpec","Mappers.ManagementLockObject","201","requestBody","Parameters.parameters","Parameters.resourceGroupName","Parameters.lockName","Parameters.subscriptionId","Parameters.contentType","mediaType","204","Parameters.scope","Parameters.resourceProviderNamespace","Parameters.parentResourcePath","Parameters.resourceType","Parameters.resourceName","Mappers.ManagementLockListResult","Parameters.filter","ManagementLockClient","ServiceClient","credentials","undefined","Error","defaults","requestContentType","credential","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","credentialScopes","Object","assign","baseUri","endpoint","super","authorizationOperations","managementLocks"],"mappings":"6eA4EYA,QAAAA,oBAAAA,EAAZ,SAAYA,GACVA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,SAAA,WAHF,CAAYA,QAAAA,iBAAAA,QAAAA,eAIX,KCtEM,MAAMC,oBAAkD,CAC7DC,KAAM,CACJC,KAAM,YACNC,UAAW,sBACXC,gBAAiB,CACfC,MAAO,CACLC,eAAgB,QAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,gBAKnBK,SAAU,CACRF,eAAgB,WAChBL,KAAM,CACJC,KAAM,cAOHO,UAAwC,CACnDR,KAAM,CACJC,KAAM,YACNC,UAAW,YACXC,gBAAiB,CACfF,KAAM,CACJI,eAAgB,OAChBL,KAAM,CACJC,KAAM,WAGVQ,QAAS,CACPJ,eAAgB,UAChBL,KAAM,CACJC,KAAM,YACNC,UAAW,wBAORQ,iBAA+C,CAC1DV,KAAM,CACJC,KAAM,YACNC,UAAW,mBACXC,gBAAiB,CACfQ,SAAU,CACRN,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVW,SAAU,CACRP,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVY,UAAW,CACTR,eAAgB,YAChBL,KAAM,CACJC,KAAM,cAOHa,qBAAmD,CAC9Dd,KAAM,CACJC,KAAM,YACNC,UAAW,uBACXC,gBAAiB,CACfY,GAAI,CACFV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9H,EACF,MAAM,IAAI+H,MAAM,mCAOlB,IAAMC,EAA+C,CACnDC,mBAAoB,kCACpBC,WAAYL,GAGRM,EAAiB,2BACjBC,GARJxH,EADGA,GACO,IASFyH,kBAAoBzH,EAAQyH,iBAAiBD,gBAC9CxH,EAAQyH,iBAAiBD,gBAA5B,IAA+CD,EAC5CA,EAKHG,GAHD1H,EAAQ2H,mBACX3H,EAAQ2H,iBAAmB,CAAC,0CAGzBC,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,GAAAT,GACApH,GAAO,CACVyH,iBAAkB,CAChBD,gBAAAA,GAEFM,QAAS9H,EAAQ+H,UAAY,kCAE/BC,MAAMN,GAEN5H,KAAKV,eAAiBA,EAGtBU,KAAKvB,MAAQyB,EAAQzB,OAAS,+BAC9BuB,KAAKrB,WAAauB,EAAQvB,YAAc,aACxCqB,KAAKmI,wBAA0B,IAAItI,4BAA4BG,MAC/DA,KAAKoI,gBAAkB,IAAI1F,oBAAoB1C,O"}
1
+ {"version":3,"sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/authorizationOperations.ts","../src/operations/managementLocks.ts","../src/managementLockClient.ts"],"names":["KnownLockLevel","KnownCreatedByType","OperationListResult","type","name","className","modelProperties","value","serializedName","element","nextLink","Operation","display","OperationDisplay","provider","resource","operation","ErrorResponse","error","ErrorDetail","code","readOnly","message","target","details","additionalInfo","ErrorAdditionalInfo","info","ManagementLockObject","id","systemData","level","required","notes","owners","ManagementLockOwner","applicationId","SystemData","createdBy","createdByType","createdAt","lastModifiedBy","lastModifiedByType","lastModifiedAt","ManagementLockListResult","accept","parameterPath","mapper","defaultValue","isConstant","$host","skipEncoding","apiVersion","contentType","parameters","ManagementLockObjectMapper","resourceGroupName","constraints","Pattern","RegExp","MaxLength","MinLength","lockName","subscriptionId","scope","resourceProviderNamespace","parentResourcePath","resourceType","resourceName","filter","AuthorizationOperationsImpl","constructor","client","this","list","options","iter","listPagingAll","next","Symbol","asyncIterator","byPage","listPagingPage","let","result","__await","_list","continuationToken","_listNext","_c","_b","__asyncValues","done","page","__asyncDelegator","sendOperationRequest","listOperationSpec","listNextOperationSpec","serializer","coreClient","createSerializer","Mappers","path","httpMethod","responses","200","bodyMapper","Mappers.OperationListResult","default","Mappers.ErrorResponse","queryParameters","Parameters.apiVersion","urlParameters","Parameters.$host","headerParameters","Parameters.accept","Parameters.nextLink","ManagementLocksImpl","listAtResourceGroupLevel","listAtResourceGroupLevelPagingAll","listAtResourceGroupLevelPagingPage","_listAtResourceGroupLevel","_listAtResourceGroupLevelNext","listAtResourceLevel","listAtResourceLevelPagingAll","listAtResourceLevelPagingPage","_listAtResourceLevel","tslib","_listAtResourceLevelNext","listAtSubscriptionLevel","listAtSubscriptionLevelPagingAll","listAtSubscriptionLevelPagingPage","_listAtSubscriptionLevel","_listAtSubscriptionLevelNext","listByScope","listByScopePagingAll","listByScopePagingPage","_listByScope","_listByScopeNext","createOrUpdateAtResourceGroupLevel","createOrUpdateAtResourceGroupLevelOperationSpec","deleteAtResourceGroupLevel","deleteAtResourceGroupLevelOperationSpec","getAtResourceGroupLevel","getAtResourceGroupLevelOperationSpec","createOrUpdateByScope","createOrUpdateByScopeOperationSpec","deleteByScope","deleteByScopeOperationSpec","getByScope","getByScopeOperationSpec","createOrUpdateAtResourceLevel","createOrUpdateAtResourceLevelOperationSpec","deleteAtResourceLevel","deleteAtResourceLevelOperationSpec","getAtResourceLevel","getAtResourceLevelOperationSpec","createOrUpdateAtSubscriptionLevel","createOrUpdateAtSubscriptionLevelOperationSpec","deleteAtSubscriptionLevel","deleteAtSubscriptionLevelOperationSpec","getAtSubscriptionLevel","getAtSubscriptionLevelOperationSpec","listAtResourceGroupLevelOperationSpec","listAtResourceLevelOperationSpec","listAtSubscriptionLevelOperationSpec","listByScopeOperationSpec","listAtResourceGroupLevelNextOperationSpec","listAtResourceLevelNextOperationSpec","listAtSubscriptionLevelNextOperationSpec","listByScopeNextOperationSpec","Mappers.ManagementLockObject","201","requestBody","Parameters.parameters","Parameters.resourceGroupName","Parameters.lockName","Parameters.subscriptionId","Parameters.contentType","mediaType","204","Parameters.scope","Parameters.resourceProviderNamespace","Parameters.parentResourcePath","Parameters.resourceType","Parameters.resourceName","Mappers.ManagementLockListResult","Parameters.filter","ManagementLockClient","ServiceClient","credentials","undefined","Error","defaults","requestContentType","credential","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","credentialScopes","Object","assign","baseUri","_a","endpoint","super","pipeline","getOrderedPolicies","length","pipelinePolicies","some","pipelinePolicy","coreRestPipeline","bearerTokenAuthenticationPolicyName","removePolicy","addPolicy","bearerTokenAuthenticationPolicy","scopes","challengeCallbacks","authorizeRequestOnChallenge","authorizeRequestOnClaimChallenge","authorizationOperations","managementLocks"],"mappings":"mmBAkJYA,QAAAA,oBAAAA,EAAZ,SAAYA,GACVA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,SAAA,WAHF,CAAYA,QAAAA,iBAAAA,QAAAA,eAIX,KAcWC,QAAAA,wBAAAA,EAAZ,SAAYA,GACVA,EAAA,KAAA,OACAA,EAAA,YAAA,cACAA,EAAA,gBAAA,kBACAA,EAAA,IAAA,MAJF,CAAYA,QAAAA,qBAAAA,QAAAA,mBAKX,KC/JM,MAAMC,oBAAkD,CAC7DC,KAAM,CACJC,KAAM,YACNC,UAAW,sBACXC,gBAAiB,CACfC,MAAO,CACLC,eAAgB,QAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,gBAKnBK,SAAU,CACRF,eAAgB,WAChBL,KAAM,CACJC,KAAM,cAOHO,UAAwC,CACnDR,KAAM,CACJC,KAAM,YACNC,UAAW,YACXC,gBAAiB,CACfF,KAAM,CACJI,eAAgB,OAChBL,KAAM,CACJC,KAAM,WAGVQ,QAAS,CACPJ,eAAgB,UAChBL,KAAM,CACJC,KAAM,YACNC,UAAW,wBAORQ,iBAA+C,CAC1DV,KAAM,CACJC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J1H,EADGA,GACO,IASF2H,kBAAoB3H,EAAQ2H,iBAAiBD,gBAC9C1H,EAAQ2H,iBAAiBD,gBAA5B,IAA+CD,EAC5CA,EAKHG,GAHD5H,EAAQ6H,mBACX7H,EAAQ6H,iBAAmB,CAAC,0CAGzBC,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,GAAAT,GACAtH,GAAO,CACV2H,iBAAkB,CAChBD,gBAAAA,GAEFM,QACE,OAAAjH,EAAA,OAAAkH,EAAAjI,EAAQkI,UAAYD,EAAAjI,EAAQgI,SAAWjH,EAAA,kCAI3C,GAFAoH,MAAMP,GAEF5H,MAAAA,GAAAA,EAASoI,UAA2D,EAA/CpI,EAAQoI,SAASC,qBAAqBC,OAAY,CACzE,MAAMC,EAAsDvI,EAAQoI,SAASC,qBAChCE,EAAiBC,KAC5D,GACEC,EAAehN,OACfiN,4BAAiBC,uCAGnB7I,KAAKsI,SAASQ,aAAa,CACzBnN,KAAMiN,4BAAiBC,sCAEzB7I,KAAKsI,SAASS,UACZH,4BAAiBI,gCAAgC,CAC/CC,OAAWnB,EAAoBI,QAAvB,YACRgB,mBAAoB,CAClBC,4BACEzH,sBAAW0H,sCAOvBpJ,KAAKV,eAAiBA,EAGtBU,KAAKvB,MAAQyB,EAAQzB,OAAS,+BAC9BuB,KAAKrB,WAAauB,EAAQvB,YAAc,aACxCqB,KAAKqJ,wBAA0B,IAAIxJ,4BAA4BG,MAC/DA,KAAKsJ,gBAAkB,IAAI1G,oBAAoB5C,O"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=authorizationOperationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorizationOperationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/authorizationOperationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all of the available Microsoft.Authorization REST API operations.
15
+ *
16
+ * @summary Lists all of the available Microsoft.Authorization REST API operations.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json
18
+ */
19
+ function listProviderOperations() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new ManagementLockClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.authorizationOperations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listProviderOperations().catch(console.error);
43
+ //# sourceMappingURL=authorizationOperationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorizationOperationsListSample.js","sourceRoot":"","sources":["../../samples-dev/authorizationOperationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAjD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
15
+ *
16
+ * @summary When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json
18
+ */
19
+ function createManagementLockAtResourceGroupLevel() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subscriptionId";
22
+ const resourceGroupName = "resourcegroupname";
23
+ const lockName = "testlock";
24
+ const parameters = { level: "ReadOnly" };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ManagementLockClient(credential, subscriptionId);
27
+ const result = yield client.managementLocks.createOrUpdateAtResourceGroupLevel(resourceGroupName, lockName, parameters);
28
+ console.log(result);
29
+ });
30
+ }
31
+ createManagementLockAtResourceGroupLevel().catch(console.error);
32
+ //# sourceMappingURL=managementLocksCreateOrUpdateAtResourceGroupLevelSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateAtResourceGroupLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAwB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAyB,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kCAAkC,CAC5E,iBAAiB,EACjB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksCreateOrUpdateAtResourceLevelSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateAtResourceLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
15
+ *
16
+ * @summary When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json
18
+ */
19
+ function createManagementLockAtResourceLevel() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subscriptionId";
22
+ const resourceGroupName = "resourcegroupname";
23
+ const resourceProviderNamespace = "Microsoft.Storage";
24
+ const parentResourcePath = "parentResourcePath";
25
+ const resourceType = "storageAccounts";
26
+ const resourceName = "teststorageaccount";
27
+ const lockName = "testlock";
28
+ const parameters = { level: "ReadOnly" };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new ManagementLockClient(credential, subscriptionId);
31
+ const result = yield client.managementLocks.createOrUpdateAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, parameters);
32
+ console.log(result);
33
+ });
34
+ }
35
+ createManagementLockAtResourceLevel().catch(console.error);
36
+ //# sourceMappingURL=managementLocksCreateOrUpdateAtResourceLevelSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateAtResourceLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAwB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACvC,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAyB,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,6BAA6B,CACvE,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
15
+ *
16
+ * @summary When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json
18
+ */
19
+ function createManagementLockAtSubscriptionLevel() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subscriptionId";
22
+ const lockName = "testlock";
23
+ const parameters = { level: "ReadOnly" };
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ManagementLockClient(credential, subscriptionId);
26
+ const result = yield client.managementLocks.createOrUpdateAtSubscriptionLevel(lockName, parameters);
27
+ console.log(result);
28
+ });
29
+ }
30
+ createManagementLockAtSubscriptionLevel().catch(console.error);
31
+ //# sourceMappingURL=managementLocksCreateOrUpdateAtSubscriptionLevelSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateAtSubscriptionLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAwB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAyB,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,iCAAiC,CAC3E,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksCreateOrUpdateByScopeSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateByScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateByScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create or update a management lock by scope.
15
+ *
16
+ * @summary Create or update a management lock by scope.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json
18
+ */
19
+ function createManagementLockAtScope() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const scope = "subscriptions/subscriptionId";
23
+ const lockName = "testlock";
24
+ const parameters = { level: "ReadOnly" };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ManagementLockClient(credential, subscriptionId);
27
+ const result = yield client.managementLocks.createOrUpdateByScope(scope, lockName, parameters);
28
+ console.log(result);
29
+ });
30
+ }
31
+ createManagementLockAtScope().catch(console.error);
32
+ //# sourceMappingURL=managementLocksCreateOrUpdateByScopeSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksCreateOrUpdateByScopeSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksCreateOrUpdateByScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAwB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,KAAK,GAAG,8BAA8B,CAAC;QAC7C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAyB,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,qBAAqB,CAC/D,KAAK,EACL,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksDeleteAtResourceGroupLevelSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksDeleteAtResourceGroupLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceGroupLevelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
15
+ *
16
+ * @summary To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json
18
+ */
19
+ function deleteManagementLockAtResourceGroupLevel() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subscriptionId";
22
+ const resourceGroupName = "resourcegroupname";
23
+ const lockName = "testlock";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ManagementLockClient(credential, subscriptionId);
26
+ const result = yield client.managementLocks.deleteAtResourceGroupLevel(resourceGroupName, lockName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ deleteManagementLockAtResourceGroupLevel().catch(console.error);
31
+ //# sourceMappingURL=managementLocksDeleteAtResourceGroupLevelSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksDeleteAtResourceGroupLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceGroupLevelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,0BAA0B,CACpE,iBAAiB,EACjB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksDeleteAtResourceLevelSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksDeleteAtResourceLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceLevelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
15
+ *
16
+ * @summary To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json
18
+ */
19
+ function deleteManagementLockAtResourceLevel() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subscriptionId";
22
+ const resourceGroupName = "resourcegroupname";
23
+ const resourceProviderNamespace = "Microsoft.Storage";
24
+ const parentResourcePath = "parentResourcePath";
25
+ const resourceType = "storageAccounts";
26
+ const resourceName = "teststorageaccount";
27
+ const lockName = "testlock";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new ManagementLockClient(credential, subscriptionId);
30
+ const result = yield client.managementLocks.deleteAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ deleteManagementLockAtResourceLevel().catch(console.error);
35
+ //# sourceMappingURL=managementLocksDeleteAtResourceLevelSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksDeleteAtResourceLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceLevelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACvC,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,qBAAqB,CAC/D,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=managementLocksDeleteAtSubscriptionLevelSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementLocksDeleteAtSubscriptionLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtSubscriptionLevelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ManagementLockClient } from "@azure/arm-locks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
15
+ *
16
+ * @summary To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
17
+ * x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json
18
+ */
19
+ function deleteManagementLockAtSubscriptionLevel() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subscriptionId";
22
+ const lockName = "testlock";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new ManagementLockClient(credential, subscriptionId);
25
+ const result = yield client.managementLocks.deleteAtSubscriptionLevel(lockName);
26
+ console.log(result);
27
+ });
28
+ }
29
+ deleteManagementLockAtSubscriptionLevel().catch(console.error);
30
+ //# sourceMappingURL=managementLocksDeleteAtSubscriptionLevelSample.js.map