From 47f0b1079fdf8abf7d2deacf79b1724c6ecc84cf Mon Sep 17 00:00:00 2001 From: Gaurav Bang Date: Tue, 4 Apr 2023 11:09:14 +0530 Subject: [PATCH] merging billing fix to public repo --- ...Monitors_SwitchBilling_MaximumSet_Gen.json | 74 +++++++++++++++++++ ...Monitors_SwitchBilling_MinimumSet_Gen.json | 74 +++++++++++++++++++ .../newrelic/NewRelic.Management/main.cadl | 2 +- .../preview/2022-07-01-preview/NewRelic.json | 16 ++++ ...Monitors_SwitchBilling_MaximumSet_Gen.json | 74 +++++++++++++++++++ ...Monitors_SwitchBilling_MinimumSet_Gen.json | 74 +++++++++++++++++++ .../stable/2022-07-01/NewRelic.json | 16 ++++ ...Monitors_SwitchBilling_MaximumSet_Gen.json | 74 +++++++++++++++++++ ...Monitors_SwitchBilling_MinimumSet_Gen.json | 74 +++++++++++++++++++ 9 files changed, 477 insertions(+), 1 deletion(-) diff --git a/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MaximumSet_Gen.json b/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MaximumSet_Gen.json index 63b8c6f81886..9d73a790743e 100644 --- a/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MaximumSet_Gen.json +++ b/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MaximumSet_Gen.json @@ -19,6 +19,80 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "marketplaceSubscriptionId": "jizcsbgrdjhrfqqvvruhgftqhra", + "newRelicAccountProperties": { + "userId": "vcscxlncofcuduadesd", + "accountInfo": { + "accountId": "xhqmg", + "region": "ljcf" + }, + "organizationInfo": { + "organizationId": "k" + }, + "singleSignOnProperties": { + "singleSignOnState": "Initial", + "enterpriseAppId": "kwiwfz", + "singleSignOnUrl": "kvseueuljsxmfwpqctz", + "provisioningState": "Accepted" + } + }, + "userInfo": { + "firstName": "vdftzcggirefejajwahhwhyibutramdaotvnuf", + "lastName": "bcsztgqovdlmzfkjdrngidwzqsevagexzzilnlc", + "emailAddress": "%6%@4-g.N1.3F-kI1.Ue-.lJso", + "phoneNumber": "krf", + "country": "hslqnwdanrconqyekwbnttaetv" + }, + "planData": { + "usageType": "PAYG", + "billingCycle": "YEARLY", + "planDetails": "tbbiaga", + "effectiveDate": "2022-12-05T14:11:37.786Z" + }, + "liftrResourceCategory": "Unknown", + "liftrResourcePreference": 12, + "orgCreationSource": "LIFTR", + "accountCreationSource": "LIFTR" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "None", + "userAssignedIdentities": { + "key8903": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "clientId": "cac47a92-2856-11ed-a261-0242ac120002" + } + } + }, + "tags": { + "key6976": "oaxfhf" + }, + "location": "k", + "id": "ilrwkvbuwu", + "name": "fteaqmtwspcfgyopqzrepiqu", + "type": "hdj", + "systemData": { + "createdBy": "pcdjzdldbwsdlfi", + "createdByType": "User", + "createdAt": "2022-12-05T14:11:37.787Z", + "lastModifiedBy": "xbsjrxmwwlmpnpvcica", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-05T14:11:37.787Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + }, "204": {} } } diff --git a/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MinimumSet_Gen.json b/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MinimumSet_Gen.json index be0dfbff8e2e..faea5e3503f8 100644 --- a/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MinimumSet_Gen.json +++ b/specification/newrelic/NewRelic.Management/examples/Monitors_SwitchBilling_MinimumSet_Gen.json @@ -11,6 +11,80 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "marketplaceSubscriptionId": "jizcsbgrdjhrfqqvvruhgftqhra", + "newRelicAccountProperties": { + "userId": "vcscxlncofcuduadesd", + "accountInfo": { + "accountId": "xhqmg", + "region": "ljcf" + }, + "organizationInfo": { + "organizationId": "k" + }, + "singleSignOnProperties": { + "singleSignOnState": "Initial", + "enterpriseAppId": "kwiwfz", + "singleSignOnUrl": "kvseueuljsxmfwpqctz", + "provisioningState": "Accepted" + } + }, + "userInfo": { + "firstName": "vdftzcggirefejajwahhwhyibutramdaotvnuf", + "lastName": "bcsztgqovdlmzfkjdrngidwzqsevagexzzilnlc", + "emailAddress": "%6%@4-g.N1.3F-kI1.Ue-.lJso", + "phoneNumber": "krf", + "country": "hslqnwdanrconqyekwbnttaetv" + }, + "planData": { + "usageType": "PAYG", + "billingCycle": "YEARLY", + "planDetails": "tbbiaga", + "effectiveDate": "2022-12-05T14:11:37.786Z" + }, + "liftrResourceCategory": "Unknown", + "liftrResourcePreference": 12, + "orgCreationSource": "LIFTR", + "accountCreationSource": "LIFTR" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "None", + "userAssignedIdentities": { + "key8903": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "clientId": "cac47a92-2856-11ed-a261-0242ac120002" + } + } + }, + "tags": { + "key6976": "oaxfhf" + }, + "location": "k", + "id": "ilrwkvbuwu", + "name": "fteaqmtwspcfgyopqzrepiqu", + "type": "hdj", + "systemData": { + "createdBy": "pcdjzdldbwsdlfi", + "createdByType": "User", + "createdAt": "2022-12-05T14:11:37.787Z", + "lastModifiedBy": "xbsjrxmwwlmpnpvcica", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-05T14:11:37.787Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + }, "204": {} } } diff --git a/specification/newrelic/NewRelic.Management/main.cadl b/specification/newrelic/NewRelic.Management/main.cadl index 5fcbde78e985..c2a458956bf3 100644 --- a/specification/newrelic/NewRelic.Management/main.cadl +++ b/specification/newrelic/NewRelic.Management/main.cadl @@ -100,7 +100,7 @@ interface Monitors { op SwitchBilling( ...ResourceInstanceParameters, ...SwitchBillingParameter - ): void | ErrorResponse; + ): ArmResponse | ArmAcceptedResponse | void | ErrorResponse; @post @doc("Get metric rules") diff --git a/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/NewRelic.json b/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/NewRelic.json index 9659fac150d9..d2cfe38e3fa8 100644 --- a/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/NewRelic.json +++ b/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/NewRelic.json @@ -743,6 +743,22 @@ } ], "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/NewRelicMonitorResource" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + } + } + }, "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, diff --git a/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json b/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json index 63b8c6f81886..9d73a790743e 100644 --- a/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json +++ b/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json @@ -19,6 +19,80 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "marketplaceSubscriptionId": "jizcsbgrdjhrfqqvvruhgftqhra", + "newRelicAccountProperties": { + "userId": "vcscxlncofcuduadesd", + "accountInfo": { + "accountId": "xhqmg", + "region": "ljcf" + }, + "organizationInfo": { + "organizationId": "k" + }, + "singleSignOnProperties": { + "singleSignOnState": "Initial", + "enterpriseAppId": "kwiwfz", + "singleSignOnUrl": "kvseueuljsxmfwpqctz", + "provisioningState": "Accepted" + } + }, + "userInfo": { + "firstName": "vdftzcggirefejajwahhwhyibutramdaotvnuf", + "lastName": "bcsztgqovdlmzfkjdrngidwzqsevagexzzilnlc", + "emailAddress": "%6%@4-g.N1.3F-kI1.Ue-.lJso", + "phoneNumber": "krf", + "country": "hslqnwdanrconqyekwbnttaetv" + }, + "planData": { + "usageType": "PAYG", + "billingCycle": "YEARLY", + "planDetails": "tbbiaga", + "effectiveDate": "2022-12-05T14:11:37.786Z" + }, + "liftrResourceCategory": "Unknown", + "liftrResourcePreference": 12, + "orgCreationSource": "LIFTR", + "accountCreationSource": "LIFTR" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "None", + "userAssignedIdentities": { + "key8903": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "clientId": "cac47a92-2856-11ed-a261-0242ac120002" + } + } + }, + "tags": { + "key6976": "oaxfhf" + }, + "location": "k", + "id": "ilrwkvbuwu", + "name": "fteaqmtwspcfgyopqzrepiqu", + "type": "hdj", + "systemData": { + "createdBy": "pcdjzdldbwsdlfi", + "createdByType": "User", + "createdAt": "2022-12-05T14:11:37.787Z", + "lastModifiedBy": "xbsjrxmwwlmpnpvcica", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-05T14:11:37.787Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + }, "204": {} } } diff --git a/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json b/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json index be0dfbff8e2e..faea5e3503f8 100644 --- a/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json +++ b/specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json @@ -11,6 +11,80 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "marketplaceSubscriptionId": "jizcsbgrdjhrfqqvvruhgftqhra", + "newRelicAccountProperties": { + "userId": "vcscxlncofcuduadesd", + "accountInfo": { + "accountId": "xhqmg", + "region": "ljcf" + }, + "organizationInfo": { + "organizationId": "k" + }, + "singleSignOnProperties": { + "singleSignOnState": "Initial", + "enterpriseAppId": "kwiwfz", + "singleSignOnUrl": "kvseueuljsxmfwpqctz", + "provisioningState": "Accepted" + } + }, + "userInfo": { + "firstName": "vdftzcggirefejajwahhwhyibutramdaotvnuf", + "lastName": "bcsztgqovdlmzfkjdrngidwzqsevagexzzilnlc", + "emailAddress": "%6%@4-g.N1.3F-kI1.Ue-.lJso", + "phoneNumber": "krf", + "country": "hslqnwdanrconqyekwbnttaetv" + }, + "planData": { + "usageType": "PAYG", + "billingCycle": "YEARLY", + "planDetails": "tbbiaga", + "effectiveDate": "2022-12-05T14:11:37.786Z" + }, + "liftrResourceCategory": "Unknown", + "liftrResourcePreference": 12, + "orgCreationSource": "LIFTR", + "accountCreationSource": "LIFTR" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "None", + "userAssignedIdentities": { + "key8903": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "clientId": "cac47a92-2856-11ed-a261-0242ac120002" + } + } + }, + "tags": { + "key6976": "oaxfhf" + }, + "location": "k", + "id": "ilrwkvbuwu", + "name": "fteaqmtwspcfgyopqzrepiqu", + "type": "hdj", + "systemData": { + "createdBy": "pcdjzdldbwsdlfi", + "createdByType": "User", + "createdAt": "2022-12-05T14:11:37.787Z", + "lastModifiedBy": "xbsjrxmwwlmpnpvcica", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-05T14:11:37.787Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + }, "204": {} } } diff --git a/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/NewRelic.json b/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/NewRelic.json index caab32423f1a..3ed6178503bd 100644 --- a/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/NewRelic.json +++ b/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/NewRelic.json @@ -743,6 +743,22 @@ } ], "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/NewRelicMonitorResource" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + } + } + }, "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, diff --git a/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MaximumSet_Gen.json b/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MaximumSet_Gen.json index cdfdeee60abe..1b85702b56de 100644 --- a/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MaximumSet_Gen.json +++ b/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MaximumSet_Gen.json @@ -19,6 +19,80 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "marketplaceSubscriptionId": "jizcsbgrdjhrfqqvvruhgftqhra", + "newRelicAccountProperties": { + "userId": "vcscxlncofcuduadesd", + "accountInfo": { + "accountId": "xhqmg", + "region": "ljcf" + }, + "organizationInfo": { + "organizationId": "k" + }, + "singleSignOnProperties": { + "singleSignOnState": "Initial", + "enterpriseAppId": "kwiwfz", + "singleSignOnUrl": "kvseueuljsxmfwpqctz", + "provisioningState": "Accepted" + } + }, + "userInfo": { + "firstName": "vdftzcggirefejajwahhwhyibutramdaotvnuf", + "lastName": "bcsztgqovdlmzfkjdrngidwzqsevagexzzilnlc", + "emailAddress": "%6%@4-g.N1.3F-kI1.Ue-.lJso", + "phoneNumber": "krf", + "country": "hslqnwdanrconqyekwbnttaetv" + }, + "planData": { + "usageType": "PAYG", + "billingCycle": "YEARLY", + "planDetails": "tbbiaga", + "effectiveDate": "2022-12-05T14:11:37.786Z" + }, + "liftrResourceCategory": "Unknown", + "liftrResourcePreference": 12, + "orgCreationSource": "LIFTR", + "accountCreationSource": "LIFTR" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "None", + "userAssignedIdentities": { + "key8903": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "clientId": "cac47a92-2856-11ed-a261-0242ac120002" + } + } + }, + "tags": { + "key6976": "oaxfhf" + }, + "location": "k", + "id": "ilrwkvbuwu", + "name": "fteaqmtwspcfgyopqzrepiqu", + "type": "hdj", + "systemData": { + "createdBy": "pcdjzdldbwsdlfi", + "createdByType": "User", + "createdAt": "2022-12-05T14:11:37.787Z", + "lastModifiedBy": "xbsjrxmwwlmpnpvcica", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-05T14:11:37.787Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + }, "204": {} } } diff --git a/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MinimumSet_Gen.json b/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MinimumSet_Gen.json index 72bb99bfed17..e87aedc2bede 100644 --- a/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MinimumSet_Gen.json +++ b/specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MinimumSet_Gen.json @@ -11,6 +11,80 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "marketplaceSubscriptionId": "jizcsbgrdjhrfqqvvruhgftqhra", + "newRelicAccountProperties": { + "userId": "vcscxlncofcuduadesd", + "accountInfo": { + "accountId": "xhqmg", + "region": "ljcf" + }, + "organizationInfo": { + "organizationId": "k" + }, + "singleSignOnProperties": { + "singleSignOnState": "Initial", + "enterpriseAppId": "kwiwfz", + "singleSignOnUrl": "kvseueuljsxmfwpqctz", + "provisioningState": "Accepted" + } + }, + "userInfo": { + "firstName": "vdftzcggirefejajwahhwhyibutramdaotvnuf", + "lastName": "bcsztgqovdlmzfkjdrngidwzqsevagexzzilnlc", + "emailAddress": "%6%@4-g.N1.3F-kI1.Ue-.lJso", + "phoneNumber": "krf", + "country": "hslqnwdanrconqyekwbnttaetv" + }, + "planData": { + "usageType": "PAYG", + "billingCycle": "YEARLY", + "planDetails": "tbbiaga", + "effectiveDate": "2022-12-05T14:11:37.786Z" + }, + "liftrResourceCategory": "Unknown", + "liftrResourcePreference": 12, + "orgCreationSource": "LIFTR", + "accountCreationSource": "LIFTR" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "None", + "userAssignedIdentities": { + "key8903": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "clientId": "cac47a92-2856-11ed-a261-0242ac120002" + } + } + }, + "tags": { + "key6976": "oaxfhf" + }, + "location": "k", + "id": "ilrwkvbuwu", + "name": "fteaqmtwspcfgyopqzrepiqu", + "type": "hdj", + "systemData": { + "createdBy": "pcdjzdldbwsdlfi", + "createdByType": "User", + "createdAt": "2022-12-05T14:11:37.787Z", + "lastModifiedBy": "xbsjrxmwwlmpnpvcica", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-05T14:11:37.787Z" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + } + }, "204": {} } }