From 58353cac19627476fda1170bd7161baa739f58e4 Mon Sep 17 00:00:00 2001 From: avkaur Date: Mon, 23 Apr 2018 14:12:43 -0700 Subject: [PATCH] Updating Modules and Activities Response --- .../stable/2015-10-31/definitions.json | 28 ++- .../examples/createOrUpdateModule.json | 6 +- .../examples/getActivityInAModule.json | 167 +++++++++++++----- .../stable/2015-10-31/examples/getModule.json | 3 +- .../listModulesByAutomationAccount.json | 48 +++-- .../2015-10-31/examples/updateModule.json | 3 +- 6 files changed, 193 insertions(+), 62 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json index f529e13db4b7..08cb65beec7d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json @@ -60,7 +60,7 @@ "description": "Gets or sets a Boolean value that indicates true if the parameter is dynamic." }, "position": { - "type": "boolean", + "type": "integer", "description": "Gets or sets the position of the activity parameter." }, "valueFromPipeline": { @@ -74,7 +74,18 @@ "valueFromRemainingArguments": { "type": "boolean", "description": "Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values." - } + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the activity parameter." + }, + "validationSet": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityParameterValidationSet" + }, + "description": "Gets or sets the validation set of activity parameter." + } }, "description": "Definition of the activity parameter." }, @@ -94,6 +105,15 @@ }, "description": "Definition of the activity parameter set." }, + "ActivityParameterValidationSet": { + "properties": { + "memberValue": { + "type": "string", + "description": "Gets or sets the name of the activity parameter validation set member." + } + }, + "description": "Definition of the activity parameter validation set." + }, "ActivityOutputType": { "properties": { "name": { @@ -2365,6 +2385,10 @@ "description": { "type": "string", "description": "Gets or sets the description." + }, + "isComposite": { + "type": "boolean", + "description": "Gets or sets type of module, if its composite or not." } }, "description": "Definition of the module property type." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateModule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateModule.json index 5206e85304bd..ae0552486b9f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateModule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateModule.json @@ -39,7 +39,8 @@ "code": null, "message": null }, - "provisioningState": "Creating" + "provisioningState": "Creating", + "isComposite": false } } }, @@ -63,7 +64,8 @@ "code": null, "message": null }, - "provisioningState": "Creating" + "provisioningState": "Creating", + "isComposite": false } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getActivityInAModule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getActivityInAModule.json index f4e09b2f842d..3161bfb5ec8c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getActivityInAModule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getActivityInAModule.json @@ -28,7 +28,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": "Specify the feature description", + "validationSet": [] }, { "name": "AccountId", @@ -38,7 +40,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "ApplicationId", @@ -48,7 +52,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "CertificateThumbprint", @@ -58,7 +64,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Credential", @@ -68,7 +76,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Environment", @@ -78,7 +88,16 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": "Specify the feature env", + "validationSet": [ + { + "MemberValue": "prod" + }, + { + "MemberValue": "dogfood" + } + ] }, { "name": "EnvironmentName", @@ -88,7 +107,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "SubscriptionId", @@ -98,7 +119,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": true, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "TenantId", @@ -108,7 +131,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] } ] }, @@ -123,7 +148,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Environment", @@ -133,7 +160,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "EnvironmentName", @@ -143,7 +172,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "ServicePrincipal", @@ -153,7 +184,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "SubscriptionId", @@ -163,7 +196,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": true, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "SubscriptionName", @@ -173,7 +208,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": true, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "TenantId", @@ -183,7 +220,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] } ] }, @@ -198,7 +237,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "AccountId", @@ -208,7 +249,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "ApplicationId", @@ -218,7 +261,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "CertificateThumbprint", @@ -228,7 +273,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Credential", @@ -238,7 +285,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Environment", @@ -248,7 +297,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "EnvironmentName", @@ -258,7 +309,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "SubscriptionName", @@ -268,7 +321,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": true, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "TenantId", @@ -278,7 +333,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] } ] }, @@ -293,7 +350,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Environment", @@ -303,7 +362,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "EnvironmentName", @@ -313,7 +374,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "TenantId", @@ -323,7 +386,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] } ] }, @@ -338,7 +403,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "AccountId", @@ -348,7 +415,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Environment", @@ -358,7 +427,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "EnvironmentName", @@ -368,7 +439,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "TenantId", @@ -378,7 +451,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] } ] }, @@ -393,7 +468,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "CertificateThumbprint", @@ -403,7 +480,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "Environment", @@ -413,7 +492,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "EnvironmentName", @@ -423,7 +504,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "ServicePrincipal", @@ -433,7 +516,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] }, { "name": "TenantId", @@ -443,7 +528,9 @@ "position": -2147483648, "valueFromPipeline": false, "valueFromPipelineByPropertyName": false, - "valueFromRemainingArguments": false + "valueFromRemainingArguments": false, + "description": null, + "validationSet": [] } ] } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getModule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getModule.json index ab440423c835..4fc63ebeeb68 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getModule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getModule.json @@ -27,7 +27,8 @@ "code": null, "message": "" }, - "provisioningState": "Creating" + "provisioningState": "Creating", + "isComposite": true } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listModulesByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listModulesByAutomationAccount.json index aa7d683b6e92..306f8827a699 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listModulesByAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listModulesByAutomationAccount.json @@ -20,7 +20,8 @@ "activityCount": 0, "creationTime": "2014-03-18T23:02:40.323+00:00", "lastModifiedTime": "2017-03-17T16:57:48.343+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -33,7 +34,8 @@ "activityCount": 0, "creationTime": "2016-01-30T01:21:44.68+00:00", "lastModifiedTime": "2017-03-17T17:04:27.833+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -46,7 +48,8 @@ "activityCount": 0, "creationTime": "2016-01-30T01:19:39.427+00:00", "lastModifiedTime": "2017-03-17T17:02:24.42+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -59,7 +62,8 @@ "activityCount": 0, "creationTime": "2015-11-24T20:24:06.1+00:00", "lastModifiedTime": "2017-03-17T17:01:53.81+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -72,7 +76,8 @@ "activityCount": 0, "creationTime": "2015-11-24T20:23:34.723+00:00", "lastModifiedTime": "2017-03-17T17:01:22.993+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -85,7 +90,8 @@ "activityCount": 0, "creationTime": "2016-01-30T01:20:10.367+00:00", "lastModifiedTime": "2017-03-17T17:02:55.25+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -98,7 +104,8 @@ "activityCount": 0, "creationTime": "2016-01-30T01:20:42.177+00:00", "lastModifiedTime": "2017-03-17T17:03:26.08+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -111,7 +118,8 @@ "activityCount": 0, "creationTime": "2016-01-30T01:21:13.237+00:00", "lastModifiedTime": "2017-03-17T17:03:56.99+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -124,7 +132,8 @@ "activityCount": 0, "creationTime": "2015-03-17T00:12:20.897+00:00", "lastModifiedTime": "2017-03-17T16:58:19.017+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -137,7 +146,8 @@ "activityCount": 0, "creationTime": "2015-03-17T00:12:22.817+00:00", "lastModifiedTime": "2017-03-17T16:58:49.737+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -150,7 +160,8 @@ "activityCount": 0, "creationTime": "2015-03-17T00:12:24.967+00:00", "lastModifiedTime": "2017-03-17T16:59:20.38+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -163,7 +174,8 @@ "activityCount": 0, "creationTime": "2015-03-17T00:12:26.753+00:00", "lastModifiedTime": "2017-03-17T16:59:51.007+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -176,7 +188,8 @@ "activityCount": 0, "creationTime": "2015-03-17T00:12:28.643+00:00", "lastModifiedTime": "2017-03-17T17:00:21.647+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -189,7 +202,8 @@ "activityCount": 0, "creationTime": "2015-03-17T00:17:15.003+00:00", "lastModifiedTime": "2017-03-17T17:00:52.197+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } }, { @@ -202,7 +216,8 @@ "activityCount": 0, "creationTime": "2017-03-29T15:41:47.003+00:00", "lastModifiedTime": "2017-03-29T15:42:10.567+00:00", - "provisioningState": "Creating" + "provisioningState": "Creating", + "isComposite": false } }, { @@ -215,7 +230,8 @@ "activityCount": 0, "creationTime": "2015-09-12T00:45:12.897+00:00", "lastModifiedTime": "2017-03-17T17:05:01.57+00:00", - "provisioningState": "Created" + "provisioningState": "Created", + "isComposite": false } } ] diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateModule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateModule.json index b46a459d1792..28a94a4b9cce 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateModule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateModule.json @@ -39,7 +39,8 @@ "code": null, "message": null }, - "provisioningState": "Creating" + "provisioningState": "Creating", + "isComposite": false } } }