Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger change for Update configuration dynamic group #4165

Merged
merged 5 commits into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,32 @@
"nonAzureComputerNames": [
"box1.contoso.com",
"box2.contoso.com"
],
"targets":[
{
"azureQueries":
{
"scope":[
"/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources",
"/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067"
],
"tagSettings":{
"tags":[
{
"tag1": ["tag1Value1", "tag1Value2", "tag1Value3"]
},
{
"tag2": ["tag2Value1", "tag2Value2", "tag2Value3"]
}
],
"filterOperator" : "All"
},
"locations":[
"Japan East",
"UK South"
]
}
}
]
},
"scheduleInfo": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@
"type": "string",
"description": "Name of Non-Azure OMS Computer."
}
},
"targets": {
"description": "Group targets for the software update configuration.",
"$ref": "#/definitions/TargetProperties"
}
},
"required": [
Expand Down Expand Up @@ -750,6 +754,76 @@
"description": "ext run time of the update."
}
}
},
"TargetProperties": {
"type": "object",
"description": "Group specific to the update configuration.",
"properties": {
"azureQueries": {
"description": "List of Azure queries in the software update configuration.",
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/AzureQueryProperties"
}
}
}
},
"AzureQueryProperties": {
"type": "object",
"description": "Azure query for the update configuration.",
"properties": {
"scope": {
"type": "array",
"description": "List of Subscription or Resource Group ARM Ids.",
"items": {
"type": "string",
"description": "Subscription or Resource Group ARM Id."
}
},
"location": {
"type": "array",
"description": "List of locations to scope the query to.",
"items": {
"type": "string",
"description": "Location to scope the query to."
}
},
"tagSettings": {
"type": "object",
"description": "Tag settings for the VM.",
"$ref": "#/definitions/TagSettingsProperties"
}
}
},
"TagSettingsProperties": {
"type": "object",
"description": "Tag filter information for the VM.",
"properties": {
"tags": {
"type": "object",
"description": "Dictionary of tags with its list of values.",
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"description": "List of tag values for a tag."
}
}
},
"filterOperator": {
"type": "string",
"description": "Filter VMs by Any or All specified tags.",
"enum": [
"All",
"Any"
],
"x-ms-enum": {
"name": "TagOperators",
"modelAsString": false
}
}
}
}
}
}