From dbe6e9d2fa584a5d35e938dc267a657ce79fe7ff Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Mon, 10 Sep 2018 12:20:20 -0700 Subject: [PATCH 01/12] -Publish "Azure metrics REST Ingestion API" public preview swagger spec --- .../preview/2018-09-01-preview.json | 1927 +++++++++++++++++ 1 file changed, 1927 insertions(+) create mode 100644 specification/monitor/data-plane/preview/2018-09-01-preview.json diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview.json b/specification/monitor/data-plane/preview/2018-09-01-preview.json new file mode 100644 index 000000000000..8856728f17a1 --- /dev/null +++ b/specification/monitor/data-plane/preview/2018-09-01-preview.json @@ -0,0 +1,1927 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Metrics", + "version": "2018-09-01-preview", + "description": "A client for issuing REST requests to the Azure metrics service.", + "x-ms-code-generation-settings": { + "name": "AzureMetricsClient" + } + }, + "host": "monitoring.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics": { + "post": { + "summary": "Ingestion API used by Azure custom metrics\r\n Responsible of below operation\r\n 1. Authorize the request\r\n 2. Deserialize payload request body\r\n 3. Perform validation of the payload\r\n 4. Commits the payload for metrics ingestion", + "operationId": "postSubscriptionsBySubscriptionIdResourcegroupsByResourceGroupNameProvidersByResourceProviderByResourceTypeNameByResourceNameMetrics", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "header", + "name": "Content-Type", + "description": "Supports application/json and application/x-ndjson", + "type": "string" + }, + { + "in": "header", + "name": "Content-Length", + "description": "Content length of the payload", + "type": "integer", + "format": "int32" + }, + { + "in": "header", + "name": "Authorization", + "description": "Authorization token issue for issued for audience https:\\\\monitoring.azure.com", + "type": "string" + }, + { + "in": "path", + "name": "subscriptionId", + "description": "The azure subscription id", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The ARM resource group name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceProvider", + "description": "The ARM resource provider name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceTypeName", + "description": "The ARM resource type name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceName", + "description": "The ARM resource name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "The Azure metrics document json payload", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsDocument" + } + } + ], + "responses": { + "200": { + "description": "The azure metrics publish succeeded", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "400": { + "description": "Bad request with error message", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "401": { + "description": "Unauthorized to publish metrics", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "403": { + "description": "Forbidden to publish metrics", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "404": { + "description": "The resource ID sent is not found", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "411": { + "description": "The required Content-length header is missing.", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "413": { + "description": "The request is too large for the server to process", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + }, + "415": { + "description": "Unsupported media type received. Accepts only application/json and application/x-ndjson", + "schema": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + } + } + } + } + } + }, + "definitions": { + "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsDocument": { + "type": "object", + "properties": { + "Time": { + "description": "Gets or sets Time property (in ISO 8601 format)", + "type": "string" + }, + "Data": { + "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsData" + } + } + }, + "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsData": { + "type": "object", + "properties": { + "BaseData": { + "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsBaseData" + } + } + }, + "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsBaseData": { + "type": "object", + "properties": { + "Metric": { + "description": "Gets or sets the Metric name", + "type": "string" + }, + "Namespace": { + "description": "Gets or sets the Metric namespace", + "type": "string" + }, + "DimNames": { + "description": "Gets or sets the list of dimension names (optional)", + "type": "array", + "items": { + "type": "string" + } + }, + "Series": { + "description": "Gets or sets the list of time series data for the metric (one per unique dimension combination)", + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureTimeSeriesData" + } + } + } + }, + "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureTimeSeriesData": { + "type": "object", + "properties": { + "DimValues": { + "description": "Gets or sets dimension values", + "type": "array", + "items": { + "type": "string" + } + }, + "Min": { + "format": "double", + "description": "Gets or sets Min value", + "type": "number" + }, + "Max": { + "format": "double", + "description": "Gets or sets Max value", + "type": "number" + }, + "Sum": { + "format": "double", + "description": "Gets or sets Sum value", + "type": "number" + }, + "Count": { + "format": "int32", + "description": "Gets or sets Count value", + "type": "integer" + } + } + }, + "Microsoft.AspNetCore.Mvc.ObjectResult": { + "type": "object", + "properties": { + "Value": { + "type": "object" + }, + "Formatters": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter" + } + }, + "ContentTypes": { + "type": "array", + "items": { } + }, + "DeclaredType": { + "$ref": "#/definitions/System.Type" + }, + "StatusCode": { + "format": "int32", + "type": "integer" + } + } + }, + "Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter": { + "type": "object" + }, + "System.Type": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "DeclaringMethod": { + "$ref": "#/definitions/System.Reflection.MethodBase" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "StructLayoutAttribute": { + "$ref": "#/definitions/System.Runtime.InteropServices.StructLayoutAttribute" + }, + "GUID": { + "format": "uuid", + "type": "string", + "example": "00000000-0000-0000-0000-000000000000" + }, + "DefaultBinder": { + "$ref": "#/definitions/System.Reflection.Binder" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + }, + "Assembly": { + "$ref": "#/definitions/System.Reflection.Assembly" + }, + "TypeHandle": { + "$ref": "#/definitions/System.RuntimeTypeHandle" + }, + "FullName": { + "type": "string" + }, + "Namespace": { + "type": "string" + }, + "AssemblyQualifiedName": { + "type": "string" + }, + "BaseType": { + "$ref": "#/definitions/System.Type" + }, + "TypeInitializer": { + "$ref": "#/definitions/System.Reflection.ConstructorInfo" + }, + "IsNested": { + "type": "boolean" + }, + "Attributes": { + "enum": [ + "NotPublic", + "AutoLayout", + "AnsiClass", + "Class", + "Public", + "NestedPublic", + "NestedPrivate", + "NestedFamily", + "NestedAssembly", + "NestedFamANDAssem", + "NestedFamORAssem", + "VisibilityMask", + "SequentialLayout", + "ExplicitLayout", + "LayoutMask", + "Interface", + "ClassSemanticsMask", + "Abstract", + "Sealed", + "SpecialName", + "RTSpecialName", + "Import", + "Serializable", + "WindowsRuntime", + "UnicodeClass", + "AutoClass", + "StringFormatMask", + "CustomFormatClass", + "HasSecurity", + "ReservedMask", + "BeforeFieldInit", + "CustomFormatMask" + ], + "type": "string" + }, + "GenericParameterAttributes": { + "enum": [ + "None", + "Covariant", + "Contravariant", + "VarianceMask", + "ReferenceTypeConstraint", + "NotNullableValueTypeConstraint", + "DefaultConstructorConstraint", + "SpecialConstraintMask" + ], + "type": "string" + }, + "IsVisible": { + "type": "boolean" + }, + "IsNotPublic": { + "type": "boolean" + }, + "IsPublic": { + "type": "boolean" + }, + "IsNestedPublic": { + "type": "boolean" + }, + "IsNestedPrivate": { + "type": "boolean" + }, + "IsNestedFamily": { + "type": "boolean" + }, + "IsNestedAssembly": { + "type": "boolean" + }, + "IsNestedFamANDAssem": { + "type": "boolean" + }, + "IsNestedFamORAssem": { + "type": "boolean" + }, + "IsAutoLayout": { + "type": "boolean" + }, + "IsLayoutSequential": { + "type": "boolean" + }, + "IsExplicitLayout": { + "type": "boolean" + }, + "IsClass": { + "type": "boolean" + }, + "IsInterface": { + "type": "boolean" + }, + "IsValueType": { + "type": "boolean" + }, + "IsAbstract": { + "type": "boolean" + }, + "IsSealed": { + "type": "boolean" + }, + "IsEnum": { + "type": "boolean" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsImport": { + "type": "boolean" + }, + "IsSerializable": { + "type": "boolean" + }, + "IsAnsiClass": { + "type": "boolean" + }, + "IsUnicodeClass": { + "type": "boolean" + }, + "IsAutoClass": { + "type": "boolean" + }, + "IsArray": { + "type": "boolean" + }, + "IsGenericType": { + "type": "boolean" + }, + "IsGenericTypeDefinition": { + "type": "boolean" + }, + "IsConstructedGenericType": { + "type": "boolean" + }, + "IsGenericParameter": { + "type": "boolean" + }, + "GenericParameterPosition": { + "format": "int32", + "type": "integer" + }, + "ContainsGenericParameters": { + "type": "boolean" + }, + "IsByRef": { + "type": "boolean" + }, + "IsPointer": { + "type": "boolean" + }, + "IsPrimitive": { + "type": "boolean" + }, + "IsCOMObject": { + "type": "boolean" + }, + "HasElementType": { + "type": "boolean" + }, + "IsContextful": { + "type": "boolean" + }, + "IsMarshalByRef": { + "type": "boolean" + }, + "GenericTypeArguments": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Type" + } + }, + "IsSecurityCritical": { + "type": "boolean" + }, + "IsSecuritySafeCritical": { + "type": "boolean" + }, + "IsSecurityTransparent": { + "type": "boolean" + }, + "UnderlyingSystemType": { + "$ref": "#/definitions/System.Type" + }, + "Name": { + "type": "string" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + } + } + }, + "System.Reflection.MethodBase": { + "type": "object", + "properties": { + "MethodImplementationFlags": { + "enum": [ + "Managed", + "IL", + "Native", + "OPTIL", + "Runtime", + "CodeTypeMask", + "Unmanaged", + "ManagedMask", + "NoInlining", + "ForwardRef", + "Synchronized", + "NoOptimization", + "PreserveSig", + "AggressiveInlining", + "InternalCall", + "MaxMethodImplVal" + ], + "type": "string" + }, + "MethodHandle": { + "$ref": "#/definitions/System.RuntimeMethodHandle" + }, + "Attributes": { + "enum": [ + "ReuseSlot", + "PrivateScope", + "Private", + "FamANDAssem", + "Assembly", + "Family", + "FamORAssem", + "Public", + "MemberAccessMask", + "UnmanagedExport", + "Static", + "Final", + "Virtual", + "HideBySig", + "NewSlot", + "VtableLayoutMask", + "CheckAccessOnOverride", + "Abstract", + "SpecialName", + "RTSpecialName", + "PinvokeImpl", + "HasSecurity", + "RequireSecObject", + "ReservedMask" + ], + "type": "string" + }, + "CallingConvention": { + "enum": [ + "Standard", + "VarArgs", + "Any", + "HasThis", + "ExplicitThis" + ], + "type": "string" + }, + "IsGenericMethodDefinition": { + "type": "boolean" + }, + "ContainsGenericParameters": { + "type": "boolean" + }, + "IsGenericMethod": { + "type": "boolean" + }, + "IsSecurityCritical": { + "type": "boolean" + }, + "IsSecuritySafeCritical": { + "type": "boolean" + }, + "IsSecurityTransparent": { + "type": "boolean" + }, + "IsPublic": { + "type": "boolean" + }, + "IsPrivate": { + "type": "boolean" + }, + "IsFamily": { + "type": "boolean" + }, + "IsAssembly": { + "type": "boolean" + }, + "IsFamilyAndAssembly": { + "type": "boolean" + }, + "IsFamilyOrAssembly": { + "type": "boolean" + }, + "IsStatic": { + "type": "boolean" + }, + "IsFinal": { + "type": "boolean" + }, + "IsVirtual": { + "type": "boolean" + }, + "IsHideBySig": { + "type": "boolean" + }, + "IsAbstract": { + "type": "boolean" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsConstructor": { + "type": "boolean" + }, + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.RuntimeMethodHandle": { + "type": "object", + "properties": { + "Value": { + "$ref": "#/definitions/System.IntPtr" + } + } + }, + "System.IntPtr": { + "type": "object", + "properties": { + "Size": { + "format": "int32", + "type": "integer" + } + } + }, + "System.Reflection.CustomAttributeData": { + "type": "object", + "properties": { + "AttributeType": { + "$ref": "#/definitions/System.Type" + }, + "Constructor": { + "$ref": "#/definitions/System.Reflection.ConstructorInfo" + }, + "ConstructorArguments": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeTypedArgument" + } + }, + "NamedArguments": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeNamedArgument" + } + } + } + }, + "System.Reflection.ConstructorInfo": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "MethodImplementationFlags": { + "enum": [ + "Managed", + "IL", + "Native", + "OPTIL", + "Runtime", + "CodeTypeMask", + "Unmanaged", + "ManagedMask", + "NoInlining", + "ForwardRef", + "Synchronized", + "NoOptimization", + "PreserveSig", + "AggressiveInlining", + "InternalCall", + "MaxMethodImplVal" + ], + "type": "string" + }, + "MethodHandle": { + "$ref": "#/definitions/System.RuntimeMethodHandle" + }, + "Attributes": { + "enum": [ + "ReuseSlot", + "PrivateScope", + "Private", + "FamANDAssem", + "Assembly", + "Family", + "FamORAssem", + "Public", + "MemberAccessMask", + "UnmanagedExport", + "Static", + "Final", + "Virtual", + "HideBySig", + "NewSlot", + "VtableLayoutMask", + "CheckAccessOnOverride", + "Abstract", + "SpecialName", + "RTSpecialName", + "PinvokeImpl", + "HasSecurity", + "RequireSecObject", + "ReservedMask" + ], + "type": "string" + }, + "CallingConvention": { + "enum": [ + "Standard", + "VarArgs", + "Any", + "HasThis", + "ExplicitThis" + ], + "type": "string" + }, + "IsGenericMethodDefinition": { + "type": "boolean" + }, + "ContainsGenericParameters": { + "type": "boolean" + }, + "IsGenericMethod": { + "type": "boolean" + }, + "IsSecurityCritical": { + "type": "boolean" + }, + "IsSecuritySafeCritical": { + "type": "boolean" + }, + "IsSecurityTransparent": { + "type": "boolean" + }, + "IsPublic": { + "type": "boolean" + }, + "IsPrivate": { + "type": "boolean" + }, + "IsFamily": { + "type": "boolean" + }, + "IsAssembly": { + "type": "boolean" + }, + "IsFamilyAndAssembly": { + "type": "boolean" + }, + "IsFamilyOrAssembly": { + "type": "boolean" + }, + "IsStatic": { + "type": "boolean" + }, + "IsFinal": { + "type": "boolean" + }, + "IsVirtual": { + "type": "boolean" + }, + "IsHideBySig": { + "type": "boolean" + }, + "IsAbstract": { + "type": "boolean" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsConstructor": { + "type": "boolean" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.Reflection.Module": { + "type": "object", + "properties": { + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MDStreamVersion": { + "format": "int32", + "type": "integer" + }, + "FullyQualifiedName": { + "type": "string" + }, + "ModuleVersionId": { + "format": "uuid", + "type": "string", + "example": "00000000-0000-0000-0000-000000000000" + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "ScopeName": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Assembly": { + "$ref": "#/definitions/System.Reflection.Assembly" + }, + "ModuleHandle": { + "$ref": "#/definitions/System.ModuleHandle" + } + } + }, + "System.Reflection.Assembly": { + "type": "object", + "properties": { + "CodeBase": { + "type": "string" + }, + "EscapedCodeBase": { + "type": "string" + }, + "FullName": { + "type": "string" + }, + "EntryPoint": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + }, + "ExportedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Type" + } + }, + "DefinedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.TypeInfo" + } + }, + "Evidence": { + "type": "array", + "items": { } + }, + "PermissionSet": { + "type": "array", + "items": { } + }, + "IsFullyTrusted": { + "type": "boolean" + }, + "SecurityRuleSet": { + "enum": [ + "None", + "Level1", + "Level2" + ], + "type": "string" + }, + "ManifestModule": { + "$ref": "#/definitions/System.Reflection.Module" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "ReflectionOnly": { + "type": "boolean" + }, + "Modules": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.Module" + } + }, + "Location": { + "type": "string" + }, + "ImageRuntimeVersion": { + "type": "string" + }, + "GlobalAssemblyCache": { + "type": "boolean" + }, + "HostContext": { + "format": "int64", + "type": "integer" + }, + "IsDynamic": { + "type": "boolean" + } + } + }, + "System.Reflection.MethodInfo": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "ReturnType": { + "$ref": "#/definitions/System.Type" + }, + "ReturnParameter": { + "$ref": "#/definitions/System.Reflection.ParameterInfo" + }, + "ReturnTypeCustomAttributes": { + "$ref": "#/definitions/System.Reflection.ICustomAttributeProvider" + }, + "MethodImplementationFlags": { + "enum": [ + "Managed", + "IL", + "Native", + "OPTIL", + "Runtime", + "CodeTypeMask", + "Unmanaged", + "ManagedMask", + "NoInlining", + "ForwardRef", + "Synchronized", + "NoOptimization", + "PreserveSig", + "AggressiveInlining", + "InternalCall", + "MaxMethodImplVal" + ], + "type": "string" + }, + "MethodHandle": { + "$ref": "#/definitions/System.RuntimeMethodHandle" + }, + "Attributes": { + "enum": [ + "ReuseSlot", + "PrivateScope", + "Private", + "FamANDAssem", + "Assembly", + "Family", + "FamORAssem", + "Public", + "MemberAccessMask", + "UnmanagedExport", + "Static", + "Final", + "Virtual", + "HideBySig", + "NewSlot", + "VtableLayoutMask", + "CheckAccessOnOverride", + "Abstract", + "SpecialName", + "RTSpecialName", + "PinvokeImpl", + "HasSecurity", + "RequireSecObject", + "ReservedMask" + ], + "type": "string" + }, + "CallingConvention": { + "enum": [ + "Standard", + "VarArgs", + "Any", + "HasThis", + "ExplicitThis" + ], + "type": "string" + }, + "IsGenericMethodDefinition": { + "type": "boolean" + }, + "ContainsGenericParameters": { + "type": "boolean" + }, + "IsGenericMethod": { + "type": "boolean" + }, + "IsSecurityCritical": { + "type": "boolean" + }, + "IsSecuritySafeCritical": { + "type": "boolean" + }, + "IsSecurityTransparent": { + "type": "boolean" + }, + "IsPublic": { + "type": "boolean" + }, + "IsPrivate": { + "type": "boolean" + }, + "IsFamily": { + "type": "boolean" + }, + "IsAssembly": { + "type": "boolean" + }, + "IsFamilyAndAssembly": { + "type": "boolean" + }, + "IsFamilyOrAssembly": { + "type": "boolean" + }, + "IsStatic": { + "type": "boolean" + }, + "IsFinal": { + "type": "boolean" + }, + "IsVirtual": { + "type": "boolean" + }, + "IsHideBySig": { + "type": "boolean" + }, + "IsAbstract": { + "type": "boolean" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsConstructor": { + "type": "boolean" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.Reflection.ParameterInfo": { + "type": "object", + "properties": { + "ParameterType": { + "$ref": "#/definitions/System.Type" + }, + "Name": { + "type": "string" + }, + "HasDefaultValue": { + "type": "boolean" + }, + "DefaultValue": { + "type": "object" + }, + "RawDefaultValue": { + "type": "object" + }, + "Position": { + "format": "int32", + "type": "integer" + }, + "Attributes": { + "enum": [ + "None", + "In", + "Out", + "Lcid", + "Retval", + "Optional", + "HasDefault", + "HasFieldMarshal", + "Reserved3", + "Reserved4", + "ReservedMask" + ], + "type": "string" + }, + "Member": { + "$ref": "#/definitions/System.Reflection.MemberInfo" + }, + "IsIn": { + "type": "boolean" + }, + "IsOut": { + "type": "boolean" + }, + "IsLcid": { + "type": "boolean" + }, + "IsRetval": { + "type": "boolean" + }, + "IsOptional": { + "type": "boolean" + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + } + } + }, + "System.Reflection.MemberInfo": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.Reflection.ICustomAttributeProvider": { + "type": "object" + }, + "System.Reflection.TypeInfo": { + "type": "object", + "properties": { + "GenericTypeParameters": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Type" + } + }, + "DeclaredConstructors": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.ConstructorInfo" + } + }, + "DeclaredEvents": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.EventInfo" + } + }, + "DeclaredFields": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.FieldInfo" + } + }, + "DeclaredMembers": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.MemberInfo" + } + }, + "DeclaredMethods": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + } + }, + "DeclaredNestedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.TypeInfo" + } + }, + "DeclaredProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.PropertyInfo" + } + }, + "ImplementedInterfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Type" + } + }, + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "DeclaringMethod": { + "$ref": "#/definitions/System.Reflection.MethodBase" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "StructLayoutAttribute": { + "$ref": "#/definitions/System.Runtime.InteropServices.StructLayoutAttribute" + }, + "GUID": { + "format": "uuid", + "type": "string", + "example": "00000000-0000-0000-0000-000000000000" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + }, + "Assembly": { + "$ref": "#/definitions/System.Reflection.Assembly" + }, + "TypeHandle": { + "$ref": "#/definitions/System.RuntimeTypeHandle" + }, + "FullName": { + "type": "string" + }, + "Namespace": { + "type": "string" + }, + "AssemblyQualifiedName": { + "type": "string" + }, + "BaseType": { + "$ref": "#/definitions/System.Type" + }, + "TypeInitializer": { + "$ref": "#/definitions/System.Reflection.ConstructorInfo" + }, + "IsNested": { + "type": "boolean" + }, + "Attributes": { + "enum": [ + "NotPublic", + "AutoLayout", + "AnsiClass", + "Class", + "Public", + "NestedPublic", + "NestedPrivate", + "NestedFamily", + "NestedAssembly", + "NestedFamANDAssem", + "NestedFamORAssem", + "VisibilityMask", + "SequentialLayout", + "ExplicitLayout", + "LayoutMask", + "Interface", + "ClassSemanticsMask", + "Abstract", + "Sealed", + "SpecialName", + "RTSpecialName", + "Import", + "Serializable", + "WindowsRuntime", + "UnicodeClass", + "AutoClass", + "StringFormatMask", + "CustomFormatClass", + "HasSecurity", + "ReservedMask", + "BeforeFieldInit", + "CustomFormatMask" + ], + "type": "string" + }, + "GenericParameterAttributes": { + "enum": [ + "None", + "Covariant", + "Contravariant", + "VarianceMask", + "ReferenceTypeConstraint", + "NotNullableValueTypeConstraint", + "DefaultConstructorConstraint", + "SpecialConstraintMask" + ], + "type": "string" + }, + "IsVisible": { + "type": "boolean" + }, + "IsNotPublic": { + "type": "boolean" + }, + "IsPublic": { + "type": "boolean" + }, + "IsNestedPublic": { + "type": "boolean" + }, + "IsNestedPrivate": { + "type": "boolean" + }, + "IsNestedFamily": { + "type": "boolean" + }, + "IsNestedAssembly": { + "type": "boolean" + }, + "IsNestedFamANDAssem": { + "type": "boolean" + }, + "IsNestedFamORAssem": { + "type": "boolean" + }, + "IsAutoLayout": { + "type": "boolean" + }, + "IsLayoutSequential": { + "type": "boolean" + }, + "IsExplicitLayout": { + "type": "boolean" + }, + "IsClass": { + "type": "boolean" + }, + "IsInterface": { + "type": "boolean" + }, + "IsValueType": { + "type": "boolean" + }, + "IsAbstract": { + "type": "boolean" + }, + "IsSealed": { + "type": "boolean" + }, + "IsEnum": { + "type": "boolean" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsImport": { + "type": "boolean" + }, + "IsSerializable": { + "type": "boolean" + }, + "IsAnsiClass": { + "type": "boolean" + }, + "IsUnicodeClass": { + "type": "boolean" + }, + "IsAutoClass": { + "type": "boolean" + }, + "IsArray": { + "type": "boolean" + }, + "IsGenericType": { + "type": "boolean" + }, + "IsGenericTypeDefinition": { + "type": "boolean" + }, + "IsConstructedGenericType": { + "type": "boolean" + }, + "IsGenericParameter": { + "type": "boolean" + }, + "GenericParameterPosition": { + "format": "int32", + "type": "integer" + }, + "ContainsGenericParameters": { + "type": "boolean" + }, + "IsByRef": { + "type": "boolean" + }, + "IsPointer": { + "type": "boolean" + }, + "IsPrimitive": { + "type": "boolean" + }, + "IsCOMObject": { + "type": "boolean" + }, + "HasElementType": { + "type": "boolean" + }, + "IsContextful": { + "type": "boolean" + }, + "IsMarshalByRef": { + "type": "boolean" + }, + "GenericTypeArguments": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Type" + } + }, + "IsSecurityCritical": { + "type": "boolean" + }, + "IsSecuritySafeCritical": { + "type": "boolean" + }, + "IsSecurityTransparent": { + "type": "boolean" + }, + "UnderlyingSystemType": { + "$ref": "#/definitions/System.Type" + }, + "Name": { + "type": "string" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + } + } + }, + "System.Reflection.EventInfo": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "Attributes": { + "enum": [ + "None", + "SpecialName", + "ReservedMask", + "RTSpecialName" + ], + "type": "string" + }, + "AddMethod": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + }, + "RemoveMethod": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + }, + "RaiseMethod": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + }, + "EventHandlerType": { + "$ref": "#/definitions/System.Type" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsMulticast": { + "type": "boolean" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.Reflection.FieldInfo": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "FieldHandle": { + "$ref": "#/definitions/System.RuntimeFieldHandle" + }, + "FieldType": { + "$ref": "#/definitions/System.Type" + }, + "Attributes": { + "enum": [ + "PrivateScope", + "Private", + "FamANDAssem", + "Assembly", + "Family", + "FamORAssem", + "Public", + "FieldAccessMask", + "Static", + "InitOnly", + "Literal", + "NotSerialized", + "HasFieldRVA", + "SpecialName", + "RTSpecialName", + "HasFieldMarshal", + "PinvokeImpl", + "HasDefault", + "ReservedMask" + ], + "type": "string" + }, + "IsPublic": { + "type": "boolean" + }, + "IsPrivate": { + "type": "boolean" + }, + "IsFamily": { + "type": "boolean" + }, + "IsAssembly": { + "type": "boolean" + }, + "IsFamilyAndAssembly": { + "type": "boolean" + }, + "IsFamilyOrAssembly": { + "type": "boolean" + }, + "IsStatic": { + "type": "boolean" + }, + "IsInitOnly": { + "type": "boolean" + }, + "IsLiteral": { + "type": "boolean" + }, + "IsNotSerialized": { + "type": "boolean" + }, + "IsSpecialName": { + "type": "boolean" + }, + "IsPinvokeImpl": { + "type": "boolean" + }, + "IsSecurityCritical": { + "type": "boolean" + }, + "IsSecuritySafeCritical": { + "type": "boolean" + }, + "IsSecurityTransparent": { + "type": "boolean" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.RuntimeFieldHandle": { + "type": "object", + "properties": { + "Value": { + "$ref": "#/definitions/System.IntPtr" + } + } + }, + "System.Reflection.PropertyInfo": { + "type": "object", + "properties": { + "MemberType": { + "enum": [ + "Constructor", + "Event", + "Field", + "Method", + "Property", + "TypeInfo", + "Custom", + "NestedType", + "All" + ], + "type": "string" + }, + "PropertyType": { + "$ref": "#/definitions/System.Type" + }, + "Attributes": { + "enum": [ + "None", + "SpecialName", + "RTSpecialName", + "HasDefault", + "Reserved2", + "Reserved3", + "Reserved4", + "ReservedMask" + ], + "type": "string" + }, + "CanRead": { + "type": "boolean" + }, + "CanWrite": { + "type": "boolean" + }, + "GetMethod": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + }, + "SetMethod": { + "$ref": "#/definitions/System.Reflection.MethodInfo" + }, + "IsSpecialName": { + "type": "boolean" + }, + "Name": { + "type": "string" + }, + "DeclaringType": { + "$ref": "#/definitions/System.Type" + }, + "ReflectedType": { + "$ref": "#/definitions/System.Type" + }, + "CustomAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/System.Reflection.CustomAttributeData" + } + }, + "MetadataToken": { + "format": "int32", + "type": "integer" + }, + "Module": { + "$ref": "#/definitions/System.Reflection.Module" + } + } + }, + "System.Runtime.InteropServices.StructLayoutAttribute": { + "type": "object", + "properties": { + "Value": { + "enum": [ + "Sequential", + "Explicit", + "Auto" + ], + "type": "string" + }, + "TypeId": { + "type": "object" + } + } + }, + "System.RuntimeTypeHandle": { + "type": "object", + "properties": { + "Value": { + "$ref": "#/definitions/System.IntPtr" + } + } + }, + "System.ModuleHandle": { + "type": "object", + "properties": { + "MDStreamVersion": { + "format": "int32", + "type": "integer" + } + } + }, + "System.Reflection.CustomAttributeTypedArgument": { + "type": "object", + "properties": { + "ArgumentType": { + "$ref": "#/definitions/System.Type" + }, + "Value": { + "type": "object" + } + } + }, + "System.Reflection.CustomAttributeNamedArgument": { + "type": "object", + "properties": { + "MemberInfo": { + "$ref": "#/definitions/System.Reflection.MemberInfo" + }, + "TypedValue": { + "$ref": "#/definitions/System.Reflection.CustomAttributeTypedArgument" + }, + "MemberName": { + "type": "string" + }, + "IsField": { + "type": "boolean" + } + } + }, + "System.Reflection.Binder": { + "type": "object" + } + } +} \ No newline at end of file From 25acd4fd6955847baf872a6bb118ea6ea3e8376c Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Mon, 10 Sep 2018 15:33:46 -0700 Subject: [PATCH 02/12] Address review comments - Use a shorter operationId - Remove any non-success response code with default response clause - Add a new example and reference it in the swagger spec - Include readme.md file for the swagger spec --- ...zureMonitorCustomMetricsIngestionApi.json} | 47 ++----- .../examples/AzureMetrics_IngestMetrics.json | 40 ++++++ specification/monitor/data-plane/readme.md | 133 ++++++++++++++++++ 3 files changed, 181 insertions(+), 39 deletions(-) rename specification/monitor/data-plane/preview/{2018-09-01-preview.json => 2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json} (96%) create mode 100644 specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json create mode 100644 specification/monitor/data-plane/readme.md diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview.json b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json similarity index 96% rename from specification/monitor/data-plane/preview/2018-09-01-preview.json rename to specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json index 8856728f17a1..57a95366ff5e 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json @@ -22,7 +22,7 @@ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics": { "post": { "summary": "Ingestion API used by Azure custom metrics\r\n Responsible of below operation\r\n 1. Authorize the request\r\n 2. Deserialize payload request body\r\n 3. Perform validation of the payload\r\n 4. Commits the payload for metrics ingestion", - "operationId": "postSubscriptionsBySubscriptionIdResourcegroupsByResourceGroupNameProvidersByResourceProviderByResourceTypeNameByResourceNameMetrics", + "operationId": "azureMonitorCustomMetricsIngestionApi", "consumes": [ "application/json" ], @@ -101,48 +101,17 @@ "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" } }, - "400": { - "description": "Bad request with error message", - "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" - } - }, - "401": { - "description": "Unauthorized to publish metrics", - "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" - } - }, - "403": { - "description": "Forbidden to publish metrics", - "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" - } - }, - "404": { - "description": "The resource ID sent is not found", - "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" - } - }, - "411": { - "description": "The required Content-length header is missing.", - "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" - } - }, - "413": { - "description": "The request is too large for the server to process", - "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" - } - }, - "415": { - "description": "Unsupported media type received. Accepts only application/json and application/x-ndjson", + "default": { + "description": "An unexpected error from the server. See response object for the reason", "schema": { "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" } } + }, + "x-ms-example": { + "Post azure metrics for cows sold with related metadata as dimensions": { + "$ref": "./examples/AzureMetrics_IngestMetrics.json" + } } } } diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json new file mode 100644 index 000000000000..92f08f689b1f --- /dev/null +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-09-01-preview", + "Content-Type": "application/json", + "Content-Length": "783", + "Authorization": "Bearer {AAD JWT token issued for https:\\\\monitoring.azure.com}", + "path": "/subscriptions/b7ac8a0c-fbae-4e29-a0f7-09999b8857a1/resourceGroups/CowsSeller/providers/Microsoft.Storage/storageAccounts/cowssellerstore", + "body" : { + "time":"2018-08-24T 11:02:00-7:00", + "data":{ + "baseData":{ + "metric":"CowsSold", + "namespace":"Cows", + "dimNames":[ + "Breed", + "Color", + "Age" + ], + "series":[ + { + "dimValues":[ + "Angus", + "Blue", + "5" + ], + "min":5, + "max":20, + "sum":30, + "count":3 + } + ] + } + } + } + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md new file mode 100644 index 000000000000..06ba59943b6f --- /dev/null +++ b/specification/monitor/data-plane/readme.md @@ -0,0 +1,133 @@ +# MonitorClient + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for MonitorClient. + + + +--- +## Getting Started +To build the SDK for MonitorClient, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + + + +### Basic Information +These are the global settings for the MonitorClient API. + +``` yaml +title: MonitorClient +description: Monitor Management Client +openapi-type: arm + +tag: package-2018-09 + +``` +### Tag: package-2018-09 + +These settings apply only when `--tag=package-2018-09` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09' +input-file: +- data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json +``` + +# Code Generation + + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-node + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_monitor'] +``` + + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + payload-flattening-threshold: 1 + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.Monitor + output-folder: $(csharp-sdks-folder)/Monitor/Management.Monitor/Generated + clear-output-folder: true +``` + + +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: insights + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-09 +``` + +### Tag: package-2018-09 and go + +These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2017-09' && $(go) +output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-03-01/insights +``` + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.monitor +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-monitor +``` + +# Validation + +## Suppression + +``` yaml +directive: + - suppress: R3016 # DefinitionsPropertiesNamesCamelCase (to suppress the error due to odata.type) + reason: The feature (polymorphic types) is in the process of deprecation and fixing this will require changes in the backend. +``` From 47b3f9937407309dd0fb30aa39e0d35b8eea8509 Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Mon, 10 Sep 2018 16:07:56 -0700 Subject: [PATCH 03/12] Fix a bug in readme.md. - Inline the readme.python.md file in the readme.md --- specification/monitor/data-plane/readme.md | 28 ++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md index 06ba59943b6f..a7bf9c842aa8 100644 --- a/specification/monitor/data-plane/readme.md +++ b/specification/monitor/data-plane/readme.md @@ -100,13 +100,37 @@ batch: These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2017-09' && $(go) +``` yaml $(tag) == 'package-2018-09' && $(go) output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-03-01/insights ``` ## Python -See configuration in [readme.python.md](./readme.python.md) +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.monitor + package-name: azure-mgmt-monitor + package-version: 0.5.0 + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-monitor/azure/mgmt/monitor +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-monitor +``` ## Java From 922f781c32d2e3ffea94e1b8d3a63e470da676ba Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Tue, 11 Sep 2018 11:05:59 -0700 Subject: [PATCH 04/12] -Remove validation section that is not necessary --- specification/monitor/data-plane/readme.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md index a7bf9c842aa8..15363a847f18 100644 --- a/specification/monitor/data-plane/readme.md +++ b/specification/monitor/data-plane/readme.md @@ -144,14 +144,4 @@ namespace: com.microsoft.azure.management.monitor license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-monitor -``` - -# Validation - -## Suppression - -``` yaml -directive: - - suppress: R3016 # DefinitionsPropertiesNamesCamelCase (to suppress the error due to odata.type) - reason: The feature (polymorphic types) is in the process of deprecation and fixing this will require changes in the backend. -``` +``` \ No newline at end of file From 8ba253885483eaba7f6edad57651d8193ab3c15d Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Tue, 11 Sep 2018 12:50:43 -0700 Subject: [PATCH 05/12] -Address review comments & fix several copy paste mistakes to use sensible names instead --- specification/monitor/data-plane/readme.md | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md index 15363a847f18..6bc6a48fd4dc 100644 --- a/specification/monitor/data-plane/readme.md +++ b/specification/monitor/data-plane/readme.md @@ -27,18 +27,18 @@ These are the global settings for the MonitorClient API. ``` yaml title: MonitorClient description: Monitor Management Client -openapi-type: arm +openapi-type: data-plane -tag: package-2018-09 +tag: package-2018-09-preview ``` -### Tag: package-2018-09 +### Tag: package-2018-09-preview -These settings apply only when `--tag=package-2018-09` is specified on the command line. +These settings apply only when `--tag=package-2018-09-preview` is specified on the command line. -``` yaml $(tag) == 'package-2018-09' +``` yaml $(tag) == 'package-2018-09-preview' input-file: -- data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json +- preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json ``` # Code Generation @@ -57,7 +57,7 @@ swagger-to-sdk: - repo: azure-sdk-for-node - repo: azure-sdk-for-ruby after_scripts: - - bundle install && rake arm:regen_all_profiles['azure_mgmt_monitor'] + - bundle install && rake arm:regen_all_profiles['azure_monitor_metrics'] ``` @@ -71,8 +71,8 @@ csharp: azure-arm: true payload-flattening-threshold: 1 license-header: MICROSOFT_MIT_NO_VERSION - namespace: Microsoft.Azure.Management.Monitor - output-folder: $(csharp-sdks-folder)/Monitor/Management.Monitor/Generated + namespace: Microsoft.Azure.Monitor.Metrics + output-folder: $(csharp-sdks-folder)/Monitor/Azure.Metrics/Generated clear-output-folder: true ``` @@ -84,7 +84,7 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: insights + namespace: azuremonitor clear-output-folder: true ``` @@ -92,16 +92,16 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2018-09 + - tag: package-2018-09-preview ``` -### Tag: package-2018-09 and go +### Tag: package-2018-09-preview and go -These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. +These settings apply only when `--tag=package-2018-09-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2018-09' && $(go) -output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-03-01/insights +``` yaml $(tag) == 'package-2018-09-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/monitor/2018-09-01-preview/monitor ``` ## Python @@ -116,20 +116,20 @@ python: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION payload-flattening-threshold: 2 - namespace: azure.mgmt.monitor - package-name: azure-mgmt-monitor + namespace: microsoft.azure.monitor.metrics + package-name: microsoft.azure.monitor.metrics package-version: 0.5.0 clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'update' python: no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt-monitor/azure/mgmt/monitor + output-folder: $(python-sdks-folder)/azure-monitor/azure/dataplane/monitor ``` ``` yaml $(python) && $(python-mode) == 'create' python: basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-mgmt-monitor + output-folder: $(python-sdks-folder)/azure-monitor/azure/dataplane/monitor ``` ## Java @@ -140,8 +140,8 @@ Please also specify `--azure-libraries-for-java-folder= Date: Tue, 11 Sep 2018 16:04:08 -0700 Subject: [PATCH 06/12] Address the PR comments - Fix the readme.md naming incompatibilities - Remove the c#-ish namespace prefix --- .../azureMonitorCustomMetricsIngestionApi.json | 18 +++++++++--------- specification/monitor/data-plane/readme.md | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json index 57a95366ff5e..f8103e54bc64 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json @@ -90,7 +90,7 @@ "description": "The Azure metrics document json payload", "required": true, "schema": { - "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsDocument" + "$ref": "#/definitions/AzureMetricsDocument" } } ], @@ -108,7 +108,7 @@ } } }, - "x-ms-example": { + "x-ms-examples": { "Post azure metrics for cows sold with related metadata as dimensions": { "$ref": "./examples/AzureMetrics_IngestMetrics.json" } @@ -117,7 +117,7 @@ } }, "definitions": { - "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsDocument": { + "AzureMetricsDocument": { "type": "object", "properties": { "Time": { @@ -125,19 +125,19 @@ "type": "string" }, "Data": { - "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsData" + "$ref": "#/definitions/AzureMetricsData" } } }, - "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsData": { + "AzureMetricsData": { "type": "object", "properties": { "BaseData": { - "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsBaseData" + "$ref": "#/definitions/AzureMetricsBaseData" } } }, - "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureMetricsBaseData": { + "AzureMetricsBaseData": { "type": "object", "properties": { "Metric": { @@ -159,12 +159,12 @@ "description": "Gets or sets the list of time series data for the metric (one per unique dimension combination)", "type": "array", "items": { - "$ref": "#/definitions/Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureTimeSeriesData" + "$ref": "#/definitions/AzureTimeSeriesData" } } } }, - "Microsoft.Azure.Monitoring.Ingestion.Gateway.Models.AzureTimeSeriesData": { + "AzureTimeSeriesData": { "type": "object", "properties": { "DimValues": { diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md index 6bc6a48fd4dc..fd0bb6a7eb81 100644 --- a/specification/monitor/data-plane/readme.md +++ b/specification/monitor/data-plane/readme.md @@ -84,7 +84,7 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: azuremonitor + namespace: monitor clear-output-folder: true ``` @@ -116,20 +116,20 @@ python: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION payload-flattening-threshold: 2 - namespace: microsoft.azure.monitor.metrics - package-name: microsoft.azure.monitor.metrics + namespace: azure.monitor + package-name: azure-monitor package-version: 0.5.0 clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'update' python: no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-monitor/azure/dataplane/monitor + output-folder: $(python-sdks-folder)/azure-monitor/azure/monitor ``` ``` yaml $(python) && $(python-mode) == 'create' python: basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-monitor/azure/dataplane/monitor + output-folder: $(python-sdks-folder)/azure-monitor/azure/monitor ``` ## Java From e53b30d7f12dbc48a25d36a44c425e502b33c598 Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Wed, 12 Sep 2018 12:35:37 -0700 Subject: [PATCH 07/12] -Remove assembly namespace prefix in few other places -Rename bunch of properties to follow camel case naming -Update the enum types to have the "x-ms-enum" part of the json --- ...azureMonitorCustomMetricsIngestionApi.json | 1036 +++++++++-------- 1 file changed, 574 insertions(+), 462 deletions(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json index f8103e54bc64..96e3b0ad20fa 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json @@ -98,13 +98,13 @@ "200": { "description": "The azure metrics publish succeeded", "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + "$ref": "#/definitions/ObjectResult" } }, "default": { "description": "An unexpected error from the server. See response object for the reason", "schema": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.ObjectResult" + "$ref": "#/definitions/ObjectResult" } } }, @@ -120,11 +120,11 @@ "AzureMetricsDocument": { "type": "object", "properties": { - "Time": { + "time": { "description": "Gets or sets Time property (in ISO 8601 format)", "type": "string" }, - "Data": { + "data": { "$ref": "#/definitions/AzureMetricsData" } } @@ -132,7 +132,7 @@ "AzureMetricsData": { "type": "object", "properties": { - "BaseData": { + "baseData": { "$ref": "#/definitions/AzureMetricsBaseData" } } @@ -140,22 +140,22 @@ "AzureMetricsBaseData": { "type": "object", "properties": { - "Metric": { + "metric": { "description": "Gets or sets the Metric name", "type": "string" }, - "Namespace": { + "namespace": { "description": "Gets or sets the Metric namespace", "type": "string" }, - "DimNames": { + "dimNames": { "description": "Gets or sets the list of dimension names (optional)", "type": "array", "items": { "type": "string" } }, - "Series": { + "series": { "description": "Gets or sets the list of time series data for the metric (one per unique dimension combination)", "type": "array", "items": { @@ -167,67 +167,67 @@ "AzureTimeSeriesData": { "type": "object", "properties": { - "DimValues": { + "dimValues": { "description": "Gets or sets dimension values", "type": "array", "items": { "type": "string" } }, - "Min": { + "min": { "format": "double", "description": "Gets or sets Min value", "type": "number" }, - "Max": { + "max": { "format": "double", "description": "Gets or sets Max value", "type": "number" }, - "Sum": { + "sum": { "format": "double", "description": "Gets or sets Sum value", "type": "number" }, - "Count": { + "count": { "format": "int32", "description": "Gets or sets Count value", "type": "integer" } } }, - "Microsoft.AspNetCore.Mvc.ObjectResult": { + "ObjectResult": { "type": "object", "properties": { - "Value": { + "value": { "type": "object" }, - "Formatters": { + "formatters": { "type": "array", "items": { - "$ref": "#/definitions/Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter" + "$ref": "#/definitions/OutputFormatter" } }, - "ContentTypes": { + "contentTypes": { "type": "array", "items": { } }, - "DeclaredType": { + "declaredType": { "$ref": "#/definitions/System.Type" }, - "StatusCode": { + "statusCode": { "format": "int32", "type": "integer" } } }, - "Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter": { + "OutputFormatter": { "type": "object" }, "System.Type": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -239,56 +239,60 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "DeclaringMethod": { - "$ref": "#/definitions/System.Reflection.MethodBase" + "declaringMethod": { + "$ref": "#/definitions/MethodBase" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "StructLayoutAttribute": { - "$ref": "#/definitions/System.Runtime.InteropServices.StructLayoutAttribute" + "structLayoutAttribute": { + "$ref": "#/definitions/structLayoutAttribute" }, - "GUID": { + "guid": { "format": "uuid", "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, - "DefaultBinder": { - "$ref": "#/definitions/System.Reflection.Binder" + "defaultBinder": { + "$ref": "#/definitions/Binder" }, - "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "module": { + "$ref": "#/definitions/Module" }, - "Assembly": { - "$ref": "#/definitions/System.Reflection.Assembly" + "assembly": { + "$ref": "#/definitions/Assembly" }, - "TypeHandle": { + "typeHandle": { "$ref": "#/definitions/System.RuntimeTypeHandle" }, - "FullName": { + "fullName": { "type": "string" }, - "Namespace": { + "namespace": { "type": "string" }, - "AssemblyQualifiedName": { + "assemblyQualifiedName": { "type": "string" }, - "BaseType": { + "baseType": { "$ref": "#/definitions/System.Type" }, - "TypeInitializer": { - "$ref": "#/definitions/System.Reflection.ConstructorInfo" + "typeInitializer": { + "$ref": "#/definitions/ConstructorInfo" }, - "IsNested": { + "isNested": { "type": "boolean" }, - "Attributes": { + "attributes": { "enum": [ "NotPublic", "AutoLayout", @@ -323,9 +327,13 @@ "BeforeFieldInit", "CustomFormatMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "GenericParameterAttributes": { + "genericParameterattributes": { "enum": [ "None", "Covariant", @@ -336,160 +344,164 @@ "DefaultConstructorConstraint", "SpecialConstraintMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "genericParameterattributes", + "modelAsString": false + } }, - "IsVisible": { + "isVisible": { "type": "boolean" }, - "IsNotPublic": { + "isNotPublic": { "type": "boolean" }, - "IsPublic": { + "isPublic": { "type": "boolean" }, - "IsNestedPublic": { + "isNestedPublic": { "type": "boolean" }, - "IsNestedPrivate": { + "isNestedPrivate": { "type": "boolean" }, - "IsNestedFamily": { + "isNestedFamily": { "type": "boolean" }, - "IsNestedAssembly": { + "isNestedAssembly": { "type": "boolean" }, - "IsNestedFamANDAssem": { + "isNestedFamANDAssem": { "type": "boolean" }, - "IsNestedFamORAssem": { + "isNestedFamORAssem": { "type": "boolean" }, - "IsAutoLayout": { + "isAutoLayout": { "type": "boolean" }, - "IsLayoutSequential": { + "isLayoutSequential": { "type": "boolean" }, - "IsExplicitLayout": { + "isExplicitLayout": { "type": "boolean" }, - "IsClass": { + "isClass": { "type": "boolean" }, - "IsInterface": { + "isInterface": { "type": "boolean" }, - "IsValueType": { + "isValueType": { "type": "boolean" }, - "IsAbstract": { + "isAbstract": { "type": "boolean" }, - "IsSealed": { + "isSealed": { "type": "boolean" }, - "IsEnum": { + "isEnum": { "type": "boolean" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsImport": { + "isImport": { "type": "boolean" }, - "IsSerializable": { + "isSerializable": { "type": "boolean" }, - "IsAnsiClass": { + "isAnsiClass": { "type": "boolean" }, - "IsUnicodeClass": { + "isUnicodeClass": { "type": "boolean" }, - "IsAutoClass": { + "isAutoClass": { "type": "boolean" }, - "IsArray": { + "isArray": { "type": "boolean" }, - "IsGenericType": { + "isGenericType": { "type": "boolean" }, - "IsGenericTypeDefinition": { + "isGenericTypeDefinition": { "type": "boolean" }, - "IsConstructedGenericType": { + "isConstructedGenericType": { "type": "boolean" }, - "IsGenericParameter": { + "isGenericParameter": { "type": "boolean" }, - "GenericParameterPosition": { + "genericParameterPosition": { "format": "int32", "type": "integer" }, - "ContainsGenericParameters": { + "containsGenericParameters": { "type": "boolean" }, - "IsByRef": { + "isByRef": { "type": "boolean" }, - "IsPointer": { + "isPointer": { "type": "boolean" }, - "IsPrimitive": { + "isPrimitive": { "type": "boolean" }, - "IsCOMObject": { + "isCOMObject": { "type": "boolean" }, - "HasElementType": { + "hasElementType": { "type": "boolean" }, - "IsContextful": { + "isContextful": { "type": "boolean" }, - "IsMarshalByRef": { + "isMarshalByRef": { "type": "boolean" }, - "GenericTypeArguments": { + "genericTypeArguments": { "type": "array", "items": { "$ref": "#/definitions/System.Type" } }, - "IsSecurityCritical": { + "isSecurityCritical": { "type": "boolean" }, - "IsSecuritySafeCritical": { + "isSecuritySafeCritical": { "type": "boolean" }, - "IsSecurityTransparent": { + "isSecurityTransparent": { "type": "boolean" }, - "UnderlyingSystemType": { + "underlyingSystemType": { "$ref": "#/definitions/System.Type" }, - "Name": { + "name": { "type": "string" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" } } }, - "System.Reflection.MethodBase": { + "MethodBase": { "type": "object", "properties": { - "MethodImplementationFlags": { + "methodImplementationFlags": { "enum": [ "Managed", "IL", @@ -508,12 +520,16 @@ "InternalCall", "MaxMethodImplVal" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "methodImplementationFlags", + "modelAsString": false + } }, - "MethodHandle": { + "methodHandle": { "$ref": "#/definitions/System.RuntimeMethodHandle" }, - "Attributes": { + "attributes": { "enum": [ "ReuseSlot", "PrivateScope", @@ -540,9 +556,13 @@ "RequireSecObject", "ReservedMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "CallingConvention": { + "callingConvention": { "enum": [ "Standard", "VarArgs", @@ -550,66 +570,70 @@ "HasThis", "ExplicitThis" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "callingConvention", + "modelAsString": false + } }, - "IsGenericMethodDefinition": { + "isGenericMethodDefinition": { "type": "boolean" }, - "ContainsGenericParameters": { + "containsGenericParameters": { "type": "boolean" }, - "IsGenericMethod": { + "isGenericMethod": { "type": "boolean" }, - "IsSecurityCritical": { + "isSecurityCritical": { "type": "boolean" }, - "IsSecuritySafeCritical": { + "isSecuritySafeCritical": { "type": "boolean" }, - "IsSecurityTransparent": { + "isSecurityTransparent": { "type": "boolean" }, - "IsPublic": { + "isPublic": { "type": "boolean" }, - "IsPrivate": { + "isPrivate": { "type": "boolean" }, - "IsFamily": { + "isFamily": { "type": "boolean" }, - "IsAssembly": { + "isAssembly": { "type": "boolean" }, - "IsFamilyAndAssembly": { + "isFamilyAndAssembly": { "type": "boolean" }, - "IsFamilyOrAssembly": { + "isFamilyOrAssembly": { "type": "boolean" }, - "IsStatic": { + "isStatic": { "type": "boolean" }, - "IsFinal": { + "isFinal": { "type": "boolean" }, - "IsVirtual": { + "isVirtual": { "type": "boolean" }, - "IsHideBySig": { + "isHideBySig": { "type": "boolean" }, - "IsAbstract": { + "isAbstract": { "type": "boolean" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsConstructor": { + "isConstructor": { "type": "boolean" }, - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -621,29 +645,33 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "$ref": "#/definitions/Module" } } }, @@ -664,33 +692,33 @@ } } }, - "System.Reflection.CustomAttributeData": { + "CustomAttributeData": { "type": "object", "properties": { "AttributeType": { "$ref": "#/definitions/System.Type" }, "Constructor": { - "$ref": "#/definitions/System.Reflection.ConstructorInfo" + "$ref": "#/definitions/ConstructorInfo" }, "ConstructorArguments": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeTypedArgument" + "$ref": "#/definitions/CustomAttributeTypedArgument" } }, "NamedArguments": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeNamedArgument" + "$ref": "#/definitions/CustomAttributeNamedArgument" } } } }, - "System.Reflection.ConstructorInfo": { + "ConstructorInfo": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -702,9 +730,13 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "MethodImplementationFlags": { + "methodImplementationFlags": { "enum": [ "Managed", "IL", @@ -723,12 +755,16 @@ "InternalCall", "MaxMethodImplVal" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "methodImplementationFlags", + "modelAsString": false + } }, - "MethodHandle": { + "methodHandle": { "$ref": "#/definitions/System.RuntimeMethodHandle" }, - "Attributes": { + "attributes": { "enum": [ "ReuseSlot", "PrivateScope", @@ -755,9 +791,13 @@ "RequireSecObject", "ReservedMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "CallingConvention": { + "callingConvention": { "enum": [ "Standard", "VarArgs", @@ -765,214 +805,222 @@ "HasThis", "ExplicitThis" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "callingConvention", + "modelAsString": false + } }, - "IsGenericMethodDefinition": { + "isGenericMethodDefinition": { "type": "boolean" }, - "ContainsGenericParameters": { + "containsGenericParameters": { "type": "boolean" }, - "IsGenericMethod": { + "isGenericMethod": { "type": "boolean" }, - "IsSecurityCritical": { + "isSecurityCritical": { "type": "boolean" }, - "IsSecuritySafeCritical": { + "isSecuritySafeCritical": { "type": "boolean" }, - "IsSecurityTransparent": { + "isSecurityTransparent": { "type": "boolean" }, - "IsPublic": { + "isPublic": { "type": "boolean" }, - "IsPrivate": { + "isPrivate": { "type": "boolean" }, - "IsFamily": { + "isFamily": { "type": "boolean" }, - "IsAssembly": { + "isAssembly": { "type": "boolean" }, - "IsFamilyAndAssembly": { + "isFamilyAndAssembly": { "type": "boolean" }, - "IsFamilyOrAssembly": { + "isFamilyOrAssembly": { "type": "boolean" }, - "IsStatic": { + "isStatic": { "type": "boolean" }, - "IsFinal": { + "isFinal": { "type": "boolean" }, - "IsVirtual": { + "isVirtual": { "type": "boolean" }, - "IsHideBySig": { + "isHideBySig": { "type": "boolean" }, - "IsAbstract": { + "isAbstract": { "type": "boolean" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsConstructor": { + "isConstructor": { "type": "boolean" }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "$ref": "#/definitions/Module" } } }, - "System.Reflection.Module": { + "Module": { "type": "object", "properties": { - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MDStreamVersion": { + "mdStreamVersion": { "format": "int32", "type": "integer" }, - "FullyQualifiedName": { + "fullyQualifiedName": { "type": "string" }, - "ModuleVersionId": { + "moduleVersionId": { "format": "uuid", "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, - "ScopeName": { + "scopeName": { "type": "string" }, - "Name": { + "name": { "type": "string" }, - "Assembly": { - "$ref": "#/definitions/System.Reflection.Assembly" + "assembly": { + "$ref": "#/definitions/Assembly" }, - "ModuleHandle": { + "moduleHandle": { "$ref": "#/definitions/System.ModuleHandle" } } }, - "System.Reflection.Assembly": { + "Assembly": { "type": "object", "properties": { - "CodeBase": { + "codeBase": { "type": "string" }, - "EscapedCodeBase": { + "escapedCodeBase": { "type": "string" }, - "FullName": { + "fullName": { "type": "string" }, - "EntryPoint": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "entryPoint": { + "$ref": "#/definitions/MethodInfo" }, - "ExportedTypes": { + "exportedTypes": { "type": "array", "items": { "$ref": "#/definitions/System.Type" } }, - "DefinedTypes": { + "definedTypes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.TypeInfo" + "$ref": "#/definitions/typeInfo" } }, - "Evidence": { + "evidence": { "type": "array", "items": { } }, - "PermissionSet": { + "permissionSet": { "type": "array", "items": { } }, - "IsFullyTrusted": { + "isFullyTrusted": { "type": "boolean" }, - "SecurityRuleSet": { + "securityRuleSet": { "enum": [ "None", "Level1", "Level2" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "AccountType", + "modelAsString": false + } }, - "ManifestModule": { - "$ref": "#/definitions/System.Reflection.Module" + "manifestModule": { + "$ref": "#/definitions/Module" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "ReflectionOnly": { + "reflectionOnly": { "type": "boolean" }, - "Modules": { + "modules": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.Module" + "$ref": "#/definitions/Module" } }, - "Location": { + "location": { "type": "string" }, - "ImageRuntimeVersion": { + "imageRuntimeVersion": { "type": "string" }, - "GlobalAssemblyCache": { + "globalAssemblyCache": { "type": "boolean" }, - "HostContext": { + "hostContext": { "format": "int64", "type": "integer" }, - "IsDynamic": { + "isDynamic": { "type": "boolean" } } }, - "System.Reflection.MethodInfo": { + "MethodInfo": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -984,18 +1032,22 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "ReturnType": { + "returnType": { "$ref": "#/definitions/System.Type" }, - "ReturnParameter": { - "$ref": "#/definitions/System.Reflection.ParameterInfo" + "returnParameter": { + "$ref": "#/definitions/ParameterInfo" }, - "ReturnTypeCustomAttributes": { - "$ref": "#/definitions/System.Reflection.ICustomAttributeProvider" + "returnTypecustomattributes": { + "$ref": "#/definitions/customAttributeProvider" }, - "MethodImplementationFlags": { + "methodImplementationFlags": { "enum": [ "Managed", "IL", @@ -1014,12 +1066,16 @@ "InternalCall", "MaxMethodImplVal" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "methodImplementationFlags", + "modelAsString": false + } }, - "MethodHandle": { + "methodHandle": { "$ref": "#/definitions/System.RuntimeMethodHandle" }, - "Attributes": { + "attributes": { "enum": [ "ReuseSlot", "PrivateScope", @@ -1046,9 +1102,13 @@ "RequireSecObject", "ReservedMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "CallingConvention": { + "callingConvention": { "enum": [ "Standard", "VarArgs", @@ -1056,112 +1116,116 @@ "HasThis", "ExplicitThis" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "callingConvention", + "modelAsString": false + } }, - "IsGenericMethodDefinition": { + "isGenericMethodDefinition": { "type": "boolean" }, - "ContainsGenericParameters": { + "containsGenericParameters": { "type": "boolean" }, - "IsGenericMethod": { + "isGenericMethod": { "type": "boolean" }, - "IsSecurityCritical": { + "isSecurityCritical": { "type": "boolean" }, - "IsSecuritySafeCritical": { + "isSecuritySafeCritical": { "type": "boolean" }, - "IsSecurityTransparent": { + "isSecurityTransparent": { "type": "boolean" }, - "IsPublic": { + "isPublic": { "type": "boolean" }, - "IsPrivate": { + "isPrivate": { "type": "boolean" }, - "IsFamily": { + "isFamily": { "type": "boolean" }, - "IsAssembly": { + "isAssembly": { "type": "boolean" }, - "IsFamilyAndAssembly": { + "isFamilyAndAssembly": { "type": "boolean" }, - "IsFamilyOrAssembly": { + "isFamilyOrAssembly": { "type": "boolean" }, - "IsStatic": { + "isStatic": { "type": "boolean" }, - "IsFinal": { + "isFinal": { "type": "boolean" }, - "IsVirtual": { + "isVirtual": { "type": "boolean" }, - "IsHideBySig": { + "isHideBySig": { "type": "boolean" }, - "IsAbstract": { + "isAbstract": { "type": "boolean" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsConstructor": { + "isConstructor": { "type": "boolean" }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, - "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "module": { + "$ref": "#/definitions/Module" } } }, - "System.Reflection.ParameterInfo": { + "ParameterInfo": { "type": "object", "properties": { - "ParameterType": { + "parameterType": { "$ref": "#/definitions/System.Type" }, - "Name": { + "name": { "type": "string" }, - "HasDefaultValue": { + "hasDefaultValue": { "type": "boolean" }, - "DefaultValue": { + "defaultValue": { "type": "object" }, - "RawDefaultValue": { + "rawDefaultValue": { "type": "object" }, - "Position": { + "position": { "format": "int32", "type": "integer" }, - "Attributes": { + "attributes": { "enum": [ "None", "In", @@ -1175,42 +1239,46 @@ "Reserved4", "ReservedMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "Member": { - "$ref": "#/definitions/System.Reflection.MemberInfo" + "member": { + "$ref": "#/definitions/MemberInfo" }, - "IsIn": { + "isIn": { "type": "boolean" }, - "IsOut": { + "isOut": { "type": "boolean" }, - "IsLcid": { + "isLcid": { "type": "boolean" }, - "IsRetval": { + "isRetval": { "type": "boolean" }, - "IsOptional": { + "isOptional": { "type": "boolean" }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } } } }, - "System.Reflection.MemberInfo": { + "MemberInfo": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -1222,93 +1290,97 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "$ref": "#/definitions/Module" } } }, - "System.Reflection.ICustomAttributeProvider": { + "customAttributeProvider": { "type": "object" }, - "System.Reflection.TypeInfo": { + "typeInfo": { "type": "object", "properties": { - "GenericTypeParameters": { + "genericTypeParameters": { "type": "array", "items": { "$ref": "#/definitions/System.Type" } }, - "DeclaredConstructors": { + "declaredConstructors": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.ConstructorInfo" + "$ref": "#/definitions/ConstructorInfo" } }, - "DeclaredEvents": { + "declaredEvents": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.EventInfo" + "$ref": "#/definitions/EventInfo" } }, - "DeclaredFields": { + "declaredFields": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.FieldInfo" + "$ref": "#/definitions/FieldInfo" } }, - "DeclaredMembers": { + "declaredMembers": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.MemberInfo" + "$ref": "#/definitions/MemberInfo" } }, - "DeclaredMethods": { + "declaredMethods": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "$ref": "#/definitions/MethodInfo" } }, - "DeclaredNestedTypes": { + "declaredNestedTypes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.TypeInfo" + "$ref": "#/definitions/typeInfo" } }, - "DeclaredProperties": { + "declaredProperties": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.PropertyInfo" + "$ref": "#/definitions/PropertyInfo" } }, - "ImplementedInterfaces": { + "implementedInterfaces": { "type": "array", "items": { "$ref": "#/definitions/System.Type" } }, - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -1320,53 +1392,57 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "DeclaringMethod": { - "$ref": "#/definitions/System.Reflection.MethodBase" + "declaringMethod": { + "$ref": "#/definitions/MethodBase" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "StructLayoutAttribute": { - "$ref": "#/definitions/System.Runtime.InteropServices.StructLayoutAttribute" + "structLayoutAttribute": { + "$ref": "#/definitions/structLayoutAttribute" }, - "GUID": { + "guid": { "format": "uuid", "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, - "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "module": { + "$ref": "#/definitions/Module" }, - "Assembly": { - "$ref": "#/definitions/System.Reflection.Assembly" + "assembly": { + "$ref": "#/definitions/Assembly" }, - "TypeHandle": { + "typeHandle": { "$ref": "#/definitions/System.RuntimeTypeHandle" }, - "FullName": { + "fullName": { "type": "string" }, - "Namespace": { + "namespace": { "type": "string" }, - "AssemblyQualifiedName": { + "assemblyQualifiedName": { "type": "string" }, - "BaseType": { + "baseType": { "$ref": "#/definitions/System.Type" }, - "TypeInitializer": { - "$ref": "#/definitions/System.Reflection.ConstructorInfo" + "typeInitializer": { + "$ref": "#/definitions/ConstructorInfo" }, - "IsNested": { + "isNested": { "type": "boolean" }, - "Attributes": { + "attributes": { "enum": [ "NotPublic", "AutoLayout", @@ -1401,9 +1477,13 @@ "BeforeFieldInit", "CustomFormatMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "GenericParameterAttributes": { + "genericParameterattributes": { "enum": [ "None", "Covariant", @@ -1414,160 +1494,164 @@ "DefaultConstructorConstraint", "SpecialConstraintMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "genericParameterattributes", + "modelAsString": false + } }, - "IsVisible": { + "isVisible": { "type": "boolean" }, - "IsNotPublic": { + "isNotPublic": { "type": "boolean" }, - "IsPublic": { + "isPublic": { "type": "boolean" }, - "IsNestedPublic": { + "isNestedPublic": { "type": "boolean" }, - "IsNestedPrivate": { + "isNestedPrivate": { "type": "boolean" }, - "IsNestedFamily": { + "isNestedFamily": { "type": "boolean" }, - "IsNestedAssembly": { + "isNestedAssembly": { "type": "boolean" }, - "IsNestedFamANDAssem": { + "isNestedFamANDAssem": { "type": "boolean" }, - "IsNestedFamORAssem": { + "isNestedFamORAssem": { "type": "boolean" }, - "IsAutoLayout": { + "isAutoLayout": { "type": "boolean" }, - "IsLayoutSequential": { + "isLayoutSequential": { "type": "boolean" }, - "IsExplicitLayout": { + "isExplicitLayout": { "type": "boolean" }, - "IsClass": { + "isClass": { "type": "boolean" }, - "IsInterface": { + "isInterface": { "type": "boolean" }, - "IsValueType": { + "isValueType": { "type": "boolean" }, - "IsAbstract": { + "isAbstract": { "type": "boolean" }, - "IsSealed": { + "isSealed": { "type": "boolean" }, - "IsEnum": { + "isEnum": { "type": "boolean" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsImport": { + "isImport": { "type": "boolean" }, - "IsSerializable": { + "isSerializable": { "type": "boolean" }, - "IsAnsiClass": { + "isAnsiClass": { "type": "boolean" }, - "IsUnicodeClass": { + "isUnicodeClass": { "type": "boolean" }, - "IsAutoClass": { + "isAutoClass": { "type": "boolean" }, - "IsArray": { + "isArray": { "type": "boolean" }, - "IsGenericType": { + "isGenericType": { "type": "boolean" }, - "IsGenericTypeDefinition": { + "isGenericTypeDefinition": { "type": "boolean" }, - "IsConstructedGenericType": { + "isConstructedGenericType": { "type": "boolean" }, - "IsGenericParameter": { + "isGenericParameter": { "type": "boolean" }, - "GenericParameterPosition": { + "genericParameterPosition": { "format": "int32", "type": "integer" }, - "ContainsGenericParameters": { + "containsGenericParameters": { "type": "boolean" }, - "IsByRef": { + "isByRef": { "type": "boolean" }, - "IsPointer": { + "isPointer": { "type": "boolean" }, - "IsPrimitive": { + "isPrimitive": { "type": "boolean" }, - "IsCOMObject": { + "isCOMObject": { "type": "boolean" }, - "HasElementType": { + "hasElementType": { "type": "boolean" }, - "IsContextful": { + "isContextful": { "type": "boolean" }, - "IsMarshalByRef": { + "isMarshalByRef": { "type": "boolean" }, - "GenericTypeArguments": { + "genericTypeArguments": { "type": "array", "items": { "$ref": "#/definitions/System.Type" } }, - "IsSecurityCritical": { + "isSecurityCritical": { "type": "boolean" }, - "IsSecuritySafeCritical": { + "isSecuritySafeCritical": { "type": "boolean" }, - "IsSecurityTransparent": { + "isSecurityTransparent": { "type": "boolean" }, - "UnderlyingSystemType": { + "underlyingSystemType": { "$ref": "#/definitions/System.Type" }, - "Name": { + "name": { "type": "string" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" } } }, - "System.Reflection.EventInfo": { + "EventInfo": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -1579,63 +1663,71 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "Attributes": { + "attributes": { "enum": [ "None", "SpecialName", "ReservedMask", "RTSpecialName" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "AddMethod": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "addMethod": { + "$ref": "#/definitions/MethodInfo" }, - "RemoveMethod": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "removeMethod": { + "$ref": "#/definitions/MethodInfo" }, - "RaiseMethod": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "raiseMethod": { + "$ref": "#/definitions/MethodInfo" }, - "EventHandlerType": { + "eventHandlerType": { "$ref": "#/definitions/System.Type" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsMulticast": { + "isMulticast": { "type": "boolean" }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, - "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "module": { + "$ref": "#/definitions/Module" } } }, - "System.Reflection.FieldInfo": { + "FieldInfo": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -1647,15 +1739,19 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "FieldHandle": { + "fieldHandle": { "$ref": "#/definitions/System.RuntimeFieldHandle" }, - "FieldType": { + "fieldType": { "$ref": "#/definitions/System.Type" }, - "Attributes": { + "attributes": { "enum": [ "PrivateScope", "Private", @@ -1677,89 +1773,93 @@ "HasDefault", "ReservedMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "IsPublic": { + "isPublic": { "type": "boolean" }, - "IsPrivate": { + "isPrivate": { "type": "boolean" }, - "IsFamily": { + "isFamily": { "type": "boolean" }, - "IsAssembly": { + "isAssembly": { "type": "boolean" }, - "IsFamilyAndAssembly": { + "isFamilyAndAssembly": { "type": "boolean" }, - "IsFamilyOrAssembly": { + "isFamilyOrAssembly": { "type": "boolean" }, - "IsStatic": { + "isStatic": { "type": "boolean" }, - "IsInitOnly": { + "isInitOnly": { "type": "boolean" }, - "IsLiteral": { + "isLiteral": { "type": "boolean" }, - "IsNotSerialized": { + "isNotSerialized": { "type": "boolean" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "IsPinvokeImpl": { + "isPinvokeImpl": { "type": "boolean" }, - "IsSecurityCritical": { + "isSecurityCritical": { "type": "boolean" }, - "IsSecuritySafeCritical": { + "isSecuritySafeCritical": { "type": "boolean" }, - "IsSecurityTransparent": { + "isSecurityTransparent": { "type": "boolean" }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, - "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "module": { + "$ref": "#/definitions/Module" } } }, "System.RuntimeFieldHandle": { "type": "object", "properties": { - "Value": { + "value": { "$ref": "#/definitions/System.IntPtr" } } }, - "System.Reflection.PropertyInfo": { + "PropertyInfo": { "type": "object", "properties": { - "MemberType": { + "memberType": { "enum": [ "Constructor", "Event", @@ -1771,12 +1871,16 @@ "NestedType", "All" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "memberType", + "modelAsString": false + } }, - "PropertyType": { + "propertyType": { "$ref": "#/definitions/System.Type" }, - "Attributes": { + "attributes": { "enum": [ "None", "SpecialName", @@ -1787,59 +1891,67 @@ "Reserved4", "ReservedMask" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "attributes", + "modelAsString": false + } }, - "CanRead": { + "canRead": { "type": "boolean" }, - "CanWrite": { + "canWrite": { "type": "boolean" }, - "GetMethod": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "getMethod": { + "$ref": "#/definitions/MethodInfo" }, - "SetMethod": { - "$ref": "#/definitions/System.Reflection.MethodInfo" + "setMethod": { + "$ref": "#/definitions/MethodInfo" }, - "IsSpecialName": { + "isSpecialName": { "type": "boolean" }, - "Name": { + "name": { "type": "string" }, - "DeclaringType": { + "declaringType": { "$ref": "#/definitions/System.Type" }, - "ReflectedType": { + "reflectedType": { "$ref": "#/definitions/System.Type" }, - "CustomAttributes": { + "customattributes": { "type": "array", "items": { - "$ref": "#/definitions/System.Reflection.CustomAttributeData" + "$ref": "#/definitions/CustomAttributeData" } }, - "MetadataToken": { + "metadataToken": { "format": "int32", "type": "integer" }, - "Module": { - "$ref": "#/definitions/System.Reflection.Module" + "module": { + "$ref": "#/definitions/Module" } } }, - "System.Runtime.InteropServices.StructLayoutAttribute": { + "structLayoutAttribute": { "type": "object", "properties": { - "Value": { + "value": { "enum": [ "Sequential", "Explicit", "Auto" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "value", + "modelAsString": false + } }, - "TypeId": { + "typeId": { "type": "object" } } @@ -1847,7 +1959,7 @@ "System.RuntimeTypeHandle": { "type": "object", "properties": { - "Value": { + "value": { "$ref": "#/definitions/System.IntPtr" } } @@ -1855,41 +1967,41 @@ "System.ModuleHandle": { "type": "object", "properties": { - "MDStreamVersion": { + "mdStreamVersion": { "format": "int32", "type": "integer" } } }, - "System.Reflection.CustomAttributeTypedArgument": { + "CustomAttributeTypedArgument": { "type": "object", "properties": { - "ArgumentType": { + "argumentType": { "$ref": "#/definitions/System.Type" }, - "Value": { + "value": { "type": "object" } } }, - "System.Reflection.CustomAttributeNamedArgument": { + "CustomAttributeNamedArgument": { "type": "object", "properties": { - "MemberInfo": { - "$ref": "#/definitions/System.Reflection.MemberInfo" + "memberInfo": { + "$ref": "#/definitions/MemberInfo" }, - "TypedValue": { - "$ref": "#/definitions/System.Reflection.CustomAttributeTypedArgument" + "typedValue": { + "$ref": "#/definitions/CustomAttributeTypedArgument" }, - "MemberName": { + "memberName": { "type": "string" }, - "IsField": { + "isField": { "type": "boolean" } } }, - "System.Reflection.Binder": { + "Binder": { "type": "object" } } From d4de326a05b3c735f5885cdc05bb5bc210b562c2 Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Wed, 12 Sep 2018 17:37:35 -0700 Subject: [PATCH 08/12] -Fix last batch of ARM Errors -Update path and namespace for Java section --- ...azureMonitorCustomMetricsIngestionApi.json | 26 +++++++++---------- specification/monitor/data-plane/readme.md | 4 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json index 96e3b0ad20fa..5ad5be4c9d5e 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json @@ -371,7 +371,7 @@ "isNestedAssembly": { "type": "boolean" }, - "isNestedFamANDAssem": { + "isNestedFamAndAssem": { "type": "boolean" }, "isNestedFamORAssem": { @@ -453,7 +453,7 @@ "isPrimitive": { "type": "boolean" }, - "isCOMObject": { + "isComObject": { "type": "boolean" }, "hasElementType": { @@ -670,7 +670,7 @@ "format": "int32", "type": "integer" }, - "Module": { + "module": { "$ref": "#/definitions/Module" } } @@ -678,7 +678,7 @@ "System.RuntimeMethodHandle": { "type": "object", "properties": { - "Value": { + "value": { "$ref": "#/definitions/System.IntPtr" } } @@ -686,7 +686,7 @@ "System.IntPtr": { "type": "object", "properties": { - "Size": { + "size": { "format": "int32", "type": "integer" } @@ -695,19 +695,19 @@ "CustomAttributeData": { "type": "object", "properties": { - "AttributeType": { + "attributeType": { "$ref": "#/definitions/System.Type" }, - "Constructor": { + "constructor": { "$ref": "#/definitions/ConstructorInfo" }, - "ConstructorArguments": { + "constructorArguments": { "type": "array", "items": { "$ref": "#/definitions/CustomAttributeTypedArgument" } }, - "NamedArguments": { + "namedArguments": { "type": "array", "items": { "$ref": "#/definitions/CustomAttributeNamedArgument" @@ -887,7 +887,7 @@ "format": "int32", "type": "integer" }, - "Module": { + "module": { "$ref": "#/definitions/Module" } } @@ -1315,7 +1315,7 @@ "format": "int32", "type": "integer" }, - "Module": { + "module": { "$ref": "#/definitions/Module" } } @@ -1521,7 +1521,7 @@ "isNestedAssembly": { "type": "boolean" }, - "isNestedFamANDAssem": { + "isNestedFamAndAssem": { "type": "boolean" }, "isNestedFamORAssem": { @@ -1603,7 +1603,7 @@ "isPrimitive": { "type": "boolean" }, - "isCOMObject": { + "isComObject": { "type": "boolean" }, "hasElementType": { diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md index fd0bb6a7eb81..1b053b2185eb 100644 --- a/specification/monitor/data-plane/readme.md +++ b/specification/monitor/data-plane/readme.md @@ -140,8 +140,8 @@ Please also specify `--azure-libraries-for-java-folder= Date: Thu, 13 Sep 2018 11:35:03 -0700 Subject: [PATCH 09/12] -Drop all the types that recursively came with ObjectResult and use simple object type instead. This should make the swagger spec clean and more easily maintainable in the long run --- ...azureMonitorCustomMetricsIngestionApi.json | 1802 +---------------- 1 file changed, 14 insertions(+), 1788 deletions(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json index 5ad5be4c9d5e..4b2078468da4 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/azureMonitorCustomMetricsIngestionApi.json @@ -98,13 +98,13 @@ "200": { "description": "The azure metrics publish succeeded", "schema": { - "$ref": "#/definitions/ObjectResult" + "$ref": "#/definitions/AzureMetricsResult" } }, "default": { "description": "An unexpected error from the server. See response object for the reason", "schema": { - "$ref": "#/definitions/ObjectResult" + "$ref": "#/definitions/AzureMetricsResult" } } }, @@ -196,1813 +196,39 @@ } } }, - "ObjectResult": { + "AzureMetricsResult": { "type": "object", "properties": { - "value": { - "type": "object" - }, - "formatters": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFormatter" - } - }, - "contentTypes": { - "type": "array", - "items": { } - }, - "declaredType": { - "$ref": "#/definitions/System.Type" - }, "statusCode": { "format": "int32", + "description": "Http status code response ", "type": "integer" - } - } - }, - "OutputFormatter": { - "type": "object" - }, - "System.Type": { - "type": "object", - "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "declaringMethod": { - "$ref": "#/definitions/MethodBase" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "structLayoutAttribute": { - "$ref": "#/definitions/structLayoutAttribute" - }, - "guid": { - "format": "uuid", - "type": "string", - "example": "00000000-0000-0000-0000-000000000000" - }, - "defaultBinder": { - "$ref": "#/definitions/Binder" - }, - "module": { - "$ref": "#/definitions/Module" - }, - "assembly": { - "$ref": "#/definitions/Assembly" - }, - "typeHandle": { - "$ref": "#/definitions/System.RuntimeTypeHandle" - }, - "fullName": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "assemblyQualifiedName": { - "type": "string" - }, - "baseType": { - "$ref": "#/definitions/System.Type" - }, - "typeInitializer": { - "$ref": "#/definitions/ConstructorInfo" - }, - "isNested": { - "type": "boolean" - }, - "attributes": { - "enum": [ - "NotPublic", - "AutoLayout", - "AnsiClass", - "Class", - "Public", - "NestedPublic", - "NestedPrivate", - "NestedFamily", - "NestedAssembly", - "NestedFamANDAssem", - "NestedFamORAssem", - "VisibilityMask", - "SequentialLayout", - "ExplicitLayout", - "LayoutMask", - "Interface", - "ClassSemanticsMask", - "Abstract", - "Sealed", - "SpecialName", - "RTSpecialName", - "Import", - "Serializable", - "WindowsRuntime", - "UnicodeClass", - "AutoClass", - "StringFormatMask", - "CustomFormatClass", - "HasSecurity", - "ReservedMask", - "BeforeFieldInit", - "CustomFormatMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "genericParameterattributes": { - "enum": [ - "None", - "Covariant", - "Contravariant", - "VarianceMask", - "ReferenceTypeConstraint", - "NotNullableValueTypeConstraint", - "DefaultConstructorConstraint", - "SpecialConstraintMask" - ], - "type": "string", - "x-ms-enum": { - "name": "genericParameterattributes", - "modelAsString": false - } - }, - "isVisible": { - "type": "boolean" - }, - "isNotPublic": { - "type": "boolean" - }, - "isPublic": { - "type": "boolean" - }, - "isNestedPublic": { - "type": "boolean" - }, - "isNestedPrivate": { - "type": "boolean" - }, - "isNestedFamily": { - "type": "boolean" - }, - "isNestedAssembly": { - "type": "boolean" - }, - "isNestedFamAndAssem": { - "type": "boolean" - }, - "isNestedFamORAssem": { - "type": "boolean" - }, - "isAutoLayout": { - "type": "boolean" - }, - "isLayoutSequential": { - "type": "boolean" - }, - "isExplicitLayout": { - "type": "boolean" - }, - "isClass": { - "type": "boolean" - }, - "isInterface": { - "type": "boolean" - }, - "isValueType": { - "type": "boolean" - }, - "isAbstract": { - "type": "boolean" - }, - "isSealed": { - "type": "boolean" - }, - "isEnum": { - "type": "boolean" - }, - "isSpecialName": { - "type": "boolean" - }, - "isImport": { - "type": "boolean" - }, - "isSerializable": { - "type": "boolean" - }, - "isAnsiClass": { - "type": "boolean" - }, - "isUnicodeClass": { - "type": "boolean" - }, - "isAutoClass": { - "type": "boolean" - }, - "isArray": { - "type": "boolean" - }, - "isGenericType": { - "type": "boolean" - }, - "isGenericTypeDefinition": { - "type": "boolean" - }, - "isConstructedGenericType": { - "type": "boolean" - }, - "isGenericParameter": { - "type": "boolean" - }, - "genericParameterPosition": { - "format": "int32", - "type": "integer" - }, - "containsGenericParameters": { - "type": "boolean" - }, - "isByRef": { - "type": "boolean" - }, - "isPointer": { - "type": "boolean" - }, - "isPrimitive": { - "type": "boolean" - }, - "isComObject": { - "type": "boolean" - }, - "hasElementType": { - "type": "boolean" - }, - "isContextful": { - "type": "boolean" - }, - "isMarshalByRef": { - "type": "boolean" - }, - "genericTypeArguments": { - "type": "array", - "items": { - "$ref": "#/definitions/System.Type" - } - }, - "isSecurityCritical": { - "type": "boolean" - }, - "isSecuritySafeCritical": { - "type": "boolean" - }, - "isSecurityTransparent": { - "type": "boolean" - }, - "underlyingSystemType": { - "$ref": "#/definitions/System.Type" - }, - "name": { - "type": "string" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - } - } - }, - "MethodBase": { - "type": "object", - "properties": { - "methodImplementationFlags": { - "enum": [ - "Managed", - "IL", - "Native", - "OPTIL", - "Runtime", - "CodeTypeMask", - "Unmanaged", - "ManagedMask", - "NoInlining", - "ForwardRef", - "Synchronized", - "NoOptimization", - "PreserveSig", - "AggressiveInlining", - "InternalCall", - "MaxMethodImplVal" - ], - "type": "string", - "x-ms-enum": { - "name": "methodImplementationFlags", - "modelAsString": false - } - }, - "methodHandle": { - "$ref": "#/definitions/System.RuntimeMethodHandle" - }, - "attributes": { - "enum": [ - "ReuseSlot", - "PrivateScope", - "Private", - "FamANDAssem", - "Assembly", - "Family", - "FamORAssem", - "Public", - "MemberAccessMask", - "UnmanagedExport", - "Static", - "Final", - "Virtual", - "HideBySig", - "NewSlot", - "VtableLayoutMask", - "CheckAccessOnOverride", - "Abstract", - "SpecialName", - "RTSpecialName", - "PinvokeImpl", - "HasSecurity", - "RequireSecObject", - "ReservedMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "callingConvention": { - "enum": [ - "Standard", - "VarArgs", - "Any", - "HasThis", - "ExplicitThis" - ], - "type": "string", - "x-ms-enum": { - "name": "callingConvention", - "modelAsString": false - } - }, - "isGenericMethodDefinition": { - "type": "boolean" - }, - "containsGenericParameters": { - "type": "boolean" - }, - "isGenericMethod": { - "type": "boolean" - }, - "isSecurityCritical": { - "type": "boolean" - }, - "isSecuritySafeCritical": { - "type": "boolean" - }, - "isSecurityTransparent": { - "type": "boolean" - }, - "isPublic": { - "type": "boolean" - }, - "isPrivate": { - "type": "boolean" - }, - "isFamily": { - "type": "boolean" - }, - "isAssembly": { - "type": "boolean" - }, - "isFamilyAndAssembly": { - "type": "boolean" - }, - "isFamilyOrAssembly": { - "type": "boolean" - }, - "isStatic": { - "type": "boolean" - }, - "isFinal": { - "type": "boolean" - }, - "isVirtual": { - "type": "boolean" - }, - "isHideBySig": { - "type": "boolean" - }, - "isAbstract": { - "type": "boolean" - }, - "isSpecialName": { - "type": "boolean" - }, - "isConstructor": { - "type": "boolean" - }, - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" - } - } - }, - "System.RuntimeMethodHandle": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/System.IntPtr" - } - } - }, - "System.IntPtr": { - "type": "object", - "properties": { - "size": { - "format": "int32", - "type": "integer" - } - } - }, - "CustomAttributeData": { - "type": "object", - "properties": { - "attributeType": { - "$ref": "#/definitions/System.Type" - }, - "constructor": { - "$ref": "#/definitions/ConstructorInfo" - }, - "constructorArguments": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeTypedArgument" - } }, - "namedArguments": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeNamedArgument" - } + "apiFailureResponse": { + "$ref": "#/definitions/ApiFailureResponse" } } }, - "ConstructorInfo": { + "ApiFailureResponse": { "type": "object", "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "methodImplementationFlags": { - "enum": [ - "Managed", - "IL", - "Native", - "OPTIL", - "Runtime", - "CodeTypeMask", - "Unmanaged", - "ManagedMask", - "NoInlining", - "ForwardRef", - "Synchronized", - "NoOptimization", - "PreserveSig", - "AggressiveInlining", - "InternalCall", - "MaxMethodImplVal" - ], - "type": "string", - "x-ms-enum": { - "name": "methodImplementationFlags", - "modelAsString": false - } - }, - "methodHandle": { - "$ref": "#/definitions/System.RuntimeMethodHandle" - }, - "attributes": { - "enum": [ - "ReuseSlot", - "PrivateScope", - "Private", - "FamANDAssem", - "Assembly", - "Family", - "FamORAssem", - "Public", - "MemberAccessMask", - "UnmanagedExport", - "Static", - "Final", - "Virtual", - "HideBySig", - "NewSlot", - "VtableLayoutMask", - "CheckAccessOnOverride", - "Abstract", - "SpecialName", - "RTSpecialName", - "PinvokeImpl", - "HasSecurity", - "RequireSecObject", - "ReservedMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "callingConvention": { - "enum": [ - "Standard", - "VarArgs", - "Any", - "HasThis", - "ExplicitThis" - ], - "type": "string", - "x-ms-enum": { - "name": "callingConvention", - "modelAsString": false - } - }, - "isGenericMethodDefinition": { - "type": "boolean" - }, - "containsGenericParameters": { - "type": "boolean" - }, - "isGenericMethod": { - "type": "boolean" - }, - "isSecurityCritical": { - "type": "boolean" - }, - "isSecuritySafeCritical": { - "type": "boolean" - }, - "isSecurityTransparent": { - "type": "boolean" - }, - "isPublic": { - "type": "boolean" - }, - "isPrivate": { - "type": "boolean" - }, - "isFamily": { - "type": "boolean" - }, - "isAssembly": { - "type": "boolean" - }, - "isFamilyAndAssembly": { - "type": "boolean" - }, - "isFamilyOrAssembly": { - "type": "boolean" - }, - "isStatic": { - "type": "boolean" - }, - "isFinal": { - "type": "boolean" - }, - "isVirtual": { - "type": "boolean" - }, - "isHideBySig": { - "type": "boolean" - }, - "isAbstract": { - "type": "boolean" - }, - "isSpecialName": { - "type": "boolean" - }, - "isConstructor": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" + "error": { + "$ref": "#/definitions/ApiError" } } }, - "Module": { + "ApiError": { "type": "object", "properties": { - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "mdStreamVersion": { - "format": "int32", - "type": "integer" - }, - "fullyQualifiedName": { - "type": "string" - }, - "moduleVersionId": { - "format": "uuid", - "type": "string", - "example": "00000000-0000-0000-0000-000000000000" - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "scopeName": { + "code": { + "description": "Gets or sets the azure metrics error code", "type": "string" }, - "name": { + "message": { + "description": "Gets or sets the azure metrics error message", "type": "string" - }, - "assembly": { - "$ref": "#/definitions/Assembly" - }, - "moduleHandle": { - "$ref": "#/definitions/System.ModuleHandle" } } - }, - "Assembly": { - "type": "object", - "properties": { - "codeBase": { - "type": "string" - }, - "escapedCodeBase": { - "type": "string" - }, - "fullName": { - "type": "string" - }, - "entryPoint": { - "$ref": "#/definitions/MethodInfo" - }, - "exportedTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/System.Type" - } - }, - "definedTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/typeInfo" - } - }, - "evidence": { - "type": "array", - "items": { } - }, - "permissionSet": { - "type": "array", - "items": { } - }, - "isFullyTrusted": { - "type": "boolean" - }, - "securityRuleSet": { - "enum": [ - "None", - "Level1", - "Level2" - ], - "type": "string", - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false - } - }, - "manifestModule": { - "$ref": "#/definitions/Module" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "reflectionOnly": { - "type": "boolean" - }, - "modules": { - "type": "array", - "items": { - "$ref": "#/definitions/Module" - } - }, - "location": { - "type": "string" - }, - "imageRuntimeVersion": { - "type": "string" - }, - "globalAssemblyCache": { - "type": "boolean" - }, - "hostContext": { - "format": "int64", - "type": "integer" - }, - "isDynamic": { - "type": "boolean" - } - } - }, - "MethodInfo": { - "type": "object", - "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "returnType": { - "$ref": "#/definitions/System.Type" - }, - "returnParameter": { - "$ref": "#/definitions/ParameterInfo" - }, - "returnTypecustomattributes": { - "$ref": "#/definitions/customAttributeProvider" - }, - "methodImplementationFlags": { - "enum": [ - "Managed", - "IL", - "Native", - "OPTIL", - "Runtime", - "CodeTypeMask", - "Unmanaged", - "ManagedMask", - "NoInlining", - "ForwardRef", - "Synchronized", - "NoOptimization", - "PreserveSig", - "AggressiveInlining", - "InternalCall", - "MaxMethodImplVal" - ], - "type": "string", - "x-ms-enum": { - "name": "methodImplementationFlags", - "modelAsString": false - } - }, - "methodHandle": { - "$ref": "#/definitions/System.RuntimeMethodHandle" - }, - "attributes": { - "enum": [ - "ReuseSlot", - "PrivateScope", - "Private", - "FamANDAssem", - "Assembly", - "Family", - "FamORAssem", - "Public", - "MemberAccessMask", - "UnmanagedExport", - "Static", - "Final", - "Virtual", - "HideBySig", - "NewSlot", - "VtableLayoutMask", - "CheckAccessOnOverride", - "Abstract", - "SpecialName", - "RTSpecialName", - "PinvokeImpl", - "HasSecurity", - "RequireSecObject", - "ReservedMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "callingConvention": { - "enum": [ - "Standard", - "VarArgs", - "Any", - "HasThis", - "ExplicitThis" - ], - "type": "string", - "x-ms-enum": { - "name": "callingConvention", - "modelAsString": false - } - }, - "isGenericMethodDefinition": { - "type": "boolean" - }, - "containsGenericParameters": { - "type": "boolean" - }, - "isGenericMethod": { - "type": "boolean" - }, - "isSecurityCritical": { - "type": "boolean" - }, - "isSecuritySafeCritical": { - "type": "boolean" - }, - "isSecurityTransparent": { - "type": "boolean" - }, - "isPublic": { - "type": "boolean" - }, - "isPrivate": { - "type": "boolean" - }, - "isFamily": { - "type": "boolean" - }, - "isAssembly": { - "type": "boolean" - }, - "isFamilyAndAssembly": { - "type": "boolean" - }, - "isFamilyOrAssembly": { - "type": "boolean" - }, - "isStatic": { - "type": "boolean" - }, - "isFinal": { - "type": "boolean" - }, - "isVirtual": { - "type": "boolean" - }, - "isHideBySig": { - "type": "boolean" - }, - "isAbstract": { - "type": "boolean" - }, - "isSpecialName": { - "type": "boolean" - }, - "isConstructor": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" - } - } - }, - "ParameterInfo": { - "type": "object", - "properties": { - "parameterType": { - "$ref": "#/definitions/System.Type" - }, - "name": { - "type": "string" - }, - "hasDefaultValue": { - "type": "boolean" - }, - "defaultValue": { - "type": "object" - }, - "rawDefaultValue": { - "type": "object" - }, - "position": { - "format": "int32", - "type": "integer" - }, - "attributes": { - "enum": [ - "None", - "In", - "Out", - "Lcid", - "Retval", - "Optional", - "HasDefault", - "HasFieldMarshal", - "Reserved3", - "Reserved4", - "ReservedMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "member": { - "$ref": "#/definitions/MemberInfo" - }, - "isIn": { - "type": "boolean" - }, - "isOut": { - "type": "boolean" - }, - "isLcid": { - "type": "boolean" - }, - "isRetval": { - "type": "boolean" - }, - "isOptional": { - "type": "boolean" - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - } - } - }, - "MemberInfo": { - "type": "object", - "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" - } - } - }, - "customAttributeProvider": { - "type": "object" - }, - "typeInfo": { - "type": "object", - "properties": { - "genericTypeParameters": { - "type": "array", - "items": { - "$ref": "#/definitions/System.Type" - } - }, - "declaredConstructors": { - "type": "array", - "items": { - "$ref": "#/definitions/ConstructorInfo" - } - }, - "declaredEvents": { - "type": "array", - "items": { - "$ref": "#/definitions/EventInfo" - } - }, - "declaredFields": { - "type": "array", - "items": { - "$ref": "#/definitions/FieldInfo" - } - }, - "declaredMembers": { - "type": "array", - "items": { - "$ref": "#/definitions/MemberInfo" - } - }, - "declaredMethods": { - "type": "array", - "items": { - "$ref": "#/definitions/MethodInfo" - } - }, - "declaredNestedTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/typeInfo" - } - }, - "declaredProperties": { - "type": "array", - "items": { - "$ref": "#/definitions/PropertyInfo" - } - }, - "implementedInterfaces": { - "type": "array", - "items": { - "$ref": "#/definitions/System.Type" - } - }, - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "declaringMethod": { - "$ref": "#/definitions/MethodBase" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "structLayoutAttribute": { - "$ref": "#/definitions/structLayoutAttribute" - }, - "guid": { - "format": "uuid", - "type": "string", - "example": "00000000-0000-0000-0000-000000000000" - }, - "module": { - "$ref": "#/definitions/Module" - }, - "assembly": { - "$ref": "#/definitions/Assembly" - }, - "typeHandle": { - "$ref": "#/definitions/System.RuntimeTypeHandle" - }, - "fullName": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "assemblyQualifiedName": { - "type": "string" - }, - "baseType": { - "$ref": "#/definitions/System.Type" - }, - "typeInitializer": { - "$ref": "#/definitions/ConstructorInfo" - }, - "isNested": { - "type": "boolean" - }, - "attributes": { - "enum": [ - "NotPublic", - "AutoLayout", - "AnsiClass", - "Class", - "Public", - "NestedPublic", - "NestedPrivate", - "NestedFamily", - "NestedAssembly", - "NestedFamANDAssem", - "NestedFamORAssem", - "VisibilityMask", - "SequentialLayout", - "ExplicitLayout", - "LayoutMask", - "Interface", - "ClassSemanticsMask", - "Abstract", - "Sealed", - "SpecialName", - "RTSpecialName", - "Import", - "Serializable", - "WindowsRuntime", - "UnicodeClass", - "AutoClass", - "StringFormatMask", - "CustomFormatClass", - "HasSecurity", - "ReservedMask", - "BeforeFieldInit", - "CustomFormatMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "genericParameterattributes": { - "enum": [ - "None", - "Covariant", - "Contravariant", - "VarianceMask", - "ReferenceTypeConstraint", - "NotNullableValueTypeConstraint", - "DefaultConstructorConstraint", - "SpecialConstraintMask" - ], - "type": "string", - "x-ms-enum": { - "name": "genericParameterattributes", - "modelAsString": false - } - }, - "isVisible": { - "type": "boolean" - }, - "isNotPublic": { - "type": "boolean" - }, - "isPublic": { - "type": "boolean" - }, - "isNestedPublic": { - "type": "boolean" - }, - "isNestedPrivate": { - "type": "boolean" - }, - "isNestedFamily": { - "type": "boolean" - }, - "isNestedAssembly": { - "type": "boolean" - }, - "isNestedFamAndAssem": { - "type": "boolean" - }, - "isNestedFamORAssem": { - "type": "boolean" - }, - "isAutoLayout": { - "type": "boolean" - }, - "isLayoutSequential": { - "type": "boolean" - }, - "isExplicitLayout": { - "type": "boolean" - }, - "isClass": { - "type": "boolean" - }, - "isInterface": { - "type": "boolean" - }, - "isValueType": { - "type": "boolean" - }, - "isAbstract": { - "type": "boolean" - }, - "isSealed": { - "type": "boolean" - }, - "isEnum": { - "type": "boolean" - }, - "isSpecialName": { - "type": "boolean" - }, - "isImport": { - "type": "boolean" - }, - "isSerializable": { - "type": "boolean" - }, - "isAnsiClass": { - "type": "boolean" - }, - "isUnicodeClass": { - "type": "boolean" - }, - "isAutoClass": { - "type": "boolean" - }, - "isArray": { - "type": "boolean" - }, - "isGenericType": { - "type": "boolean" - }, - "isGenericTypeDefinition": { - "type": "boolean" - }, - "isConstructedGenericType": { - "type": "boolean" - }, - "isGenericParameter": { - "type": "boolean" - }, - "genericParameterPosition": { - "format": "int32", - "type": "integer" - }, - "containsGenericParameters": { - "type": "boolean" - }, - "isByRef": { - "type": "boolean" - }, - "isPointer": { - "type": "boolean" - }, - "isPrimitive": { - "type": "boolean" - }, - "isComObject": { - "type": "boolean" - }, - "hasElementType": { - "type": "boolean" - }, - "isContextful": { - "type": "boolean" - }, - "isMarshalByRef": { - "type": "boolean" - }, - "genericTypeArguments": { - "type": "array", - "items": { - "$ref": "#/definitions/System.Type" - } - }, - "isSecurityCritical": { - "type": "boolean" - }, - "isSecuritySafeCritical": { - "type": "boolean" - }, - "isSecurityTransparent": { - "type": "boolean" - }, - "underlyingSystemType": { - "$ref": "#/definitions/System.Type" - }, - "name": { - "type": "string" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - } - } - }, - "EventInfo": { - "type": "object", - "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "attributes": { - "enum": [ - "None", - "SpecialName", - "ReservedMask", - "RTSpecialName" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "addMethod": { - "$ref": "#/definitions/MethodInfo" - }, - "removeMethod": { - "$ref": "#/definitions/MethodInfo" - }, - "raiseMethod": { - "$ref": "#/definitions/MethodInfo" - }, - "eventHandlerType": { - "$ref": "#/definitions/System.Type" - }, - "isSpecialName": { - "type": "boolean" - }, - "isMulticast": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" - } - } - }, - "FieldInfo": { - "type": "object", - "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "fieldHandle": { - "$ref": "#/definitions/System.RuntimeFieldHandle" - }, - "fieldType": { - "$ref": "#/definitions/System.Type" - }, - "attributes": { - "enum": [ - "PrivateScope", - "Private", - "FamANDAssem", - "Assembly", - "Family", - "FamORAssem", - "Public", - "FieldAccessMask", - "Static", - "InitOnly", - "Literal", - "NotSerialized", - "HasFieldRVA", - "SpecialName", - "RTSpecialName", - "HasFieldMarshal", - "PinvokeImpl", - "HasDefault", - "ReservedMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "isPublic": { - "type": "boolean" - }, - "isPrivate": { - "type": "boolean" - }, - "isFamily": { - "type": "boolean" - }, - "isAssembly": { - "type": "boolean" - }, - "isFamilyAndAssembly": { - "type": "boolean" - }, - "isFamilyOrAssembly": { - "type": "boolean" - }, - "isStatic": { - "type": "boolean" - }, - "isInitOnly": { - "type": "boolean" - }, - "isLiteral": { - "type": "boolean" - }, - "isNotSerialized": { - "type": "boolean" - }, - "isSpecialName": { - "type": "boolean" - }, - "isPinvokeImpl": { - "type": "boolean" - }, - "isSecurityCritical": { - "type": "boolean" - }, - "isSecuritySafeCritical": { - "type": "boolean" - }, - "isSecurityTransparent": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" - } - } - }, - "System.RuntimeFieldHandle": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/System.IntPtr" - } - } - }, - "PropertyInfo": { - "type": "object", - "properties": { - "memberType": { - "enum": [ - "Constructor", - "Event", - "Field", - "Method", - "Property", - "TypeInfo", - "Custom", - "NestedType", - "All" - ], - "type": "string", - "x-ms-enum": { - "name": "memberType", - "modelAsString": false - } - }, - "propertyType": { - "$ref": "#/definitions/System.Type" - }, - "attributes": { - "enum": [ - "None", - "SpecialName", - "RTSpecialName", - "HasDefault", - "Reserved2", - "Reserved3", - "Reserved4", - "ReservedMask" - ], - "type": "string", - "x-ms-enum": { - "name": "attributes", - "modelAsString": false - } - }, - "canRead": { - "type": "boolean" - }, - "canWrite": { - "type": "boolean" - }, - "getMethod": { - "$ref": "#/definitions/MethodInfo" - }, - "setMethod": { - "$ref": "#/definitions/MethodInfo" - }, - "isSpecialName": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "declaringType": { - "$ref": "#/definitions/System.Type" - }, - "reflectedType": { - "$ref": "#/definitions/System.Type" - }, - "customattributes": { - "type": "array", - "items": { - "$ref": "#/definitions/CustomAttributeData" - } - }, - "metadataToken": { - "format": "int32", - "type": "integer" - }, - "module": { - "$ref": "#/definitions/Module" - } - } - }, - "structLayoutAttribute": { - "type": "object", - "properties": { - "value": { - "enum": [ - "Sequential", - "Explicit", - "Auto" - ], - "type": "string", - "x-ms-enum": { - "name": "value", - "modelAsString": false - } - }, - "typeId": { - "type": "object" - } - } - }, - "System.RuntimeTypeHandle": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/System.IntPtr" - } - } - }, - "System.ModuleHandle": { - "type": "object", - "properties": { - "mdStreamVersion": { - "format": "int32", - "type": "integer" - } - } - }, - "CustomAttributeTypedArgument": { - "type": "object", - "properties": { - "argumentType": { - "$ref": "#/definitions/System.Type" - }, - "value": { - "type": "object" - } - } - }, - "CustomAttributeNamedArgument": { - "type": "object", - "properties": { - "memberInfo": { - "$ref": "#/definitions/MemberInfo" - }, - "typedValue": { - "$ref": "#/definitions/CustomAttributeTypedArgument" - }, - "memberName": { - "type": "string" - }, - "isField": { - "type": "boolean" - } - } - }, - "Binder": { - "type": "object" } } } \ No newline at end of file From 9af3f9f29ead118f993e148015ba95db3fccc780 Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Thu, 13 Sep 2018 14:44:56 -0700 Subject: [PATCH 10/12] -Fix the example to just follow key-value pairs for all required parameters. --- .../examples/AzureMetrics_IngestMetrics.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json index 92f08f689b1f..ff5ac61e4359 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json @@ -4,7 +4,11 @@ "Content-Type": "application/json", "Content-Length": "783", "Authorization": "Bearer {AAD JWT token issued for https:\\\\monitoring.azure.com}", - "path": "/subscriptions/b7ac8a0c-fbae-4e29-a0f7-09999b8857a1/resourceGroups/CowsSeller/providers/Microsoft.Storage/storageAccounts/cowssellerstore", + "subscriptionId": "b7ac8a0c-fbae-4e29-a0f7-09999b8857a1", + "resourceGroupName": "CowsSeller", + "resourceProvider": "Microsoft.Storage", + "resourceTypeName": "storageAccounts", + "resourceName": "cowssellerstore", "body" : { "time":"2018-08-24T 11:02:00-7:00", "data":{ @@ -34,7 +38,8 @@ } }, "responses": { - "200": { + "azureMetricsResult" : { + "statuscode": 200 } } } \ No newline at end of file From 4fd8985b1190a9286beade9c258bcba1e5e94032 Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Thu, 13 Sep 2018 15:01:25 -0700 Subject: [PATCH 11/12] -Fix the responses section in the example --- .../examples/AzureMetrics_IngestMetrics.json | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json index ff5ac61e4359..60e93ed3d15f 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json @@ -9,28 +9,28 @@ "resourceProvider": "Microsoft.Storage", "resourceTypeName": "storageAccounts", "resourceName": "cowssellerstore", - "body" : { - "time":"2018-08-24T 11:02:00-7:00", - "data":{ - "baseData":{ - "metric":"CowsSold", - "namespace":"Cows", - "dimNames":[ + "body": { + "time": "2018-08-24T 11:02:00-7:00", + "data": { + "baseData": { + "metric": "CowsSold", + "namespace": "Cows", + "dimNames": [ "Breed", "Color", "Age" ], - "series":[ - { - "dimValues":[ - "Angus", - "Blue", - "5" - ], - "min":5, - "max":20, - "sum":30, - "count":3 + "series": [ + { + "dimValues": [ + "Angus", + "Blue", + "5" + ], + "min": 5, + "max": 20, + "sum": 30, + "count": 3 } ] } @@ -38,8 +38,10 @@ } }, "responses": { - "azureMetricsResult" : { - "statuscode": 200 + "200": { + "body": { + "statusCode": 200 + } } } } \ No newline at end of file From 64bb7e5dc5a1007beea31eaffe256d3f383328cf Mon Sep 17 00:00:00 2001 From: Venkateswaran Venkatasubramanian Date: Thu, 13 Sep 2018 15:29:02 -0700 Subject: [PATCH 12/12] -Fix the type bug in the example, use int32 instead of string --- .../2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json index 60e93ed3d15f..fc964f585116 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2018-09-01-preview", "Content-Type": "application/json", - "Content-Length": "783", + "Content-Length": 783, "Authorization": "Bearer {AAD JWT token issued for https:\\\\monitoring.azure.com}", "subscriptionId": "b7ac8a0c-fbae-4e29-a0f7-09999b8857a1", "resourceGroupName": "CowsSeller",