-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Expose Patch operations. Expose missing provider level operations #1816
Changes from 33 commits
7a491a8
c211666
5d1d2ec
dc0352d
549a9de
39ceb0d
ba5ad4f
f9084ca
a82a87c
7ed3428
e0fd751
7fa0073
4dab1f8
2101e70
d4abb2f
b47c0d5
26c40f9
d068b39
49b1967
39cbd9e
462f730
5f7e16e
e4e2990
0937c56
c01b88b
98f90e5
512ff6a
6eb2e27
82258b4
c4f4231
5c4e17a
c8b9172
20c083c
ea96df9
3680787
3883327
f9bffdc
4866660
e7d6ee8
9478357
e1592df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -349,6 +349,67 @@ | |
"description": "Domain does not exist in Azure database probably because it has already been deleted" | ||
} | ||
} | ||
}, | ||
"patch": { | ||
"tags": [ | ||
"Domains" | ||
], | ||
"summary": "Creates or updates a domain.", | ||
"description": "Creates or updates a domain.", | ||
"operationId": "Domains_Update", | ||
"consumes": [ | ||
"application/json", | ||
"text/json", | ||
"application/x-www-form-urlencoded" | ||
], | ||
"produces": [ | ||
"application/json", | ||
"text/json", | ||
"application/xml", | ||
"text/xml" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/resourceGroupNameParameter" | ||
}, | ||
{ | ||
"name": "domainName", | ||
"in": "path", | ||
"description": "Name of the domain.", | ||
"required": true, | ||
"type": "string", | ||
"pattern": "[a-zA-Z0-9][a-zA-Z0-9\\.-]+" | ||
}, | ||
{ | ||
"name": "domain", | ||
"in": "body", | ||
"description": "Domain registration information.", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/Domain" | ||
} | ||
}, | ||
{ | ||
"$ref": "#/parameters/subscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/apiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"202": { | ||
"description": "Domain purchase is in progress.", | ||
"schema": { | ||
"$ref": "#/definitions/Domain" | ||
} | ||
}, | ||
"200": { | ||
"description": "Domain purchase was successful.", | ||
"schema": { | ||
"$ref": "#/definitions/Domain" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers": { | ||
|
@@ -646,7 +707,7 @@ | |
} | ||
}, | ||
"Contact": { | ||
"description": "Contact information for domain registration. If 'Domain Privacy' option is not selected then the contact information is made publicly available through the Whois \n directories as per ICANN requirements.", | ||
"description": "Contact information for domain registration. If 'Domain Privacy' option is not selected then the contact information is made publicly available through the Whois \ndirectories as per ICANN requirements.", | ||
"required": [ | ||
"email", | ||
"nameFirst", | ||
|
@@ -1130,9 +1191,6 @@ | |
}, | ||
"Resource": { | ||
"description": "Azure resource. This resource is tracked in Azure Resource Manager", | ||
"required": [ | ||
"location" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, it's a potential SDK breaking change. |
||
], | ||
"properties": { | ||
"id": { | ||
"description": "Resource Id.", | ||
|
@@ -1150,7 +1208,11 @@ | |
}, | ||
"location": { | ||
"description": "Resource Location.", | ||
"type": "string" | ||
"type": "string", | ||
"x-ms-mutability": [ | ||
"create", | ||
"read" | ||
] | ||
}, | ||
"type": { | ||
"description": "Resource type.", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -346,6 +346,7 @@ | |
"readOnly": true | ||
}, | ||
"cerBlob": { | ||
"format": "byte", | ||
"description": "Raw bytes of .cer file", | ||
"type": "string", | ||
"readOnly": true | ||
|
@@ -451,9 +452,6 @@ | |
}, | ||
"Resource": { | ||
"description": "Azure resource. This resource is tracked in Azure Resource Manager", | ||
"required": [ | ||
"location" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A potential SDK breaking change. |
||
], | ||
"properties": { | ||
"id": { | ||
"description": "Resource Id.", | ||
|
@@ -471,7 +469,11 @@ | |
}, | ||
"location": { | ||
"description": "Resource Location.", | ||
"type": "string" | ||
"type": "string", | ||
"x-ms-mutability": [ | ||
"create", | ||
"read" | ||
] | ||
}, | ||
"type": { | ||
"description": "Resource type.", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/Object" | ||
"type": "object" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. an SDK breaking change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change from #/definitions/Object is SDK but recommended by Azure SDK/ARM |
||
} | ||
} | ||
} | ||
|
@@ -92,7 +92,7 @@ | |
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/Object" | ||
"type": "object" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. an SDK breaking change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change from #/definitions/Object is SDK but recommended by Azure SDK/ARM |
||
} | ||
} | ||
} | ||
|
@@ -246,10 +246,6 @@ | |
} | ||
} | ||
}, | ||
"Object": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"ServiceSpecification": { | ||
"type": "object", | ||
"properties": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,6 +294,12 @@ | |
"description": "Specify <code>true</code> to update the last-seen timestamp of the recommendation object.", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "recommendationId", | ||
"in": "query", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A new parameter in the middle of parameter list, which is an SDK breaking change and probably Rest API breaking change. @ravbhatnagar. To reduce impact on SDK code generation, the new parameter should be the last one so function signature will not have a breaking change. |
||
"description": "The GUID of the recommedation object if you query an expired one. You don't need to specify it to query an active entry.", | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/parameters/subscriptionIdParameter" | ||
}, | ||
|
@@ -323,8 +329,10 @@ | |
"type": "string" | ||
}, | ||
"recommendationId": { | ||
"format": "uuid", | ||
"description": "A GUID value that each recommendation object is associated with.", | ||
"type": "string" | ||
"type": "string", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SDK breaking change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Client validation for (uuid, byte ) will cause SDK breaks, but is acceptable and actually a good change. |
||
"example": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"resourceId": { | ||
"description": "Full ARM resource ID string that this recommendation object is associated with.", | ||
|
@@ -461,8 +469,9 @@ | |
}, | ||
"recommendationId": { | ||
"format": "uuid", | ||
"description": "Recommendation ID of an associated recommendation object tied to the rule, if exists.\n If such an object doesn't exist, it is set to null.", | ||
"type": "string" | ||
"description": "Recommendation ID of an associated recommendation object tied to the rule, if exists.\nIf such an object doesn't exist, it is set to null.", | ||
"type": "string", | ||
"example": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"description": { | ||
"description": "Localized detailed description of the rule.", | ||
|
@@ -572,4 +581,4 @@ | |
] | ||
} | ||
] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, we recommend to use
x-ms-mutability
. AutoRest SDK code generation doesn't use the extension for now but it may use it in the future. It's not an SDK breaking change. In the same time, removingrequired
field may change an order of constructor parameters.