зеркало из https://github.com/Azure/ARO-RP.git
adding origin to operations api object
This commit is contained in:
Родитель
a997031807
Коммит
5926d13464
|
@ -1 +1 @@
|
|||
8278cc89e7a95b160d1abdab6ee52759f796fb1848487e55e130264cef1d6ea1 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2019-12-31-preview/redhatopenshift.json
|
||||
c754a15974c770a79f82356664d45a1ad2f88e344c9bb3678bec700cd361383a swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2019-12-31-preview/redhatopenshift.json
|
||||
|
|
|
@ -19,6 +19,9 @@ type Operation struct {
|
|||
|
||||
// The object that describes the operation.
|
||||
Display Display `json:"display,omitempty"`
|
||||
|
||||
// Sources of requests to this operation. Comma separated list with valid values user or system, e.g. "user,system".
|
||||
Origin string `json:"origin,omitempty"`
|
||||
}
|
||||
|
||||
// Display represents the display details of an operation.
|
||||
|
|
|
@ -630,6 +630,8 @@ type Operation struct {
|
|||
Name *string `json:"name,omitempty"`
|
||||
// Display - The object that describes the operation.
|
||||
Display *Display `json:"display,omitempty"`
|
||||
// Origin - Sources of requests to this operation. Comma separated list with valid values user or system, e.g. "user,system".
|
||||
Origin *string `json:"origin,omitempty"`
|
||||
}
|
||||
|
||||
// OperationList operationList represents an RP operation list.
|
||||
|
|
|
@ -25,6 +25,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "locations/operationresults",
|
||||
Operation: "Read operation results",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
{
|
||||
Name: "Microsoft.RedHatOpenShift/locations/operationsstatus/read",
|
||||
|
@ -33,6 +34,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "locations/operationsstatus",
|
||||
Operation: "Read operations status",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
{
|
||||
Name: "Microsoft.RedHatOpenShift/openShiftClusters/read",
|
||||
|
@ -41,6 +43,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "openShiftClusters",
|
||||
Operation: "Read OpenShift cluster",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
{
|
||||
Name: "Microsoft.RedHatOpenShift/openShiftClusters/write",
|
||||
|
@ -49,6 +52,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "openShiftClusters",
|
||||
Operation: "Write OpenShift cluster",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
{
|
||||
Name: "Microsoft.RedHatOpenShift/openShiftClusters/delete",
|
||||
|
@ -57,6 +61,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "openShiftClusters",
|
||||
Operation: "Delete OpenShift cluster",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
{
|
||||
Name: "Microsoft.RedHatOpenShift/openShiftClusters/listCredentials/action",
|
||||
|
@ -65,6 +70,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "openShiftClusters",
|
||||
Operation: "List credentials of an OpenShift cluster",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
{
|
||||
Name: "Microsoft.RedHatOpenShift/operations/read",
|
||||
|
@ -73,6 +79,7 @@ func (f *frontend) getOperations(w http.ResponseWriter, r *http.Request) {
|
|||
Resource: "operations",
|
||||
Operation: "Read operations",
|
||||
},
|
||||
Origin: "user,system",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -544,17 +544,22 @@ class Operation(Model):
|
|||
:param display: The object that describes the operation.
|
||||
:type display:
|
||||
~azure.mgmt.redhatopenshift.v2019_12_31_preview.models.Display
|
||||
:param origin: Sources of requests to this operation. Comma separated
|
||||
list with valid values user or system, e.g. "user,system".
|
||||
:type origin: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'display': {'key': 'display', 'type': 'Display'},
|
||||
'origin': {'key': 'origin', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(Operation, self).__init__(**kwargs)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.display = kwargs.get('display', None)
|
||||
self.origin = kwargs.get('origin', None)
|
||||
|
||||
|
||||
class ProxyResource(Resource):
|
||||
|
|
|
@ -544,17 +544,22 @@ class Operation(Model):
|
|||
:param display: The object that describes the operation.
|
||||
:type display:
|
||||
~azure.mgmt.redhatopenshift.v2019_12_31_preview.models.Display
|
||||
:param origin: Sources of requests to this operation. Comma separated
|
||||
list with valid values user or system, e.g. "user,system".
|
||||
:type origin: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'display': {'key': 'display', 'type': 'Display'},
|
||||
'origin': {'key': 'origin', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, name: str=None, display=None, **kwargs) -> None:
|
||||
def __init__(self, *, name: str=None, display=None, origin: str=None, **kwargs) -> None:
|
||||
super(Operation, self).__init__(**kwargs)
|
||||
self.name = name
|
||||
self.display = display
|
||||
self.origin = origin
|
||||
|
||||
|
||||
class ProxyResource(Resource):
|
||||
|
|
|
@ -655,6 +655,10 @@
|
|||
"display": {
|
||||
"$ref": "#/definitions/Display",
|
||||
"description": "The object that describes the operation."
|
||||
},
|
||||
"origin": {
|
||||
"description": "Sources of requests to this operation. Comma separated list with valid values user or system, e.g. \"user,system\".",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче