diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariable.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariable.json new file mode 100644 index 000000000000..36e711be92bd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariable.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview", + "parameters": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + } + }, + "200": { + "headers": {}, + "body": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-07-01T02:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableAtManagementGroup.json new file mode 100644 index 000000000000..170703a71166 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableAtManagementGroup.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview", + "parameters": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + } + }, + "200": { + "headers": {}, + "body": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-07-01T02:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableValue.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableValue.json new file mode 100644 index 000000000000..cf3345ea04d0 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableValue.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "variableValueName": "TestValue", + "api-version": "2022-08-01-preview", + "parameters": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + } + }, + "200": { + "headers": {}, + "body": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-07-01T02:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableValueAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableValueAtManagementGroup.json new file mode 100644 index 000000000000..d86509027471 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/createOrUpdateVariableValueAtManagementGroup.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "variableValueName": "TestValue", + "api-version": "2022-08-01-preview", + "parameters": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + } + }, + "200": { + "headers": {}, + "body": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-07-01T02:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariable.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariable.json new file mode 100644 index 000000000000..70fab14f3f88 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariable.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableAtManagementGroup.json new file mode 100644 index 000000000000..23bee3bdf3db --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableAtManagementGroup.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableValue.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableValue.json new file mode 100644 index 000000000000..7d4edc7e1d0f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableValue.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "variableValueName": "TestValue", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableValueAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableValueAtManagementGroup.json new file mode 100644 index 000000000000..7c71d32fb468 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/deleteVariableValueAtManagementGroup.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "variableValueName": "TestValue", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariable.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariable.json new file mode 100644 index 000000000000..a34ebead17a8 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariable.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableAtManagementGroup.json new file mode 100644 index 000000000000..6d0ddffc91af --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableAtManagementGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableValue.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableValue.json new file mode 100644 index 000000000000..491cb5023fa7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableValue.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "variableValueName": "TestValue", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableValueAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableValueAtManagementGroup.json new file mode 100644 index 000000000000..cf31bf2655e2 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/getVariableValueAtManagementGroup.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "variableValueName": "TestValue", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariableValuesForManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariableValuesForManagementGroup.json new file mode 100644 index 000000000000..49602fb83e3f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariableValuesForManagementGroup.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + }, + { + "properties": { + "values": [ + { + "columnName": "NullColumnName", + "columnValue": null + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-07-01T02:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable/values/NullableTestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "NullableTestValue" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariableValuesForSubscription.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariableValuesForSubscription.json new file mode 100644 index 000000000000..b16e994ea4b9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariableValuesForSubscription.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "variableName": "DemoTestVariable", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "values": [ + { + "columnName": "StringColumn", + "columnValue": "SampleValue" + }, + { + "columnName": "IntegerColumn", + "columnValue": 10 + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable/values/TestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "TestValue" + }, + { + "properties": { + "values": [ + { + "columnName": "NullColumnName", + "columnValue": null + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable/values/NullableTestValue", + "type": "Microsoft.Authorization/variables/values", + "name": "NullableTestValue" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariablesForManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariablesForManagementGroup.json new file mode 100644 index 000000000000..561453251b48 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariablesForManagementGroup.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "managementGroupId": "DevOrg", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + }, + { + "properties": { + "columns": [ + { + "columnName": "NetworkResourceName" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-07-01T02:01:01.1075056Z" + }, + "id": "/providers/Microsoft.Management/managementGroups/DevOrg/providers/Microsoft.Authorization/variables/NetworkingVariable", + "type": "Microsoft.Authorization/variables", + "name": "NetworkingVariable" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariablesForSubscription.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariablesForSubscription.json new file mode 100644 index 000000000000..142301517cb6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/listVariablesForSubscription.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "api-version": "2022-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "columns": [ + { + "columnName": "TestColumn" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/DemoTestVariable", + "type": "Microsoft.Authorization/variables", + "name": "DemoTestVariable" + }, + { + "properties": { + "columns": [ + { + "columnName": "NetworkResourceName" + } + ] + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2022-07-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-08-01T01:01:01.1075056Z" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/variables/NetworkingVariable", + "type": "Microsoft.Authorization/variables", + "name": "NetworkingVariable" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/policyVariableValues.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/policyVariableValues.json new file mode 100644 index 000000000000..0bafc2c4081a --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/policyVariableValues.json @@ -0,0 +1,548 @@ +{ + "swagger": "2.0", + "info": { + "title": "PolicyClient", + "version": "2022-08-01-preview", + "description": "To query within your variable you can create variable values. These values can hold customer data to be shared between policy definitions." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}": { + "delete": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_Delete", + "summary": "Deletes a variable value.", + "description": "This operation deletes a variable value, given its name, the subscription it was created in, and the variable it belongs to. The scope of a variable value is the part of its ID preceding '/providers/Microsoft.Authorization/variables/{variableName}'.", + "x-ms-examples": { + "Delete a variable value": { + "$ref": "./examples/deleteVariableValue.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/VariableValueNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content - the variable doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_CreateOrUpdate", + "summary": "Creates or updates a variable value.", + "description": " This operation creates or updates a variable value with the given subscription and name for a given variable. Variable values are scoped to the variable for which they are created for.", + "x-ms-examples": { + "Create or update a variable value": { + "$ref": "./examples/createOrUpdateVariableValue.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/VariableValueNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VariableValue" + }, + "description": "Parameters for the variable value." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the updated variable value.", + "schema": { + "$ref": "#/definitions/VariableValue" + } + }, + "201": { + "description": "Created - Returns information about the new variable value.", + "schema": { + "$ref": "#/definitions/VariableValue" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_Get", + "summary": "Retrieves a variable value.", + "description": "This operation retrieves a single variable value; given its name, subscription it was created at and the variable it's created for.", + "x-ms-examples": { + "Retrieve a variable value": { + "$ref": "./examples/getVariableValue.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/VariableValueNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the variable value.", + "schema": { + "$ref": "#/definitions/VariableValue" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}/values": { + "get": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_List", + "summary": "List variable values for a variable.", + "description": "This operation retrieves the list of all variable values associated with the given variable that is at a subscription level.", + "x-ms-examples": { + "List variable values that apply to a variable at subscription level": { + "$ref": "./examples/listVariableValuesForSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of variable values.", + "schema": { + "$ref": "#/definitions/VariableValueListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}/values": { + "get": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_ListForManagementGroup", + "summary": "List variable values at management group level.", + "description": "This operation retrieves the list of all variable values applicable the variable indicated at the management group scope.", + "x-ms-examples": { + "List variable values at a management group scope": { + "$ref": "./examples/listVariableValuesForManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of variable values.", + "schema": { + "$ref": "#/definitions/VariableValueListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}": { + "delete": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_DeleteAtManagementGroup", + "summary": "Deletes a variable value.", + "description": "This operation deletes a variable value, given its name, the management group it was created in, and the variable it belongs to. The scope of a variable value is the part of its ID preceding '/providers/Microsoft.Authorization/variables/{variableName}'.", + "x-ms-examples": { + "Delete a variable value at management group": { + "$ref": "./examples/deleteVariableValueAtManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/VariableValueNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content - the variable doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_CreateOrUpdateAtManagementGroup", + "summary": "Creates or updates a variable value.", + "description": " This operation creates or updates a variable value with the given management group and name for a given variable. Variable values are scoped to the variable for which they are created for.", + "x-ms-examples": { + "Create or update a variable value at management group": { + "$ref": "./examples/createOrUpdateVariableValueAtManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/VariableValueNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VariableValue" + }, + "description": "Parameters for the variable value." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the updated variable value.", + "schema": { + "$ref": "#/definitions/VariableValue" + } + }, + "201": { + "description": "Created - Returns information about the new variable value.", + "schema": { + "$ref": "#/definitions/VariableValue" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "VariableValues" + ], + "operationId": "VariableValues_GetAtManagementGroup", + "summary": "Retrieves a variable value.", + "description": "This operation retrieves a single variable value; given its name, management group it was created at and the variable it's created for.", + "x-ms-examples": { + "Retrieve a variable value at management group": { + "$ref": "./examples/getVariableValueAtManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/VariableValueNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the variable value.", + "schema": { + "$ref": "#/definitions/VariableValue" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "type": "object", + "description": "An error response from a policy operation." + }, + "PolicyVariableValueColumnValue": { + "required": [ + "columnName", + "columnValue" + ], + "properties": { + "columnName": { + "type": "string", + "description": "Column name for the variable value" + }, + "columnValue": { + "type": "object", + "description": "Column value for the variable value; this can be an integer, double, boolean, null or a string." + } + }, + "type": "object", + "description": "The name value tuple for this variable value column." + }, + "PolicyVariableValueProperties": { + "required": [ + "values" + ], + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyVariableValueColumnValue" + }, + "x-ms-identifiers": [ + "columnName" + ], + "description": "Variable value column value array." + } + }, + "type": "object", + "description": "The variable value properties." + }, + "VariableValue": { + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicyVariableValueProperties", + "description": "Properties for the variable value." + }, + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the variable." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the variable." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource (Microsoft.Authorization/variables/values)." + } + }, + "type": "object", + "description": "The variable value.", + "x-ms-azure-resource": true + }, + "VariableValueListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableValue" + }, + "description": "An array of variable values." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "type": "object", + "description": "List of variable values." + } + }, + "parameters": { + "VariableNameParameter": { + "name": "variableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the variable to operate on.", + "x-ms-parameter-location": "method" + }, + "VariableValueNameParameter": { + "name": "variableValueName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the variable value to operate on.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ManagementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the management group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-parameter-location": "client" + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/policyVariables.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/policyVariables.json new file mode 100644 index 000000000000..881a1138bf82 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/policyVariables.json @@ -0,0 +1,511 @@ +{ + "swagger": "2.0", + "info": { + "title": "PolicyClient", + "version": "2022-08-01-preview", + "description": "To use in policy authoring you can create a variable at a scope. Variables created at a scope can be shared between multiple policy definitions." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}": { + "delete": { + "tags": [ + "Variables" + ], + "operationId": "Variables_Delete", + "summary": "Deletes a variable.", + "description": "This operation deletes a variable, given its name and the subscription it was created in. The scope of a variable is the part of its ID preceding '/providers/Microsoft.Authorization/variables/{variableName}'.", + "x-ms-examples": { + "Delete a variable": { + "$ref": "./examples/deleteVariable.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content - the variable doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Variables" + ], + "operationId": "Variables_CreateOrUpdate", + "summary": "Creates or updates a variable.", + "description": " This operation creates or updates a variable with the given subscription and name. Policy variables can only be used by a policy definition at the scope they are created or below.", + "x-ms-examples": { + "Create or update a variable": { + "$ref": "./examples/createOrUpdateVariable.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Variable" + }, + "description": "Parameters for the variable." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the updated variable.", + "schema": { + "$ref": "#/definitions/Variable" + } + }, + "201": { + "description": "Created - Returns information about the new variable.", + "schema": { + "$ref": "#/definitions/Variable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Variables" + ], + "operationId": "Variables_Get", + "summary": "Retrieves a variable.", + "description": "This operation retrieves a single variable, given its name and the subscription it was created at.", + "x-ms-examples": { + "Retrieve a variable": { + "$ref": "./examples/getVariable.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the variable.", + "schema": { + "$ref": "#/definitions/Variable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}": { + "delete": { + "tags": [ + "Variables" + ], + "operationId": "Variables_DeleteAtManagementGroup", + "summary": "Deletes a variable.", + "description": "This operation deletes a variable, given its name and the management group it was created in. The scope of a variable is the part of its ID preceding '/providers/Microsoft.Authorization/variables/{variableName}'.", + "x-ms-examples": { + "Delete a variable at management group": { + "$ref": "./examples/deleteVariableAtManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content - the variable doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Variables" + ], + "operationId": "Variables_CreateOrUpdateAtManagementGroup", + "summary": "Creates or updates a variable.", + "description": " This operation creates or updates a variable with the given management group and name. Policy variables can only be used by a policy definition at the scope they are created or below.", + "x-ms-examples": { + "Create or update a variable at management group": { + "$ref": "./examples/createOrUpdateVariableAtManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Variable" + }, + "description": "Parameters for the variable." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the updated variable.", + "schema": { + "$ref": "#/definitions/Variable" + } + }, + "201": { + "description": "Created - Returns information about the new variable.", + "schema": { + "$ref": "#/definitions/Variable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Variables" + ], + "operationId": "Variables_GetAtManagementGroup", + "summary": "Retrieves a variable.", + "description": "This operation retrieves a single variable, given its name and the management group it was created at.", + "x-ms-examples": { + "Retrieve a variable at management group": { + "$ref": "./examples/getVariableAtManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/VariableNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the variable.", + "schema": { + "$ref": "#/definitions/Variable" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables": { + "get": { + "tags": [ + "Variables" + ], + "operationId": "Variables_List", + "summary": "Retrieves all variables that are at this subscription level.", + "description": "This operation retrieves the list of all variables associated with the given subscription.", + "x-ms-examples": { + "List variables that apply to a subscription": { + "$ref": "./examples/listVariablesForSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of variables.", + "schema": { + "$ref": "#/definitions/VariableListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables": { + "get": { + "tags": [ + "Variables" + ], + "operationId": "Variables_ListForManagementGroup", + "summary": "Retrieves all variables that are at this management group level.", + "description": "This operation retrieves the list of all variables applicable to the management group.", + "x-ms-examples": { + "List variables that apply to a management group": { + "$ref": "./examples/listVariablesForManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of variables.", + "schema": { + "$ref": "#/definitions/VariableListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "type": "object", + "description": "An error response from a policy operation." + }, + "PolicyVariableColumn": { + "required": [ + "columnName" + ], + "properties": { + "columnName": { + "type": "string", + "description": "The name of this policy variable column." + } + }, + "type": "object", + "description": "The variable column." + }, + "PolicyVariableProperties": { + "required": [ + "columns" + ], + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyVariableColumn" + }, + "x-ms-identifiers": [ + "columnName" + ], + "description": "Variable column definitions." + } + }, + "type": "object", + "description": "The variable properties." + }, + "Variable": { + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicyVariableProperties", + "description": "Properties for the variable." + }, + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the variable." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the variable." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource (Microsoft.Authorization/variables)." + } + }, + "type": "object", + "description": "The variable.", + "x-ms-azure-resource": true + }, + "VariableListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Variable" + }, + "description": "An array of variables." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "type": "object", + "description": "List of variables." + } + }, + "parameters": { + "VariableNameParameter": { + "name": "variableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the variable to operate on.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ManagementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the management group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-parameter-location": "client" + } + } +} diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index aef44e900604..83994fb5e305 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -101,6 +101,8 @@ input-file: - Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json - Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json - Microsoft.Authorization/preview/2020-07-01-preview/policyExemptions.json +- Microsoft.Authorization/preview/2022-08-01-preview/policyVariables.json +- Microsoft.Authorization/preview/2022-08-01-preview/policyVariableValues.json # Needed when there is more than one input file override-info: @@ -725,6 +727,14 @@ directive: from: policyExemptions.json where: $.paths reason: operation APIs for Microsoft.Authorization are to be defined in RBAC swagger + - suppress: OperationsAPIImplementation + from: policyVariables.json + where: $.paths + reason: operation APIs for Microsoft.Authorization are to be defined in RBAC swagger + - suppress: OperationsAPIImplementation + from: policyVariableValues.json + where: $.paths + reason: operation APIs for Microsoft.Authorization are to be defined in RBAC swagger - suppress: BodyTopLevelProperties from: policyExemptions.json where: $.definitions.PolicyExemption.properties @@ -851,6 +861,12 @@ directive: - suppress: TopLevelResourcesListByResourceGroup from: policyDefinitions.json reason: Policy definitions are a proxy resource that is only usable on subscriptions or management groups + - suppress: TopLevelResourcesListByResourceGroup + from: policyVariables.json + reason: Policy variables are a proxy resource that is only usable on subscriptions or management groups + - suppress: TopLevelResourcesListByResourceGroup + from: policyVariableValues.json + reason: Policy variable values are a proxy resource that is only usable on subscriptions or management groups - suppress: TopLevelResourcesListByResourceGroup from: policySetDefinitions.json reason: Policy set definitions are a proxy resource that is only usable on subscriptions or management groups @@ -945,4 +961,3 @@ override-info: title: PolicyClient ``` -