@@ -40,112 +40,107 @@ type Display struct {
4040}
4141
4242// Common operations defined which can be used within the registration of the APIs
43- var OperationResultsRead = Operation {
44- Name : "Microsoft.RedHatOpenShift/locations/operationresults/read" ,
45- Display : Display {
46- Provider : "Azure Red Hat OpenShift" ,
47- Resource : "locations/operationresults" ,
48- Operation : "Read operation results" ,
43+ // NOTE: The set of operations specified in the response payload must not vary with each API version of the operations API.
44+ // The Resource Provider service should always return all the operations that are supported across all the API versions of its resource types.
45+ // https://github.com/cloud-and-ai-microsoft/resource-provider-contract/blob/master/v1.0/proxy-api-reference.md#exposing-available-operations
46+ var AllOperations = []Operation {
47+ {
48+ Name : "Microsoft.RedHatOpenShift/locations/operationresults/read" ,
49+ Display : Display {
50+ Provider : "Azure Red Hat OpenShift" ,
51+ Resource : "locations/operationresults" ,
52+ Operation : "Read operation results" ,
53+ },
54+ Origin : "user,system" ,
4955 },
50- Origin : "user,system" ,
51- }
52-
53- var OperationStatusRead = Operation {
54- Name : "Microsoft.RedHatOpenShift/locations/operationsstatus/read" ,
55- Display : Display {
56- Provider : "Azure Red Hat OpenShift" ,
57- Resource : "locations/operationsstatus" ,
58- Operation : "Read operations status" ,
56+ {
57+ Name : "Microsoft.RedHatOpenShift/locations/operationsstatus/read" ,
58+ Display : Display {
59+ Provider : "Azure Red Hat OpenShift" ,
60+ Resource : "locations/operationsstatus" ,
61+ Operation : "Read operations status" ,
62+ },
63+ Origin : "user,system" ,
5964 },
60- Origin : "user,system" ,
61- }
62-
63- var OperationRead = Operation {
64- Name : "Microsoft.RedHatOpenShift/operations/read" ,
65- Display : Display {
66- Provider : "Azure Red Hat OpenShift" ,
67- Resource : "operations" ,
68- Operation : "Read operations" ,
65+ {
66+ Name : "Microsoft.RedHatOpenShift/operations/read" ,
67+ Display : Display {
68+ Provider : "Azure Red Hat OpenShift" ,
69+ Resource : "operations" ,
70+ Operation : "Read operations" ,
71+ },
72+ Origin : "user,system" ,
6973 },
70- Origin : "user,system" ,
71- }
72-
73- var OperationOpenShiftClusterRead = Operation {
74- Name : "Microsoft.RedHatOpenShift/openShiftClusters/read" ,
75- Display : Display {
76- Provider : "Azure Red Hat OpenShift" ,
77- Resource : "openShiftClusters" ,
78- Operation : "Read OpenShift cluster" ,
74+ {
75+ Name : "Microsoft.RedHatOpenShift/openShiftClusters/read" ,
76+ Display : Display {
77+ Provider : "Azure Red Hat OpenShift" ,
78+ Resource : "openShiftClusters" ,
79+ Operation : "Read OpenShift cluster" ,
80+ },
81+ Origin : "user,system" ,
7982 },
80- Origin : "user,system" ,
81- }
82-
83- var OperationOpenShiftClusterWrite = Operation {
84- Name : "Microsoft.RedHatOpenShift/openShiftClusters/write" ,
85- Display : Display {
86- Provider : "Azure Red Hat OpenShift" ,
87- Resource : "openShiftClusters" ,
88- Operation : "Write OpenShift cluster" ,
83+ {
84+ Name : "Microsoft.RedHatOpenShift/openShiftClusters/write" ,
85+ Display : Display {
86+ Provider : "Azure Red Hat OpenShift" ,
87+ Resource : "openShiftClusters" ,
88+ Operation : "Write OpenShift cluster" ,
89+ },
90+ Origin : "user,system" ,
8991 },
90- Origin : "user,system" ,
91- }
92-
93- var OperationOpenShiftClusterDelete = Operation {
94- Name : "Microsoft.RedHatOpenShift/openShiftClusters/delete" ,
95- Display : Display {
96- Provider : "Azure Red Hat OpenShift" ,
97- Resource : "openShiftClusters" ,
98- Operation : "Delete OpenShift cluster" ,
92+ {
93+ Name : "Microsoft.RedHatOpenShift/openShiftClusters/delete" ,
94+ Display : Display {
95+ Provider : "Azure Red Hat OpenShift" ,
96+ Resource : "openShiftClusters" ,
97+ Operation : "Delete OpenShift cluster" ,
98+ },
99+ Origin : "user,system" ,
99100 },
100- Origin : "user,system" ,
101- }
102-
103- var OperationOpenShiftClusterListCredentials = Operation {
104- Name : "Microsoft.RedHatOpenShift/openShiftClusters/listCredentials/action" ,
105- Display : Display {
106- Provider : "Azure Red Hat OpenShift" ,
107- Resource : "openShiftClusters" ,
108- Operation : "List credentials of an OpenShift cluster" ,
101+ {
102+ Name : "Microsoft.RedHatOpenShift/openShiftClusters/listCredentials/action" ,
103+ Display : Display {
104+ Provider : "Azure Red Hat OpenShift" ,
105+ Resource : "openShiftClusters" ,
106+ Operation : "List credentials of an OpenShift cluster" ,
107+ },
108+ Origin : "user,system" ,
109109 },
110- Origin : "user,system" ,
111- }
112-
113- var OperationOpenShiftClusterListAdminCredentials = Operation {
114- Name : "Microsoft.RedHatOpenShift/openShiftClusters/listAdminCredentials/action" ,
115- Display : Display {
116- Provider : "Azure Red Hat OpenShift" ,
117- Resource : "openShiftClusters" ,
118- Operation : "List Admin Kubeconfig of an OpenShift cluster" ,
110+ {
111+ Name : "Microsoft.RedHatOpenShift/openShiftClusters/listAdminCredentials/action" ,
112+ Display : Display {
113+ Provider : "Azure Red Hat OpenShift" ,
114+ Resource : "openShiftClusters" ,
115+ Operation : "List Admin Kubeconfig of an OpenShift cluster" ,
116+ },
117+ Origin : "user,system" ,
119118 },
120- Origin : "user,system" ,
121- }
122-
123- var OperationOpenShiftClusterGetDetectors = Operation {
124- Name : "Microsoft.RedHatOpenShift/openShiftClusters/detectors/read" ,
125- Display : Display {
126- Provider : "Azure Red Hat OpenShift" ,
127- Resource : "openShiftClusters" ,
128- Operation : "Get OpenShift Cluster Detector" ,
119+ {
120+ Name : "Microsoft.RedHatOpenShift/openShiftClusters/detectors/read" ,
121+ Display : Display {
122+ Provider : "Azure Red Hat OpenShift" ,
123+ Resource : "openShiftClusters" ,
124+ Operation : "Get OpenShift Cluster Detector" ,
125+ },
126+ Origin : "user,system" ,
129127 },
130- Origin : "user,system" ,
131- }
132-
133- var OperationListInstallVersions = Operation {
134- Name : "Microsoft.RedHatOpenShift/locations/listInstallVersions/read" ,
135- Display : Display {
136- Provider : "Azure Red Hat OpenShift" ,
137- Resource : "listInstallVersions" ,
138- Operation : "Lists all OpenShift versions available to install in the specified location" ,
128+ {
129+ Name : "Microsoft.RedHatOpenShift/locations/listPlatformWorkloadIdentityRoleSets/read" ,
130+ Display : Display {
131+ Provider : "Azure Red Hat OpenShift" ,
132+ Resource : "listPlatformWorkloadIdentityRoleSets" ,
133+ Operation : "Lists all PlatformWorkloadIdentityRoleSets available in the specified location" ,
134+ },
135+ Origin : "user,system" ,
139136 },
140- Origin : "user,system" ,
141- }
142-
143- var OperationListPlatformWorkloadIdentityRoleSets = Operation {
144- Name : "Microsoft.RedHatOpenShift/locations/listPlatformWorkloadIdentityRoleSets/read" ,
145- Display : Display {
146- Provider : "Azure Red Hat OpenShift" ,
147- Resource : "listPlatformWorkloadIdentityRoleSets" ,
148- Operation : "Lists all PlatformWorkloadIdentityRoleSets available in the specified location" ,
137+ {
138+ Name : "Microsoft.RedHatOpenShift/locations/openshiftVersions/read" ,
139+ Display : Display {
140+ Provider : "Azure Red Hat OpenShift" ,
141+ Resource : "openshiftVersions" ,
142+ Operation : "Lists all OpenShift versions available to install in the specified location" ,
143+ },
144+ Origin : "user,system" ,
149145 },
150- Origin : "user,system" ,
151146}
0 commit comments