/* * * Copyright 2016-2017 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ module rw-cloud { namespace "http://riftio.com/ns/riftware-1.0/rw-cloud"; prefix "rw-cloud"; import rwcal { prefix "rwcal"; } import rw-sdn { prefix "rw-sdn"; } import mano-types { prefix "manotypes"; } import rw-project { prefix "rw-project"; } revision 2017-02-08 { description "Update model to support projects."; } revision 2015-09-14 { description "Initial revision."; } augment "/rw-project:project" { container cloud { list account { description "Configure Cloud Accounts"; max-elements 16; key "name"; leaf name { mandatory true; type string { length "1..255"; } } leaf sdn-account { description "Configured SDN account associated with this cloud account"; type leafref { path "../../../rw-sdn:sdn/rw-sdn:account/rw-sdn:name"; } } uses rwcal:provider-auth; uses rwcal:connection-status; uses rwcal:instance-timeout; } } } rpc update-cloud-status { description "Begin cloud account connection status"; input { leaf cloud-account { mandatory true; description "The cloud account name to update connection status for"; type string; } uses manotypes:rpc-project-name; } } notification cloud-notif { description "Notification for cloud account credentials"; leaf name { description "Cloud account name"; type string; } leaf message { description "Notification message"; type string; } } }