You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2018/05/29 19:39:49 UTC
[ambari] branch trunk updated: AMBARI-23949. Accessing Swagger API
when Ambari Server is configured for HTTPS. (jaimin) (#1375)
This is an automated email from the ASF dual-hosted git repository.
jaimin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1fc1a55 AMBARI-23949. Accessing Swagger API when Ambari Server is configured for HTTPS. (jaimin) (#1375)
1fc1a55 is described below
commit 1fc1a554841e837cad6a70cf030a0849302d7f44
Author: Jetly <ja...@hortonworks.com>
AuthorDate: Tue May 29 12:39:37 2018 -0700
AMBARI-23949. Accessing Swagger API when Ambari Server is configured for HTTPS. (jaimin) (#1375)
---
ambari-server/docs/api/generated/index.html | 57194 ++++++++++++-------
ambari-server/docs/api/generated/swagger.json | 4257 +-
ambari-server/pom.xml | 2 +-
.../ambari/server/api/services/ClusterService.java | 3 +-
.../ambari/server/api/services/ServiceService.java | 4 +-
ambari-web/api-docs/css/api-explorer.css | 44 -
ambari-web/api-docs/swagger-ui.js | 7 +-
ambari-web/api-docs/swagger-ui.min.js | 21 +-
8 files changed, 40259 insertions(+), 21273 deletions(-)
diff --git a/ambari-server/docs/api/generated/index.html b/ambari-server/docs/api/generated/index.html
index 5ade7a8..fdb9ec3 100644
--- a/ambari-server/docs/api/generated/index.html
+++ b/ambari-server/docs/api/generated/index.html
@@ -887,6 +887,78 @@ margin-bottom: 20px;
}
}
};
+ defs.AlertGroup = {
+ "type" : "object",
+ "properties" : {
+ "default" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "cluster_id" : {
+ "type" : "integer",
+ "format" : "int64"
+ }
+ }
+};
+ defs.AlertTargetInfo = {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "properties" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ },
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "description" : {
+ "type" : "string"
+ },
+ "enabled" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "notification_type" : {
+ "type" : "string"
+ },
+ "groups" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/AlertGroup"
+ }
+ },
+ "alert_states" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "global" : {
+ "type" : "boolean",
+ "default" : false
+ }
+ }
+};
+ defs.AlertTargetSwagger = {
+ "type" : "object",
+ "properties" : {
+ "AlertTarget" : {
+ "$ref" : "#/definitions/AlertTargetInfo"
+ }
+ }
+};
defs.Alternative = {
"type" : "object",
"properties" : {
@@ -901,24 +973,111 @@ margin-bottom: 20px;
defs.Artifacts = {
"type" : "object",
"properties" : {
- "service_name" : {
+ "stack_name" : {
"type" : "string"
},
"stack_version" : {
"type" : "string"
},
+ "service_name" : {
+ "type" : "string"
+ },
"artifact_name" : {
"type" : "string"
+ }
+ }
+};
+ defs.BatchRequest = {
+ "type" : "object",
+ "properties" : {
+ "batch_settings" : {
+ "$ref" : "#/definitions/BatchSettings"
},
- "stack_name" : {
+ "requests" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BatchRequestRequest"
+ }
+ }
+ }
+};
+ defs.BatchRequestRequest = {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "type" : "string"
+ },
+ "RequestBodyInfo" : {
+ "$ref" : "#/definitions/RequestBodyInfo"
+ },
+ "order_id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "uri" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.BatchRequestResponse = {
+ "type" : "object",
+ "properties" : {
+ "request_type" : {
+ "type" : "string"
+ },
+ "request_status" : {
+ "type" : "string"
+ },
+ "return_code" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "response_message" : {
+ "type" : "string"
+ },
+ "order_id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "request_uri" : {
+ "type" : "string"
+ },
+ "request_body" : {
"type" : "string"
}
}
};
+ defs.BatchResponse = {
+ "type" : "object",
+ "properties" : {
+ "batch_settings" : {
+ "$ref" : "#/definitions/BatchSettings"
+ },
+ "batch_requests" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BatchRequestResponse"
+ }
+ }
+ }
+};
+ defs.BatchSettings = {
+ "type" : "object",
+ "properties" : {
+ "task_failure_tolerance_limit" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "batch_separation_in_seconds" : {
+ "type" : "integer",
+ "format" : "int32"
+ }
+ }
+};
defs.BlueprintInfo = {
"type" : "object",
"properties" : {
- "blueprint_name" : {
+ "stack_name" : {
"type" : "string"
},
"security" : {
@@ -927,7 +1086,7 @@ margin-bottom: 20px;
"stack_version" : {
"type" : "string"
},
- "stack_name" : {
+ "blueprint_name" : {
"type" : "string"
}
}
@@ -981,15 +1140,15 @@ margin-bottom: 20px;
defs.ClusterArtifactRequest = {
"type" : "object",
"properties" : {
+ "Artifacts" : {
+ "$ref" : "#/definitions/ClusterArtifactRequestInfo"
+ },
"artifact_data" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
"properties" : { }
}
- },
- "Artifacts" : {
- "$ref" : "#/definitions/ClusterArtifactRequestInfo"
}
}
};
@@ -1004,25 +1163,25 @@ margin-bottom: 20px;
defs.ClusterArtifactResponse = {
"type" : "object",
"properties" : {
+ "Artifacts" : {
+ "$ref" : "#/definitions/ClusterArtifactResponseInfo"
+ },
"artifact_data" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
"properties" : { }
}
- },
- "Artifacts" : {
- "$ref" : "#/definitions/ClusterArtifactResponseInfo"
}
}
};
defs.ClusterArtifactResponseInfo = {
"type" : "object",
"properties" : {
- "artifact_name" : {
+ "cluster_name" : {
"type" : "string"
},
- "cluster_name" : {
+ "artifact_name" : {
"type" : "string"
}
}
@@ -1095,9 +1254,6 @@ margin-bottom: 20px;
"desired_service_config_versions" : {
"$ref" : "#/definitions/ServiceConfigVersionRequest"
},
- "repository_version" : {
- "type" : "string"
- },
"desired_configs" : {
"type" : "array",
"items" : {
@@ -1176,15 +1332,15 @@ margin-bottom: 20px;
defs.ClusterServiceArtifactRequest = {
"type" : "object",
"properties" : {
+ "Artifacts" : {
+ "$ref" : "#/definitions/ClusterServiceArtifactRequestInfo"
+ },
"artifact_data" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
"properties" : { }
}
- },
- "Artifacts" : {
- "$ref" : "#/definitions/ClusterServiceArtifactRequestInfo"
}
}
};
@@ -1199,28 +1355,28 @@ margin-bottom: 20px;
defs.ClusterServiceArtifactResponse = {
"type" : "object",
"properties" : {
+ "Artifacts" : {
+ "$ref" : "#/definitions/ClusterServiceArtifactResponseInfo"
+ },
"artifact_data" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
"properties" : { }
}
- },
- "Artifacts" : {
- "$ref" : "#/definitions/ClusterServiceArtifactResponseInfo"
}
}
};
defs.ClusterServiceArtifactResponseInfo = {
"type" : "object",
"properties" : {
- "service_name" : {
+ "cluster_name" : {
"type" : "string"
},
- "artifact_name" : {
+ "service_name" : {
"type" : "string"
},
- "cluster_name" : {
+ "artifact_name" : {
"type" : "string"
}
}
@@ -1236,7 +1392,7 @@ margin-bottom: 20px;
defs.ComponentDependencyResponseInfo = {
"type" : "object",
"properties" : {
- "scope" : {
+ "stack_name" : {
"type" : "string"
},
"conditions" : {
@@ -1245,22 +1401,22 @@ margin-bottom: 20px;
"$ref" : "#/definitions/DependencyConditionInfo"
}
},
- "dependent_component_name" : {
+ "scope" : {
"type" : "string"
},
- "dependent_service_name" : {
+ "stack_version" : {
"type" : "string"
},
- "service_name" : {
+ "component_name" : {
"type" : "string"
},
- "stack_version" : {
+ "dependent_component_name" : {
"type" : "string"
},
- "component_name" : {
+ "dependent_service_name" : {
"type" : "string"
},
- "stack_name" : {
+ "service_name" : {
"type" : "string"
}
}
@@ -1268,10 +1424,10 @@ margin-bottom: 20px;
defs.ComponentInfo = {
"type" : "object",
"properties" : {
- "provision_action" : {
+ "name" : {
"type" : "string"
},
- "name" : {
+ "provision_action" : {
"type" : "string"
}
}
@@ -1292,6 +1448,56 @@ margin-bottom: 20px;
}
}
};
+ defs.Config = {
+ "type" : "object",
+ "properties" : {
+ "properties" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ },
+ "type" : {
+ "type" : "string"
+ },
+ "tag" : {
+ "type" : "string"
+ },
+ "version" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "serviceConfigVersions" : {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "format" : "int64"
+ }
+ },
+ "propertiesAttributes" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ }
+ },
+ "stackId" : {
+ "$ref" : "#/definitions/StackId"
+ },
+ "propertiesTypes" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "string"
+ }
+ }
+ }
+ }
+};
defs.ConfigCondition = {
"type" : "object",
"properties" : {
@@ -1323,6 +1529,108 @@ margin-bottom: 20px;
}
}
};
+ defs.ConfigGroupRequest = {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "cluster_name" : {
+ "type" : "string"
+ },
+ "group_name" : {
+ "type" : "string"
+ },
+ "tag" : {
+ "type" : "string"
+ },
+ "service_name" : {
+ "type" : "string"
+ },
+ "description" : {
+ "type" : "string"
+ },
+ "service_config_version_note" : {
+ "type" : "string"
+ },
+ "hosts" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "desired_configs" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/definitions/Config"
+ }
+ }
+ }
+};
+ defs.ConfigGroupResponse = {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "cluster_name" : {
+ "type" : "string"
+ },
+ "group_name" : {
+ "type" : "string"
+ },
+ "tag" : {
+ "type" : "string"
+ },
+ "description" : {
+ "type" : "string"
+ },
+ "hosts" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ }
+ },
+ "version_tags" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ }
+ },
+ "desired_configs" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ }
+ }
+ }
+};
+ defs.ConfigGroupWrapper = {
+ "type" : "object",
+ "properties" : {
+ "ConfigGroup" : {
+ "$ref" : "#/definitions/ConfigGroupResponse"
+ }
+ }
+};
defs.ConfigPlacement = {
"type" : "object",
"properties" : {
@@ -1353,7 +1661,7 @@ margin-bottom: 20px;
defs.ConfigurationRequest = {
"type" : "object",
"properties" : {
- "clusterName" : {
+ "Config/cluster_name" : {
"type" : "string"
},
"type" : {
@@ -1363,23 +1671,13 @@ margin-bottom: 20px;
"type" : "integer",
"format" : "int64"
},
- "serviceConfigVersionNote" : {
- "type" : "string"
- },
- "selected" : {
- "type" : "boolean",
- "default" : false
- },
"properties" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
},
- "versionTag" : {
- "type" : "string"
- },
- "propertiesAttributes" : {
+ "properties_attributes" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
@@ -1387,42 +1685,38 @@ margin-bottom: 20px;
"type" : "string"
}
}
+ },
+ "tag" : {
+ "type" : "string"
}
}
};
defs.ConfigurationResponse = {
"type" : "object",
"properties" : {
- "clusterName" : {
+ "Config/cluster_name" : {
"type" : "string"
},
- "stackId" : {
- "$ref" : "#/definitions/StackId"
+ "Config/stack_id" : {
+ "type" : "string"
},
"type" : {
"type" : "string"
},
- "versionTag" : {
+ "tag" : {
"type" : "string"
},
"version" : {
"type" : "integer",
"format" : "int64"
},
- "serviceConfigVersions" : {
- "type" : "array",
- "items" : {
- "type" : "integer",
- "format" : "int64"
- }
- },
- "configs" : {
+ "properties" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
},
- "configAttributes" : {
+ "properties_attributes" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
@@ -1430,16 +1724,6 @@ margin-bottom: 20px;
"type" : "string"
}
}
- },
- "propertiesTypes" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "array",
- "uniqueItems" : true,
- "items" : {
- "type" : "string"
- }
- }
}
}
};
@@ -1462,19 +1746,19 @@ margin-bottom: 20px;
"display_name" : {
"type" : "string"
},
+ "password" : {
+ "type" : "string"
+ },
"active" : {
"type" : "boolean",
"default" : false
},
- "password" : {
+ "local_user_name" : {
"type" : "string"
},
"admin" : {
"type" : "boolean",
"default" : false
- },
- "local_user_name" : {
- "type" : "string"
}
}
};
@@ -1484,22 +1768,22 @@ margin-bottom: 20px;
"display_name" : {
"type" : "string"
},
- "active" : {
- "type" : "boolean",
- "default" : false
- },
"user_name" : {
"type" : "string"
},
"password" : {
"type" : "string"
},
- "admin" : {
+ "active" : {
"type" : "boolean",
"default" : false
},
"local_user_name" : {
"type" : "string"
+ },
+ "admin" : {
+ "type" : "boolean",
+ "default" : false
}
}
};
@@ -1559,7 +1843,7 @@ margin-bottom: 20px;
"type" : {
"type" : "string"
},
- "mountPoint" : {
+ "mountpoint" : {
"type" : "string"
}
}
@@ -1570,10 +1854,19 @@ margin-bottom: 20px;
"userName" : {
"type" : "string"
},
+ "userStatus" : {
+ "type" : "string"
+ },
"userHomeDir" : {
"type" : "string"
},
- "userStatus" : {
+ "name" : {
+ "type" : "string"
+ },
+ "homeDir" : {
+ "type" : "string"
+ },
+ "status" : {
"type" : "string"
}
}
@@ -1610,37 +1903,37 @@ margin-bottom: 20px;
"type" : "object",
"required" : [ "PrivilegeInfo/group_name" ],
"properties" : {
- "PrivilegeInfo/permission_label" : {
+ "permission_label" : {
"type" : "string"
},
- "PrivilegeInfo/privilege_id" : {
+ "privilege_id" : {
"type" : "integer",
"format" : "int32"
},
- "PrivilegeInfo/permission_name" : {
+ "permission_name" : {
"type" : "string"
},
- "PrivilegeInfo/principal_type" : {
+ "principal_type" : {
"type" : "string",
"enum" : [ "USER", "GROUP", "ROLE" ]
},
- "PrivilegeInfo/principal_name" : {
+ "principal_name" : {
"type" : "string"
},
- "PrivilegeInfo/type" : {
+ "type" : {
"type" : "string",
"enum" : [ "AMBARI", "CLUSTER", "VIEW" ]
},
- "PrivilegeInfo/cluster_name" : {
+ "cluster_name" : {
"type" : "string"
},
- "PrivilegeInfo/view_name" : {
+ "view_name" : {
"type" : "string"
},
- "PrivilegeInfo/version" : {
+ "version" : {
"type" : "string"
},
- "PrivilegeInfo/instance_name" : {
+ "instance_name" : {
"type" : "string"
},
"PrivilegeInfo/group_name" : {
@@ -1673,6 +1966,105 @@ margin-bottom: 20px;
}
}
};
+ defs.Host = {
+ "type" : "object",
+ "properties" : {
+ "httpProperty" : {
+ "type" : "string"
+ },
+ "httpsProperty" : {
+ "type" : "string"
+ },
+ "site" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.HostComponentComponent = {
+ "type" : "object",
+ "properties" : {
+ "href" : {
+ "type" : "string"
+ },
+ "ServiceComponentInfo" : {
+ "$ref" : "#/definitions/HostComponentServiceComponentInfo"
+ }
+ }
+};
+ defs.HostComponentHost = {
+ "type" : "object",
+ "properties" : {
+ "href" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.HostComponentMetrics = {
+ "type" : "object"
+};
+ defs.HostComponentProcessResponse = {
+ "type" : "object",
+ "properties" : {
+ "cluster_name" : {
+ "type" : "string"
+ },
+ "host_name" : {
+ "type" : "string"
+ },
+ "component_name" : {
+ "type" : "string"
+ },
+ "valueMap" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ }
+ }
+};
+ defs.HostComponentProcesses = {
+ "type" : "object"
+};
+ defs.HostComponentServiceComponentInfo = {
+ "type" : "object",
+ "properties" : {
+ "component_name" : {
+ "type" : "string"
+ },
+ "cluster_name" : {
+ "type" : "string"
+ },
+ "service_name" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.HostComponentSwagger = {
+ "type" : "object",
+ "properties" : {
+ "host" : {
+ "$ref" : "#/definitions/HostComponentHost"
+ },
+ "component" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/HostComponentComponent"
+ }
+ },
+ "HostRoles" : {
+ "$ref" : "#/definitions/ServiceComponentHostResponse"
+ },
+ "metrics" : {
+ "$ref" : "#/definitions/HostComponentMetrics"
+ },
+ "processes" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/HostComponentProcesses"
+ }
+ }
+ }
+};
defs.HostConfig = {
"type" : "object",
"properties" : {
@@ -1769,10 +2161,10 @@ margin-bottom: 20px;
"maintenance_state" : {
"type" : "string"
},
- "blueprint" : {
+ "host_group" : {
"type" : "string"
},
- "host_group" : {
+ "blueprint" : {
"type" : "string"
},
"public_host_name" : {
@@ -1864,9 +2256,21 @@ margin-bottom: 20px;
}
}
};
+ defs.HostResponseWrapper = {
+ "type" : "object",
+ "properties" : {
+ "Hosts" : {
+ "$ref" : "#/definitions/HostResponse"
+ }
+ }
+};
defs.JavaProc = {
"type" : "object",
"properties" : {
+ "hadoop" : {
+ "type" : "boolean",
+ "default" : false
+ },
"user" : {
"type" : "string"
},
@@ -1876,10 +2280,6 @@ margin-bottom: 20px;
},
"command" : {
"type" : "string"
- },
- "hadoop" : {
- "type" : "boolean",
- "default" : false
}
}
};
@@ -1918,6 +2318,9 @@ margin-bottom: 20px;
"port" : {
"$ref" : "#/definitions/Port"
},
+ "host" : {
+ "$ref" : "#/definitions/Host"
+ },
"protocol" : {
"$ref" : "#/definitions/Protocol"
},
@@ -1974,24 +2377,6 @@ margin-bottom: 20px;
}
}
};
- defs.OperatingSystemEntity = {
- "type" : "object",
- "properties" : {
- "osType" : {
- "type" : "string"
- },
- "repositories" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/RepositoryEntity"
- }
- },
- "ambariManagedRepos" : {
- "type" : "boolean",
- "default" : false
- }
- }
-};
defs.OperationLevel = {
"type" : "object",
"properties" : {
@@ -2112,6 +2497,9 @@ margin-bottom: 20px;
"regex" : {
"type" : "string"
},
+ "httpsRegex" : {
+ "type" : "string"
+ },
"site" : {
"type" : "string"
}
@@ -2120,37 +2508,37 @@ margin-bottom: 20px;
defs.PrivilegeResponse = {
"type" : "object",
"properties" : {
- "PrivilegeInfo/permission_label" : {
+ "permission_label" : {
"type" : "string"
},
- "PrivilegeInfo/privilege_id" : {
+ "privilege_id" : {
"type" : "integer",
"format" : "int32"
},
- "PrivilegeInfo/permission_name" : {
+ "permission_name" : {
"type" : "string"
},
- "PrivilegeInfo/principal_type" : {
+ "principal_type" : {
"type" : "string",
"enum" : [ "USER", "GROUP", "ROLE" ]
},
- "PrivilegeInfo/principal_name" : {
+ "principal_name" : {
"type" : "string"
},
- "PrivilegeInfo/type" : {
+ "type" : {
"type" : "string",
"enum" : [ "AMBARI", "CLUSTER", "VIEW" ]
},
- "PrivilegeInfo/cluster_name" : {
+ "cluster_name" : {
"type" : "string"
},
- "PrivilegeInfo/view_name" : {
+ "view_name" : {
"type" : "string"
},
- "PrivilegeInfo/version" : {
+ "version" : {
"type" : "string"
},
- "PrivilegeInfo/instance_name" : {
+ "instance_name" : {
"type" : "string"
}
}
@@ -2212,17 +2600,17 @@ margin-bottom: 20px;
"file_name" : {
"type" : "string"
},
- "service_name" : {
+ "stack_name" : {
"type" : "string"
},
- "quicklink_data" : {
- "$ref" : "#/definitions/QuickLinksConfiguration"
- },
"stack_version" : {
"type" : "string"
},
- "stack_name" : {
+ "service_name" : {
"type" : "string"
+ },
+ "quicklink_data" : {
+ "$ref" : "#/definitions/QuickLinksConfiguration"
}
}
};
@@ -2232,7 +2620,7 @@ margin-bottom: 20px;
"summary" : {
"type" : "string"
},
- "componentReports" : {
+ "component_reports" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ComponentRecoveryReport"
@@ -2248,7 +2636,7 @@ margin-bottom: 20px;
"xml" : {
"name" : "type"
},
- "enum" : [ "STANDARD", "PATCH", "SERVICE" ]
+ "enum" : [ "STANDARD", "PATCH", "MAINT", "SERVICE" ]
},
"stackId" : {
"type" : "string",
@@ -2285,42 +2673,112 @@ margin-bottom: 20px;
defs.Repo = {
"type" : "object",
"properties" : {
+ "distribution" : {
+ "type" : "string"
+ },
+ "components" : {
+ "type" : "string"
+ },
"unique" : {
"type" : "boolean",
"default" : false
},
- "repoId" : {
- "type" : "string"
+ "tags" : {
+ "type" : "array",
+ "xml" : {
+ "name" : "tag",
+ "wrapped" : true
+ },
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "string",
+ "enum" : [ "GPL" ]
+ }
},
- "baseUrl" : {
+ "mirrorsList" : {
"type" : "string"
},
- "mirrorsList" : {
+ "repoId" : {
"type" : "string"
},
"repoName" : {
"type" : "string"
+ },
+ "baseUrl" : {
+ "type" : "string"
}
}
};
- defs.RepositoryEntity = {
+ defs.RepoDefinitionEntity = {
"type" : "object",
"properties" : {
- "name" : {
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "repoOs" : {
+ "$ref" : "#/definitions/RepoOsEntity"
+ },
+ "repoName" : {
+ "type" : "string"
+ },
+ "repoID" : {
"type" : "string"
},
"baseUrl" : {
"type" : "string"
},
- "repositoryId" : {
+ "mirrors" : {
"type" : "string"
},
- "mirrorsList" : {
+ "distribution" : {
+ "type" : "string"
+ },
+ "components" : {
"type" : "string"
},
"unique" : {
"type" : "boolean",
"default" : false
+ },
+ "applicableServices" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "tags" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "string",
+ "enum" : [ "GPL" ]
+ }
+ }
+ }
+};
+ defs.RepoOsEntity = {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "family" : {
+ "type" : "string"
+ },
+ "ambariManaged" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "repoDefinitionEntities" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/RepoDefinitionEntity"
+ }
+ },
+ "repositoryVersionEntity" : {
+ "$ref" : "#/definitions/RepositoryVersionEntity"
}
}
};
@@ -2339,6 +2797,12 @@ margin-bottom: 20px;
"repoName" : {
"type" : "string"
},
+ "distribution" : {
+ "type" : "string"
+ },
+ "components" : {
+ "type" : "string"
+ },
"mirrorsList" : {
"type" : "string"
},
@@ -2356,6 +2820,20 @@ margin-bottom: 20px;
"ambariManagedRepositories" : {
"type" : "boolean",
"default" : false
+ },
+ "applicableServices" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "tags" : {
+ "type" : "array",
+ "uniqueItems" : true,
+ "items" : {
+ "type" : "string",
+ "enum" : [ "GPL" ]
+ }
}
}
};
@@ -2375,15 +2853,15 @@ margin-bottom: 20px;
"displayName" : {
"type" : "string"
},
- "operatingSystems" : {
+ "repoOsEntities" : {
"type" : "array",
"items" : {
- "$ref" : "#/definitions/OperatingSystemEntity"
+ "$ref" : "#/definitions/RepoOsEntity"
}
},
"type" : {
"type" : "string",
- "enum" : [ "STANDARD", "PATCH", "SERVICE" ]
+ "enum" : [ "STANDARD", "PATCH", "MAINT", "SERVICE" ]
},
"versionXml" : {
"type" : "string"
@@ -2394,30 +2872,39 @@ margin-bottom: 20px;
"versionXsd" : {
"type" : "string"
},
+ "resolved" : {
+ "type" : "boolean",
+ "default" : false
+ },
"children" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/RepositoryVersionEntity"
}
},
- "repositoryXml" : {
- "$ref" : "#/definitions/VersionDefinitionXml"
+ "hidden" : {
+ "type" : "boolean",
+ "default" : false
},
- "stackId" : {
- "$ref" : "#/definitions/StackId"
+ "stackName" : {
+ "type" : "string"
},
"stackVersion" : {
"type" : "string"
},
- "operatingSystemsJson" : {
- "type" : "string"
+ "legacy" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "repositoryXml" : {
+ "$ref" : "#/definitions/VersionDefinitionXml"
},
"parentId" : {
"type" : "integer",
"format" : "int64"
},
- "stackName" : {
- "type" : "string"
+ "stackId" : {
+ "$ref" : "#/definitions/StackId"
}
}
};
@@ -2437,16 +2924,16 @@ margin-bottom: 20px;
"type" : "boolean",
"default" : false
},
- "repositories" : {
+ "errors" : {
"type" : "array",
"items" : {
- "$ref" : "#/definitions/RepositoryInfo"
+ "type" : "string"
}
},
- "errors" : {
+ "repositories" : {
"type" : "array",
"items" : {
- "type" : "string"
+ "$ref" : "#/definitions/RepositoryInfo"
}
},
"latestURI" : {
@@ -2460,18 +2947,32 @@ margin-bottom: 20px;
defs.Request = {
"type" : "object",
"properties" : {
+ "resource_filters" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/RequestResourceFilter"
+ }
+ },
"exclusive" : {
"type" : "boolean",
"default" : false
},
- "resource_filters" : {
+ "cluster_name" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.RequestBodyInfo = {
+ "type" : "object",
+ "properties" : {
+ "Requests/resource_filters" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/RequestResourceFilter"
}
},
- "cluster_name" : {
- "type" : "string"
+ "RequestInfo" : {
+ "$ref" : "#/definitions/RequestInfo"
}
}
};
@@ -2485,14 +2986,14 @@ margin-bottom: 20px;
"properties" : { }
}
},
- "operation_level" : {
- "$ref" : "#/definitions/OperationLevel"
- },
"command" : {
"type" : "string"
},
"action" : {
"type" : "string"
+ },
+ "operation_level" : {
+ "$ref" : "#/definitions/OperationLevel"
}
}
};
@@ -2549,16 +3050,16 @@ margin-bottom: 20px;
defs.RequestResourceFilter = {
"type" : "object",
"properties" : {
- "hosts_predicate" : {
+ "hosts" : {
"type" : "string"
},
- "hosts" : {
+ "component_name" : {
"type" : "string"
},
- "service_name" : {
+ "hosts_predicate" : {
"type" : "string"
},
- "component_name" : {
+ "service_name" : {
"type" : "string"
}
}
@@ -2571,6 +3072,79 @@ margin-bottom: 20px;
}
}
};
+ defs.RequestScheduleRequestElement = {
+ "type" : "object",
+ "properties" : {
+ "schedule" : {
+ "$ref" : "#/definitions/ScheduleRequest"
+ },
+ "batch" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BatchRequest"
+ }
+ }
+ }
+};
+ defs.RequestScheduleRequestSwagger = {
+ "type" : "object",
+ "properties" : {
+ "RequestSchedule" : {
+ "$ref" : "#/definitions/RequestScheduleRequestElement"
+ }
+ }
+};
+ defs.RequestScheduleResponseElement = {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
+ "description" : {
+ "type" : "string"
+ },
+ "status" : {
+ "type" : "string"
+ },
+ "schedule" : {
+ "$ref" : "#/definitions/ScheduleResponse"
+ },
+ "batch" : {
+ "$ref" : "#/definitions/BatchResponse"
+ },
+ "create_user" : {
+ "type" : "string"
+ },
+ "update_user" : {
+ "type" : "string"
+ },
+ "update_time" : {
+ "type" : "string"
+ },
+ "last_execution_status" : {
+ "type" : "string"
+ },
+ "authenticated_user" : {
+ "type" : "integer",
+ "format" : "int32"
+ },
+ "cluster_name" : {
+ "type" : "string"
+ },
+ "create_time" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.RequestScheduleResponseSwagger = {
+ "type" : "object",
+ "properties" : {
+ "RequestSchedule" : {
+ "$ref" : "#/definitions/RequestScheduleResponseElement"
+ }
+ }
+};
defs.RequestStatusInfo = {
"type" : "object",
"properties" : {
@@ -2593,31 +3167,30 @@ margin-bottom: 20px;
"completed_task_count" : {
"type" : "string"
},
- "aborted_task_count" : {
- "type" : "integer",
- "format" : "int32"
+ "request_schedule" : {
+ "type" : "string"
},
"end_time" : {
"type" : "string"
},
- "exclusive" : {
- "type" : "boolean",
- "default" : false
+ "id" : {
+ "type" : "string"
+ },
+ "aborted_task_count" : {
+ "type" : "integer",
+ "format" : "int32"
},
"failed_task_count" : {
"type" : "integer",
"format" : "int32"
},
- "operation_level" : {
+ "inputs" : {
"type" : "string"
},
"progress_percent" : {
"type" : "number",
"format" : "double"
},
- "id" : {
- "type" : "string"
- },
"queued_task_count" : {
"type" : "integer",
"format" : "int32"
@@ -2632,21 +3205,79 @@ margin-bottom: 20px;
"$ref" : "#/definitions/RequestResourceFilter"
}
},
+ "exclusive" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "cluster_name" : {
+ "type" : "string"
+ },
"create_time" : {
"type" : "integer",
"format" : "int64"
},
- "inputs" : {
+ "operation_level" : {
"type" : "string"
+ }
+ }
+};
+ defs.RootServiceComponentConfigurationRequestInfo = {
+ "type" : "object",
+ "properties" : {
+ "properties" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
},
- "cluster_name" : {
+ "categoryName" : {
"type" : "string"
},
- "request_schedule" : {
+ "componentName" : {
+ "type" : "string"
+ },
+ "serviceName" : {
"type" : "string"
}
}
};
+ defs.RootServiceComponentConfigurationRequestSwagger = {
+ "type" : "object",
+ "properties" : {
+ "Configuration" : {
+ "$ref" : "#/definitions/RootServiceComponentConfigurationRequestInfo"
+ }
+ }
+};
+ defs.RootServiceComponentConfigurationResponseInfo = {
+ "type" : "object",
+ "properties" : {
+ "properties" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
+ "categoryName" : {
+ "type" : "string"
+ },
+ "componentName" : {
+ "type" : "string"
+ },
+ "serviceName" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.RootServiceComponentConfigurationResponseSwagger = {
+ "type" : "object",
+ "properties" : {
+ "Configuration" : {
+ "$ref" : "#/definitions/RootServiceComponentConfigurationResponseInfo"
+ }
+ }
+};
defs.RootServiceComponentResponse = {
"type" : "object",
"properties" : {
@@ -2757,6 +3388,64 @@ margin-bottom: 20px;
}
}
};
+ defs.ScheduleRequest = {
+ "type" : "object",
+ "properties" : {
+ "startTime" : {
+ "type" : "string"
+ },
+ "day_of_week" : {
+ "type" : "string"
+ },
+ "month" : {
+ "type" : "string"
+ },
+ "hours" : {
+ "type" : "string"
+ },
+ "minutes" : {
+ "type" : "string"
+ },
+ "year" : {
+ "type" : "string"
+ },
+ "days_of_month" : {
+ "type" : "string"
+ },
+ "endTime" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.ScheduleResponse = {
+ "type" : "object",
+ "properties" : {
+ "start_time" : {
+ "type" : "string"
+ },
+ "day_of_week" : {
+ "type" : "string"
+ },
+ "month" : {
+ "type" : "string"
+ },
+ "hours" : {
+ "type" : "string"
+ },
+ "minutes" : {
+ "type" : "string"
+ },
+ "year" : {
+ "type" : "string"
+ },
+ "days_of_month" : {
+ "type" : "string"
+ },
+ "end_time" : {
+ "type" : "string"
+ }
+ }
+};
defs.Section = {
"type" : "object",
"properties" : {
@@ -2799,50 +3488,109 @@ margin-bottom: 20px;
defs.SecurityInfo = {
"type" : "object",
"properties" : {
+ "kerberos_descriptor" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
"kerberos_descriptor_reference" : {
"type" : "string"
},
"security_type" : {
"type" : "string",
"enum" : [ "NONE", "KERBEROS" ]
+ }
+ }
+};
+ defs.ServiceComponentHostResponse = {
+ "type" : "object",
+ "properties" : {
+ "cluster_name" : {
+ "type" : "string"
},
- "kerberos_descriptor" : {
+ "service_name" : {
+ "type" : "string"
+ },
+ "component_name" : {
+ "type" : "string"
+ },
+ "display_name" : {
+ "type" : "string"
+ },
+ "public_host_name" : {
+ "type" : "string"
+ },
+ "host_name" : {
+ "type" : "string"
+ },
+ "actual_configs" : {
"type" : "object",
"additionalProperties" : {
- "type" : "object",
- "properties" : { }
+ "$ref" : "#/definitions/HostConfig"
}
+ },
+ "state" : {
+ "type" : "string"
+ },
+ "version" : {
+ "type" : "string"
+ },
+ "desired_stack_id" : {
+ "type" : "string"
+ },
+ "desired_repository_version" : {
+ "type" : "string"
+ },
+ "desired_state" : {
+ "type" : "string"
+ },
+ "stale_configs" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "reload_configs" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "maintenance_state" : {
+ "type" : "string"
+ },
+ "upgrade_state" : {
+ "type" : "string",
+ "enum" : [ "NONE", "COMPLETE", "IN_PROGRESS", "FAILED", "VERSION_MISMATCH" ]
}
}
};
defs.ServiceConfigVersionRequest = {
"type" : "object",
"properties" : {
- "clusterName" : {
+ "cluster_name" : {
"type" : "string"
},
- "serviceName" : {
+ "service_name" : {
"type" : "string"
},
- "version" : {
+ "service_config_version" : {
"type" : "integer",
"format" : "int64"
},
- "createTime" : {
+ "createtime" : {
"type" : "integer",
"format" : "int64"
},
- "applyTime" : {
+ "appliedtime" : {
"type" : "integer",
"format" : "int64"
},
- "userName" : {
+ "user" : {
"type" : "string"
},
- "note" : {
+ "service_config_version_note" : {
"type" : "string"
},
- "isCurrent" : {
+ "is_current" : {
"type" : "boolean",
"default" : false
}
@@ -2851,37 +3599,37 @@ margin-bottom: 20px;
defs.ServiceConfigVersionResponse = {
"type" : "object",
"properties" : {
- "clusterName" : {
+ "cluster_name" : {
"type" : "string"
},
- "serviceName" : {
+ "service_name" : {
"type" : "string"
},
- "version" : {
+ "service_config_version" : {
"type" : "integer",
"format" : "int64"
},
- "createTime" : {
+ "createtime" : {
"type" : "integer",
"format" : "int64"
},
- "groupId" : {
+ "group_id" : {
"type" : "integer",
"format" : "int64"
},
- "groupName" : {
+ "group_name" : {
"type" : "string"
},
- "userName" : {
+ "user" : {
"type" : "string"
},
- "note" : {
+ "service_config_version_note" : {
"type" : "string"
},
- "stackId" : {
+ "stack_id" : {
"type" : "string"
},
- "isCurrent" : {
+ "is_current" : {
"type" : "boolean",
"default" : false
},
@@ -2897,7 +3645,7 @@ margin-bottom: 20px;
"type" : "string"
}
},
- "compatibleWithCurrentStack" : {
+ "is_cluster_compatible" : {
"type" : "boolean",
"default" : false
}
@@ -2924,11 +3672,9 @@ margin-bottom: 20px;
"credential_store_supporteds" : {
"type" : "string"
},
- "desiredStack" : {
- "type" : "string"
- },
- "desiredRepositoryVersion" : {
- "type" : "string"
+ "desiredRepositoryVersionId" : {
+ "type" : "integer",
+ "format" : "int64"
},
"resolvedRepository" : {
"$ref" : "#/definitions/RepositoryVersionEntity"
@@ -2955,6 +3701,10 @@ margin-bottom: 20px;
"desiredRepositoryVersion" : {
"type" : "string"
},
+ "desiredRepositoryVersionId" : {
+ "type" : "integer",
+ "format" : "int64"
+ },
"repositoryVersionState" : {
"type" : "string",
"enum" : [ "NOT_REQUIRED", "INSTALLING", "INSTALLED", "INSTALL_FAILED", "OUT_OF_SYNC", "CURRENT" ]
@@ -2972,6 +3722,18 @@ margin-bottom: 20px;
"credential_store_enabled" : {
"type" : "boolean",
"default" : false
+ },
+ "sso_integration_supported" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "sso_integration_desired" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "sso_integration_enabled" : {
+ "type" : "boolean",
+ "default" : false
}
}
};
@@ -3134,7 +3896,7 @@ margin-bottom: 20px;
"uniqueItems" : true,
"items" : {
"type" : "string",
- "enum" : [ "PASSWORD", "USER", "GROUP", "TEXT", "ADDITIONAL_USER_PROPERTY", "NOT_MANAGED_HDFS_PATH", "VALUE_FROM_PROPERTY_FILE", "KERBEROS_PRINCIPAL" ]
+ "enum" : [ "PASSWORD", "USER", "UID", "GROUP", "GID", "TEXT", "ADDITIONAL_USER_PROPERTY", "NOT_MANAGED_HDFS_PATH", "VALUE_FROM_PROPERTY_FILE", "KERBEROS_PRINCIPAL" ]
}
}
}
@@ -3235,6 +3997,16 @@ margin-bottom: 20px;
"type" : "boolean",
"default" : false
},
+ "rollingRestartSupported" : {
+ "type" : "boolean",
+ "default" : false
+ },
+ "customCommands" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
"custom_commands" : {
"type" : "array",
"items" : {
@@ -3248,17 +4020,20 @@ margin-bottom: 20px;
"bulkCommandsDisplayName" : {
"type" : "string"
},
+ "componentType" : {
+ "type" : "string"
+ },
"is_master" : {
"type" : "boolean",
"default" : false
},
- "bulk_commands_master_component_namen" : {
- "type" : "string"
- },
"is_client" : {
"type" : "boolean",
"default" : false
},
+ "bulk_commands_master_component_namen" : {
+ "type" : "string"
+ },
"decommission_allowed" : {
"type" : "boolean",
"default" : false
@@ -3353,6 +4128,10 @@ margin-bottom: 20px;
"credential_store_required" : {
"type" : "boolean",
"default" : false
+ },
+ "sso_integration_supported" : {
+ "type" : "boolean",
+ "default" : false
}
}
};
@@ -3566,17 +4345,17 @@ margin-bottom: 20px;
"file_name" : {
"type" : "string"
},
- "service_name" : {
+ "stack_name" : {
"type" : "string"
},
"stack_version" : {
"type" : "string"
},
+ "service_name" : {
+ "type" : "string"
+ },
"theme_data" : {
"$ref" : "#/definitions/Theme"
- },
- "stack_name" : {
- "type" : "string"
}
}
};
@@ -3602,14 +4381,10 @@ margin-bottom: 20px;
"display_name" : {
"type" : "string"
},
- "active" : {
- "type" : "boolean",
- "default" : false
- },
"password" : {
"type" : "string"
},
- "admin" : {
+ "active" : {
"type" : "boolean",
"default" : false
},
@@ -3618,6 +4393,10 @@ margin-bottom: 20px;
},
"old_password" : {
"type" : "string"
+ },
+ "admin" : {
+ "type" : "boolean",
+ "default" : false
}
}
};
@@ -3730,37 +4509,37 @@ margin-bottom: 20px;
"type" : "object",
"required" : [ "PrivilegeInfo/user_name" ],
"properties" : {
- "PrivilegeInfo/permission_label" : {
+ "permission_label" : {
"type" : "string"
},
- "PrivilegeInfo/privilege_id" : {
+ "privilege_id" : {
"type" : "integer",
"format" : "int32"
},
- "PrivilegeInfo/permission_name" : {
+ "permission_name" : {
"type" : "string"
},
- "PrivilegeInfo/principal_type" : {
+ "principal_type" : {
"type" : "string",
"enum" : [ "USER", "GROUP", "ROLE" ]
},
- "PrivilegeInfo/principal_name" : {
+ "principal_name" : {
"type" : "string"
},
- "PrivilegeInfo/type" : {
+ "type" : {
"type" : "string",
"enum" : [ "AMBARI", "CLUSTER", "VIEW" ]
},
- "PrivilegeInfo/cluster_name" : {
+ "cluster_name" : {
"type" : "string"
},
- "PrivilegeInfo/view_name" : {
+ "view_name" : {
"type" : "string"
},
- "PrivilegeInfo/version" : {
+ "version" : {
"type" : "string"
},
- "PrivilegeInfo/instance_name" : {
+ "instance_name" : {
"type" : "string"
},
"PrivilegeInfo/user_name" : {
@@ -3817,13 +4596,13 @@ margin-bottom: 20px;
"type" : "integer",
"format" : "int32"
},
+ "user_name" : {
+ "type" : "string"
+ },
"active" : {
"type" : "boolean",
"default" : false
},
- "user_name" : {
- "type" : "string"
- },
"admin" : {
"type" : "boolean",
"default" : false
@@ -3848,12 +4627,12 @@ margin-bottom: 20px;
defs.ValidationResult = {
"type" : "object",
"properties" : {
+ "detail" : {
+ "type" : "string"
+ },
"valid" : {
"type" : "boolean",
"default" : false
- },
- "detail" : {
- "type" : "string"
}
}
};
@@ -4001,13 +4780,6 @@ margin-bottom: 20px;
"xsdLocation" : {
"type" : "string"
},
- "availableServiceNames" : {
- "type" : "array",
- "uniqueItems" : true,
- "items" : {
- "type" : "string"
- }
- },
"stackDefault" : {
"type" : "boolean",
"default" : false
@@ -4025,55 +4797,6 @@ margin-bottom: 20px;
}
}
};
- defs.ViewInstanceRequest = {
- "type" : "object",
- "properties" : {
- "ViewInstanceInfo" : {
- "$ref" : "#/definitions/ViewInstanceRequestInfo"
- }
- }
-};
- defs.ViewInstanceRequestInfo = {
- "type" : "object",
- "properties" : {
- "label" : {
- "type" : "string"
- },
- "description" : {
- "type" : "string"
- },
- "visible" : {
- "type" : "boolean",
- "default" : false
- },
- "icon_path" : {
- "type" : "string"
- },
- "icon64_path" : {
- "type" : "string"
- },
- "properties" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "instance_data" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "cluster_handle" : {
- "type" : "integer",
- "format" : "int32"
- },
- "cluster_type" : {
- "type" : "string",
- "enum" : [ "LOCAL_AMBARI", "REMOTE_AMBARI", "NONE" ]
- }
- }
-};
defs.ViewInstanceResponse = {
"type" : "object",
"properties" : {
@@ -4178,57 +4901,53 @@ margin-bottom: 20px;
defs.ViewPermissionResponse = {
"type" : "object",
"properties" : {
- "ViewPermissionInfo" : {
+ "PermissionInfo" : {
"$ref" : "#/definitions/ViewPermissionInfo"
}
}
};
- defs.ViewPrivilegeRequest = {
- "type" : "object",
- "properties" : {
- "PrivilegeInfo/permission_name" : {
- "type" : "string"
- },
- "PrivilegeInfo/principal_type" : {
- "type" : "string",
- "enum" : [ "USER", "GROUP", "ROLE" ]
- },
- "PrivilegeInfo/principal_name" : {
- "type" : "string"
- }
- }
-};
defs.ViewPrivilegeResponse = {
"type" : "object",
"properties" : {
- "PrivilegeInfo/permission_label" : {
+ "permission_label" : {
"type" : "string"
},
- "PrivilegeInfo/privilege_id" : {
+ "privilege_id" : {
"type" : "integer",
"format" : "int32"
},
- "PrivilegeInfo/permission_name" : {
+ "permission_name" : {
"type" : "string"
},
- "PrivilegeInfo/principal_type" : {
+ "principal_type" : {
"type" : "string",
"enum" : [ "USER", "GROUP", "ROLE" ]
},
- "PrivilegeInfo/principal_name" : {
+ "principal_name" : {
"type" : "string"
},
- "PrivilegeInfo/view_name" : {
+ "view_name" : {
"type" : "string"
},
- "PrivilegeInfo/version" : {
+ "version" : {
"type" : "string"
},
- "PrivilegeInfo/instance_name" : {
+ "instance_name" : {
"type" : "string"
}
}
};
+ defs.ViewPrivilegeResponseWrapper = {
+ "type" : "object",
+ "properties" : {
+ "PrivilegeInfo" : {
+ "$ref" : "#/definitions/ViewPrivilegeResponse"
+ }
+ }
+};
+ defs.ViewPrivilegeService = {
+ "type" : "object"
+};
defs.ViewResponse = {
"type" : "object",
"properties" : {
@@ -4237,6 +4956,34 @@ margin-bottom: 20px;
}
}
};
+ defs.ViewUrlInfo = {
+ "type" : "object",
+ "properties" : {
+ "url_name" : {
+ "type" : "string"
+ },
+ "url_suffix" : {
+ "type" : "string"
+ },
+ "view_instance_common_name" : {
+ "type" : "string"
+ },
+ "view_instance_version" : {
+ "type" : "string"
+ },
+ "view_instance_name" : {
+ "type" : "string"
+ }
+ }
+};
+ defs.ViewUrlResponseSwagger = {
+ "type" : "object",
+ "properties" : {
+ "ViewUrlInfo" : {
+ "$ref" : "#/definitions/ViewUrlInfo"
+ }
+ }
+};
defs.ViewVersionInfo = {
"type" : "object",
"properties" : {
@@ -4381,14 +5128,9 @@ margin-bottom: 20px;
},
"clusterName" : {
"type" : "string"
- }
- }
-};
- defs.Wrapper = {
- "type" : "object",
- "properties" : {
- "Hosts" : {
- "$ref" : "#/definitions/HostResponse"
+ },
+ "tag" : {
+ "type" : "string"
}
}
};
@@ -4424,6 +5166,22 @@ margin-bottom: 20px;
<li data-group="Actions" data-name="actionServiceUpdateActionDefinition" class="">
<a href="#api-Actions-actionServiceUpdateActionDefinition">actionServiceUpdateActionDefinition</a>
</li>
+ <li class="nav-header" data-group="Alerts"><a href="#api-Alerts">API Methods - Alerts</a></li>
+ <li data-group="Alerts" data-name="createTarget" class="">
+ <a href="#api-Alerts-createTarget">createTarget</a>
+ </li>
+ <li data-group="Alerts" data-name="deleteTarget" class="">
+ <a href="#api-Alerts-deleteTarget">deleteTarget</a>
+ </li>
+ <li data-group="Alerts" data-name="getTarget" class="">
+ <a href="#api-Alerts-getTarget">getTarget</a>
+ </li>
+ <li data-group="Alerts" data-name="getTargets" class="">
+ <a href="#api-Alerts-getTargets">getTargets</a>
+ </li>
+ <li data-group="Alerts" data-name="updateTarget" class="">
+ <a href="#api-Alerts-updateTarget">updateTarget</a>
+ </li>
<li class="nav-header" data-group="Blueprints"><a href="#api-Blueprints">API Methods - Blueprints</a></li>
<li data-group="Blueprints" data-name="blueprintServiceCreateBlueprint" class="">
<a href="#api-Blueprints-blueprintServiceCreateBlueprint">blueprintServiceCreateBlueprint</a>
@@ -4514,6 +5272,32 @@ margin-bottom: 20px;
<li data-group="Clusters" data-name="updateClusterArtifacts" class="">
<a href="#api-Clusters-updateClusterArtifacts">updateClusterArtifacts</a>
</li>
+ <li class="nav-header" data-group="ConfigGroups"><a href="#api-ConfigGroups">API Methods - ConfigGroups</a></li>
+ <li data-group="ConfigGroups" data-name="createConfigGroup" class="">
+ <a href="#api-ConfigGroups-createConfigGroup">createConfigGroup</a>
+ </li>
+ <li data-group="ConfigGroups" data-name="deleteConfigGroup" class="">
+ <a href="#api-ConfigGroups-deleteConfigGroup">deleteConfigGroup</a>
+ </li>
+ <li data-group="ConfigGroups" data-name="getConfigGroup" class="">
+ <a href="#api-ConfigGroups-getConfigGroup">getConfigGroup</a>
+ </li>
+ <li data-group="ConfigGroups" data-name="getConfigGroups" class="">
+ <a href="#api-ConfigGroups-getConfigGroups">getConfigGroups</a>
+ </li>
+ <li data-group="ConfigGroups" data-name="updateConfigGroup" class="">
+ <a href="#api-ConfigGroups-updateConfigGroup">updateConfigGroup</a>
+ </li>
+ <li class="nav-header" data-group="Configurations"><a href="#api-Configurations">API Methods - Configurations</a></li>
+ <li data-group="Configurations" data-name="createConfigurations" class="">
+ <a href="#api-Configurations-createConfigurations">createConfigurations</a>
+ </li>
+ <li data-group="Configurations" data-name="getConfigurations" class="">
+ <a href="#api-Configurations-getConfigurations">getConfigurations</a>
+ </li>
+ <li data-group="Configurations" data-name="getServiceConfigVersions" class="">
+ <a href="#api-Configurations-getServiceConfigVersions">getServiceConfigVersions</a>
+ </li>
<li class="nav-header" data-group="Groups"><a href="#api-Groups">API Methods - Groups</a></li>
<li data-group="Groups" data-name="groupPrivilegeServiceGetPrivilege" class="">
<a href="#api-Groups-groupPrivilegeServiceGetPrivilege">groupPrivilegeServiceGetPrivilege</a>
@@ -4545,6 +5329,28 @@ margin-bottom: 20px;
<li data-group="Groups" data-name="memberServiceUpdateMembers" class="">
<a href="#api-Groups-memberServiceUpdateMembers">memberServiceUpdateMembers</a>
</li>
+ <li class="nav-header" data-group="HostComponents"><a href="#api-HostComponents">API Methods - HostComponents</a></li>
+ <li data-group="HostComponents" data-name="createHostComponent" class="">
+ <a href="#api-HostComponents-createHostComponent">createHostComponent</a>
+ </li>
+ <li data-group="HostComponents" data-name="deleteHostComponent" class="">
+ <a href="#api-HostComponents-deleteHostComponent">deleteHostComponent</a>
+ </li>
+ <li data-group="HostComponents" data-name="deleteHostComponents" class="">
+ <a href="#api-HostComponents-deleteHostComponents">deleteHostComponents</a>
+ </li>
+ <li data-group="HostComponents" data-name="getHostComponent" class="">
+ <a href="#api-HostComponents-getHostComponent">getHostComponent</a>
+ </li>
+ <li data-group="HostComponents" data-name="getHostComponents" class="">
+ <a href="#api-HostComponents-getHostComponents">getHostComponents</a>
+ </li>
+ <li data-group="HostComponents" data-name="getProcesses" class="">
+ <a href="#api-HostComponents-getProcesses">getProcesses</a>
+ </li>
+ <li data-group="HostComponents" data-name="updateHostComponent" class="">
+ <a href="#api-HostComponents-updateHostComponent">updateHostComponent</a>
+ </li>
<li class="nav-header" data-group="Hosts"><a href="#api-Hosts">API Methods - Hosts</a></li>
<li data-group="Hosts" data-name="createHost" class="">
<a href="#api-Hosts-createHost">createHost</a>
@@ -4570,6 +5376,19 @@ margin-bottom: 20px;
<li data-group="Hosts" data-name="updateHosts" class="">
<a href="#api-Hosts-updateHosts">updateHosts</a>
</li>
+ <li class="nav-header" data-group="RequestSchedules"><a href="#api-RequestSchedules">API Methods - RequestSchedules</a></li>
+ <li data-group="RequestSchedules" data-name="createRequestSchedule" class="">
+ <a href="#api-RequestSchedules-createRequestSchedule">createRequestSchedule</a>
+ </li>
+ <li data-group="RequestSchedules" data-name="deleteRequestSchedule" class="">
+ <a href="#api-RequestSchedules-deleteRequestSchedule">deleteRequestSchedule</a>
+ </li>
+ <li data-group="RequestSchedules" data-name="getRequestSchedule" class="">
+ <a href="#api-RequestSchedules-getRequestSchedule">getRequestSchedule</a>
+ </li>
+ <li data-group="RequestSchedules" data-name="getRequestSchedules" class="">
+ <a href="#api-RequestSchedules-getRequestSchedules">getRequestSchedules</a>
+ </li>
<li class="nav-header" data-group="Requests"><a href="#api-Requests">API Methods - Requests</a></li>
<li data-group="Requests" data-name="requestServiceCreateRequests" class="">
<a href="#api-Requests-requestServiceCreateRequests">requestServiceCreateRequests</a>
@@ -4583,6 +5402,16 @@ margin-bottom: 20px;
<li data-group="Requests" data-name="requestServiceUpdateRequests" class="">
<a href="#api-Requests-requestServiceUpdateRequests">requestServiceUpdateRequests</a>
</li>
+ <li class="nav-header" data-group="RootServiceConfigurations"><a href="#api-RootServiceConfigurations">API Methods - RootServiceConfigurations</a></li>
+ <li data-group="RootServiceConfigurations" data-name="rootServiceComponentConfigurationServiceDeleteConfiguration" class="">
+ <a href="#api-RootServiceConfigurations-rootServiceComponentConfigurationServiceDeleteConfiguration">rootServiceComponentConfigurationServiceDeleteConfiguration</a>
+ </li>
+ <li data-group="RootServiceConfigurations" data-name="rootServiceComponentConfigurationServiceGetConfiguration" class="">
+ <a href="#api-RootServiceConfigurations-rootServiceComponentConfigurationServiceGetConfiguration">rootServiceComponentConfigurationServiceGetConfiguration</a>
+ </li>
+ <li data-group="RootServiceConfigurations" data-name="rootServiceComponentConfigurationServiceUpdateConfiguration" class="">
+ <a href="#api-RootServiceConfigurations-rootServiceComponentConfigurationServiceUpdateConfiguration">rootServiceComponentConfigurationServiceUpdateConfiguration</a>
+ </li>
<li class="nav-header" data-group="Services"><a href="#api-Services">API Methods - Services</a></li>
<li data-group="Services" data-name="getRootHost" class="">
<a href="#api-Services-getRootHost">getRootHost</a>
@@ -4754,53 +5583,80 @@ margin-bottom: 20px;
<a href="#api-Users-userPrivilegeServiceGetPrivileges">userPrivilegeServiceGetPrivileges</a>
</li>
<li class="nav-header" data-group="Views"><a href="#api-Views">API Methods - Views</a></li>
- <li data-group="Views" data-name="viewDataMigrationServiceMigrateData" class="">
- <a href="#api-Views-viewDataMigrationServiceMigrateData">viewDataMigrationServiceMigrateData</a>
+ <li data-group="Views" data-name="createPrivilege" class="">
+ <a href="#api-Views-createPrivilege">createPrivilege</a>
+ </li>
+ <li data-group="Views" data-name="createService" class="">
+ <a href="#api-Views-createService">createService</a>
+ </li>
+ <li data-group="Views" data-name="createServices" class="">
+ <a href="#api-Views-createServices">createServices</a>
+ </li>
+ <li data-group="Views" data-name="createUrl" class="">
+ <a href="#api-Views-createUrl">createUrl</a>
</li>
- <li data-group="Views" data-name="viewInstanceServiceCreateService" class="">
- <a href="#api-Views-viewInstanceServiceCreateService">viewInstanceServiceCreateService</a>
+ <li data-group="Views" data-name="deletePrivilege" class="">
+ <a href="#api-Views-deletePrivilege">deletePrivilege</a>
</li>
- <li data-group="Views" data-name="viewInstanceServiceDeleteService" class="">
- <a href="#api-Views-viewInstanceServiceDeleteService">viewInstanceServiceDeleteService</a>
+ <li data-group="Views" data-name="deletePrivileges" class="">
+ <a href="#api-Views-deletePrivileges">deletePrivileges</a>
</li>
- <li data-group="Views" data-name="viewInstanceServiceGetService" class="">
- <a href="#api-Views-viewInstanceServiceGetService">viewInstanceServiceGetService</a>
+ <li data-group="Views" data-name="deleteService" class="">
+ <a href="#api-Views-deleteService">deleteService</a>
</li>
- <li data-group="Views" data-name="viewInstanceServiceGetServices" class="">
- <a href="#api-Views-viewInstanceServiceGetServices">viewInstanceServiceGetServices</a>
+ <li data-group="Views" data-name="deleteUrl" class="">
+ <a href="#api-Views-deleteUrl">deleteUrl</a>
</li>
- <li data-group="Views" data-name="viewInstanceServiceUpdateService" class="">
- <a href="#api-Views-viewInstanceServiceUpdateService">viewInstanceServiceUpdateService</a>
+ <li data-group="Views" data-name="getPermission" class="">
+ <a href="#api-Views-getPermission">getPermission</a>
</li>
- <li data-group="Views" data-name="viewPermissionServiceGetPermission" class="">
- <a href="#api-Views-viewPermissionServiceGetPermission">viewPermissionServiceGetPermission</a>
+ <li data-group="Views" data-name="getPermissions" class="">
+ <a href="#api-Views-getPermissions">getPermissions</a>
</li>
- <li data-group="Views" data-name="viewPermissionServiceGetPermissions" class="">
- <a href="#api-Views-viewPermissionServiceGetPermissions">viewPermissionServiceGetPermissions</a>
+ <li data-group="Views" data-name="getPrivilege" class="">
+ <a href="#api-Views-getPrivilege">getPrivilege</a>
</li>
- <li data-group="Views" data-name="viewPrivilegeServiceCreatePrivilege" class="">
- <a href="#api-Views-viewPrivilegeServiceCreatePrivilege">viewPrivilegeServiceCreatePrivilege</a>
+ <li data-group="Views" data-name="getPrivileges" class="">
+ <a href="#api-Views-getPrivileges">getPrivileges</a>
</li>
- <li data-group="Views" data-name="viewPrivilegeServiceDeletePrivilege" class="">
- <a href="#api-Views-viewPrivilegeServiceDeletePrivilege">viewPrivilegeServiceDeletePrivilege</a>
+ <li data-group="Views" data-name="getService" class="">
+ <a href="#api-Views-getService">getService</a>
</li>
- <li data-group="Views" data-name="viewPrivilegeServiceGetPrivilege" class="">
- <a href="#api-Views-viewPrivilegeServiceGetPrivilege">viewPrivilegeServiceGetPrivilege</a>
+ <li data-group="Views" data-name="getServices" class="">
+ <a href="#api-Views-getServices">getServices</a>
</li>
- <li data-group="Views" data-name="viewPrivilegeServiceGetPrivileges" class="">
- <a href="#api-Views-viewPrivilegeServiceGetPrivileges">viewPrivilegeServiceGetPrivileges</a>
+ <li data-group="Views" data-name="getVersion" class="">
+ <a href="#api-Views-getVersion">getVersion</a>
</li>
- <li data-group="Views" data-name="viewServiceGetView" class="">
- <a href="#api-Views-viewServiceGetView">viewServiceGetView</a>
+ <li data-group="Views" data-name="getVersions" class="">
+ <a href="#api-Views-getVersions">getVersions</a>
</li>
- <li data-group="Views" data-name="viewServiceGetViews" class="">
- <a href="#api-Views-viewServiceGetViews">viewServiceGetViews</a>
+ <li data-group="Views" data-name="getView" class="">
+ <a href="#api-Views-getView">getView</a>
</li>
- <li data-group="Views" data-name="viewVersionServiceGetVersion" class="">
- <a href="#api-Views-viewVersionServiceGetVersion">viewVersionServiceGetVersion</a>
+ <li data-group="Views" data-name="getViewUrl" class="">
+ <a href="#api-Views-getViewUrl">getViewUrl</a>
</li>
- <li data-group="Views" data-name="viewVersionServiceGetVersions" class="">
- <a href="#api-Views-viewVersionServiceGetVersions">viewVersionServiceGetVersions</a>
+ <li data-group="Views" data-name="getViewUrls" class="">
+ <a href="#api-Views-getViewUrls">getViewUrls</a>
+ </li>
+ <li data-group="Views" data-name="getViews" class="">
+ <a href="#api-Views-getViews">getViews</a>
+ </li>
+ <li data-group="Views" data-name="migrateData" class="">
+ <a href="#api-Views-migrateData">migrateData</a>
+ </li>
+ <li data-group="Views" data-name="updatePrivileges" class="">
+ <a href="#api-Views-updatePrivileges">updatePrivileges</a>
+ </li>
+ <li data-group="Views" data-name="updateService" class="">
+ <a href="#api-Views-updateService">updateService</a>
+ </li>
+ <li data-group="Views" data-name="updateServices" class="">
+ <a href="#api-Views-updateServices">updateServices</a>
+ </li>
+ <li data-group="Views" data-name="updateUrl" class="">
+ <a href="#api-Views-updateUrl">updateUrl</a>
</li>
</ul>
</nav>
@@ -4855,7 +5711,7 @@ margin-bottom: 20px;
<div class="tab-content">
<div class="tab-pane active" id="examples-Actions-actionServiceCreateActionDefinition-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://localhost/api/v1/actions/{actionName}"</code></pre>
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "https://localhost/api/v1/actions/{actionName}"</code></pre>
</div>
<div class="tab-pane" id="examples-Actions-actionServiceCreateActionDefinition-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -5196,7 +6052,7 @@ except ApiException as e:
<div class="tab-content">
<div class="tab-pane active" id="examples-Actions-actionServiceDeleteActionDefinition-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://localhost/api/v1/actions/{actionName}"</code></pre>
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/actions/{actionName}"</code></pre>
</div>
<div class="tab-pane" id="examples-Actions-actionServiceDeleteActionDefinition-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -5476,7 +6332,7 @@ except ApiException as e:
<div class="tab-content">
<div class="tab-pane active" id="examples-Actions-actionServiceGetActionDefinition-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/actions/{actionName}?fields="</code></pre>
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "https://localhost/api/v1/actions/{actionName}?fields="</code></pre>
</div>
<div class="tab-pane" id="examples-Actions-actionServiceGetActionDefinition-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -5851,7 +6707,7 @@ except ApiException as e:
<div class="tab-content">
<div class="tab-pane active" id="examples-Actions-actionServiceGetActionDefinitions-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/actions?fields=&sortBy=&pageSize=&from=&to="</code></pre>
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "https://localhost/api/v1/actions?fields=&sortBy=&pageSize=&from=&to="</code></pre>
</div>
<div class="tab-pane" id="examples-Actions-actionServiceGetActionDefinitions-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -6343,7 +7199,7 @@ except ApiException as e:
<div class="tab-content">
<div class="tab-pane active" id="examples-Actions-actionServiceUpdateActionDefinition-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">put</span> "http://localhost/api/v1/actions/{actionName}"</code></pre>
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">put</span> "https://localhost/api/v1/actions/{actionName}"</code></pre>
</div>
<div class="tab-pane" id="examples-Actions-actionServiceUpdateActionDefinition-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@@ -6653,13 +7509,13 @@ except ApiException as e:
</div>
<hr>
</section>
- <section id="api-Blueprints">
- <h1>Blueprints</h1>
- <div id="api-Blueprints-blueprintServiceCreateBlueprint">
- <article id="api-Blueprints-blueprintServiceCreateBlueprint-0" data-group="User" data-name="blueprintServiceCreateBlueprint" data-version="0">
+ <section id="api-Alerts">
+ <h1>Alerts</h1>
+ <div id="api-Alerts-createTarget">
+ <article id="api-Alerts-createTarget-0" data-group="User" data-name="createTarget" data-version="0">
<div class="pull-left">
- <h1>blueprintServiceCreateBlueprint</h1>
- <p>Creates a blueprint</p>
+ <h1>createTarget</h1>
+ <p>Creates an alert target</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -6667,85 +7523,89 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/blueprints/{blueprintName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/alert_targets</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-curl">Curl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-java">Java</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-csharp">C#</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-php">PHP</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-perl">Perl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Alerts-createTarget-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Alerts-createTarget-0-java">Java</a></li>
+ <li class=""><a href="#examples-Alerts-createTarget-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Alerts-createTarget-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Alerts-createTarget-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Alerts-createTarget-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Alerts-createTarget-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Alerts-createTarget-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Alerts-createTarget-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Alerts-createTarget-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Alerts-createTarget-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://localhost/api/v1/blueprints/{blueprintName}"</code></pre>
+ <div class="tab-pane active" id="examples-Alerts-createTarget-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "https://localhost/api/v1/alert_targets?validateConfig=&overwriteExisting="</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-java">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BlueprintsApi;
+import io.swagger.client.api.AlertsApi;
import java.io.File;
import java.util.*;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String blueprintName = blueprintName_example; // String |
- BlueprintSwagger body = ; // BlueprintSwagger |
+ AlertsApi apiInstance = new AlertsApi();
+ AlertTargetSwagger body = ; // AlertTargetSwagger |
+ String validateConfig = validateConfig_example; // String |
+ String overwriteExisting = overwriteExisting_example; // String |
try {
- apiInstance.blueprintServiceCreateBlueprint(blueprintName, body);
+ apiInstance.createTarget(body, validateConfig, overwriteExisting);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceCreateBlueprint");
+ System.err.println("Exception when calling AlertsApi#createTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.AlertsApi;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String blueprintName = blueprintName_example; // String |
- BlueprintSwagger body = ; // BlueprintSwagger |
+ AlertsApi apiInstance = new AlertsApi();
+ AlertTargetSwagger body = ; // AlertTargetSwagger |
+ String validateConfig = validateConfig_example; // String |
+ String overwriteExisting = overwriteExisting_example; // String |
try {
- apiInstance.blueprintServiceCreateBlueprint(blueprintName, body);
+ apiInstance.createTarget(body, validateConfig, overwriteExisting);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceCreateBlueprint");
+ System.err.println("Exception when calling AlertsApi#createTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-groovy">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *blueprintName = blueprintName_example; //
-BlueprintSwagger *body = ; // (optional)
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">AlertTargetSwagger *body = ; // (optional)
+String *validateConfig = validateConfig_example; // (optional)
+String *overwriteExisting = overwriteExisting_example; // (optional)
-BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
+AlertsApi *apiInstance = [[AlertsApi alloc] init];
-// Creates a blueprint
-[apiInstance blueprintServiceCreateBlueprintWith:blueprintName
- body:body
+// Creates an alert target
+[apiInstance createTargetWith:body
+ validateConfig:validateConfig
+ overwriteExisting:overwriteExisting
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -6754,15 +7614,15 @@ BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-javascript">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
-
-var blueprintName = blueprintName_example; // {String}
+var api = new SwaggerSpecForAmbariRestApi.AlertsApi()
var opts = {
- 'body': // {BlueprintSwagger}
+ 'body': , // {AlertTargetSwagger}
+ 'validateConfig': validateConfig_example, // {String}
+ 'overwriteExisting': overwriteExisting_example // {String}
};
var callback = function(error, data, response) {
@@ -6772,14 +7632,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.blueprintServiceCreateBlueprint(blueprintName, opts, callback);
+api.createTarget(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-angular">
+ <!--<div class="tab-pane" id="examples-Alerts-createTarget-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-csharp">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -6788,63 +7648,66 @@ using IO.Swagger.Model;
namespace Example
{
- public class blueprintServiceCreateBlueprintExample
+ public class createTargetExample
{
public void main()
{
- var apiInstance = new BlueprintsApi();
- var blueprintName = blueprintName_example; // String |
- var body = new BlueprintSwagger(); // BlueprintSwagger | (optional)
+ var apiInstance = new AlertsApi();
+ var body = new AlertTargetSwagger(); // AlertTargetSwagger | (optional)
+ var validateConfig = validateConfig_example; // String | (optional)
+ var overwriteExisting = overwriteExisting_example; // String | (optional)
try
{
- // Creates a blueprint
- apiInstance.blueprintServiceCreateBlueprint(blueprintName, body);
+ // Creates an alert target
+ apiInstance.createTarget(body, validateConfig, overwriteExisting);
}
catch (Exception e)
{
- Debug.Print("Exception when calling BlueprintsApi.blueprintServiceCreateBlueprint: " + e.Message );
+ Debug.Print("Exception when calling AlertsApi.createTarget: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-php">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\BlueprintsApi();
-$blueprintName = blueprintName_example; // String |
-$body = ; // BlueprintSwagger |
+$api_instance = new Swagger\Client\Api\AlertsApi();
+$body = ; // AlertTargetSwagger |
+$validateConfig = validateConfig_example; // String |
+$overwriteExisting = overwriteExisting_example; // String |
try {
- $api_instance->blueprintServiceCreateBlueprint($blueprintName, $body);
+ $api_instance->createTarget($body, $validateConfig, $overwriteExisting);
} catch (Exception $e) {
- echo 'Exception when calling BlueprintsApi->blueprintServiceCreateBlueprint: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AlertsApi->createTarget: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-perl">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::BlueprintsApi;
+use WWW::SwaggerClient::AlertsApi;
-my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
-my $blueprintName = blueprintName_example; # String |
-my $body = WWW::SwaggerClient::Object::BlueprintSwagger->new(); # BlueprintSwagger |
+my $api_instance = WWW::SwaggerClient::AlertsApi->new();
+my $body = WWW::SwaggerClient::Object::AlertTargetSwagger->new(); # AlertTargetSwagger |
+my $validateConfig = validateConfig_example; # String |
+my $overwriteExisting = overwriteExisting_example; # String |
eval {
- $api_instance->blueprintServiceCreateBlueprint(blueprintName => $blueprintName, body => $body);
+ $api_instance->createTarget(body => $body, validateConfig => $validateConfig, overwriteExisting => $overwriteExisting);
};
if ($@) {
- warn "Exception when calling BlueprintsApi->blueprintServiceCreateBlueprint: $@\n";
+ warn "Exception when calling AlertsApi->createTarget: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-python">
+ <div class="tab-pane" id="examples-Alerts-createTarget-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -6852,59 +7715,21 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.BlueprintsApi()
-blueprintName = blueprintName_example # String |
-body = # BlueprintSwagger | (optional)
+api_instance = swagger_client.AlertsApi()
+body = # AlertTargetSwagger | (optional)
+validateConfig = validateConfig_example # String | (optional)
+overwriteExisting = overwriteExisting_example # String | (optional)
try:
- # Creates a blueprint
- api_instance.blueprintServiceCreateBlueprint(blueprintName, body=body)
+ # Creates an alert target
+ api_instance.createTarget(body=body, validateConfig=validateConfig, overwriteExisting=overwriteExisting)
except ApiException as e:
- print("Exception when calling BlueprintsApi->blueprintServiceCreateBlueprint: %s\n" % e)</code></pre>
+ print("Exception when calling AlertsApi->createTarget: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
- <div class="methodsubtabletitle">Path parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">blueprintName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "blueprintName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceCreateBlueprint_blueprintName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_blueprintServiceCreateBlueprint_blueprintName"></div>
-</td>
-</tr>
-
- </table>
<div class="methodsubtabletitle">Body parameters</div>
@@ -6924,7 +7749,7 @@ except ApiException as e:
"name" : "body",
"required" : false,
"schema" : {
- "$ref" : "#/definitions/BlueprintSwagger"
+ "$ref" : "#/definitions/AlertTargetSwagger"
}
};
@@ -6936,7 +7761,7 @@ except ApiException as e:
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
- var result = $('#d2e199_blueprintServiceCreateBlueprint_body');
+ var result = $('#d2e199_createTarget_body');
result.empty();
result.append(view.render());
@@ -6952,48 +7777,87 @@ except ApiException as e:
});
</script>
- <div id="d2e199_blueprintServiceCreateBlueprint_body"></div>
+ <div id="d2e199_createTarget_body"></div>
</td>
</tr>
</table>
+ <div class="methodsubtabletitle">Query parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">validate_config</td>
+<td>
- <h2>Responses</h2>
- <h3> Status: 201 - Successful operation </h3>
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "validate_config",
+ "in" : "query",
+ "required" : false,
+ "type" : "string"
+};
+ var schema = schemaWrapper;
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
- <h3> Status: 202 - Request is accepted, but not completely processed yet </h3>
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_createTarget_validateConfig');
+ result.empty();
+ result.append(view.render());
- <h3> Status: 400 - The requested resource doesn't exist. </h3>
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
- <h3> Status: 401 - Not authenticated </h3>
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
+ });
+ </script>
+ <div id="d2e199_createTarget_validateConfig"></div>
+</td>
+</tr>
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
+ <tr><td style="width:150px;">overwrite_existing</td>
+<td>
- <h3> Status: 403 - Not permitted to perform the operation </h3>
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "overwrite_existing",
+ "in" : "query",
+ "required" : false,
+ "type" : "string"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_createTarget_overwriteExisting');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_createTarget_overwriteExisting"></div>
+</td>
+</tr>
+
+ </table>
+
+ <h2>Responses</h2>
+ <h3> Status: 201 - Successful operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -7001,7 +7865,7 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
+ <h3> Status: 400 - Invalid arguments </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -7009,7 +7873,7 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 409 - The requested resource already exists. </h3>
+ <h3> Status: 401 - Not authenticated </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -7028,11 +7892,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-Blueprints-blueprintServiceDeleteBlueprint">
- <article id="api-Blueprints-blueprintServiceDeleteBlueprint-0" data-group="User" data-name="blueprintServiceDeleteBlueprint" data-version="0">
+ <div id="api-Alerts-deleteTarget">
+ <article id="api-Alerts-deleteTarget-0" data-group="User" data-name="deleteTarget" data-version="0">
<div class="pull-left">
- <h1>blueprintServiceDeleteBlueprint</h1>
- <p>Deletes a blueprint</p>
+ <h1>deleteTarget</h1>
+ <p>Deletes an alert target</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -7040,81 +7904,81 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/blueprints/{blueprintName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/alert_targets/{targetId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-curl">Curl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-java">Java</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-csharp">C#</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-php">PHP</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-perl">Perl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Alerts-deleteTarget-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-java">Java</a></li>
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Alerts-deleteTarget-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Alerts-deleteTarget-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Alerts-deleteTarget-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://localhost/api/v1/blueprints/{blueprintName}"</code></pre>
+ <div class="tab-pane active" id="examples-Alerts-deleteTarget-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/alert_targets/{targetId}"</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-java">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BlueprintsApi;
+import io.swagger.client.api.AlertsApi;
import java.io.File;
import java.util.*;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String blueprintName = blueprintName_example; // String |
+ AlertsApi apiInstance = new AlertsApi();
+ Long targetId = 789; // Long |
try {
- apiInstance.blueprintServiceDeleteBlueprint(blueprintName);
+ apiInstance.deleteTarget(targetId);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprint");
+ System.err.println("Exception when calling AlertsApi#deleteTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.AlertsApi;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String blueprintName = blueprintName_example; // String |
+ AlertsApi apiInstance = new AlertsApi();
+ Long targetId = 789; // Long |
try {
- apiInstance.blueprintServiceDeleteBlueprint(blueprintName);
+ apiInstance.deleteTarget(targetId);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprint");
+ System.err.println("Exception when calling AlertsApi#deleteTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-groovy">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *blueprintName = blueprintName_example; //
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">Long *targetId = 789; //
-BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
+AlertsApi *apiInstance = [[AlertsApi alloc] init];
-// Deletes a blueprint
-[apiInstance blueprintServiceDeleteBlueprintWith:blueprintName
+// Deletes an alert target
+[apiInstance deleteTargetWith:targetId
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -7123,12 +7987,12 @@ BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-javascript">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
+var api = new SwaggerSpecForAmbariRestApi.AlertsApi()
-var blueprintName = blueprintName_example; // {String}
+var targetId = 789; // {Long}
var callback = function(error, data, response) {
@@ -7138,14 +8002,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.blueprintServiceDeleteBlueprint(blueprintName, callback);
+api.deleteTarget(targetId, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-angular">
+ <!--<div class="tab-pane" id="examples-Alerts-deleteTarget-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-csharp">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7154,60 +8018,60 @@ using IO.Swagger.Model;
namespace Example
{
- public class blueprintServiceDeleteBlueprintExample
+ public class deleteTargetExample
{
public void main()
{
- var apiInstance = new BlueprintsApi();
- var blueprintName = blueprintName_example; // String |
+ var apiInstance = new AlertsApi();
+ var targetId = 789; // Long |
try
{
- // Deletes a blueprint
- apiInstance.blueprintServiceDeleteBlueprint(blueprintName);
+ // Deletes an alert target
+ apiInstance.deleteTarget(targetId);
}
catch (Exception e)
{
- Debug.Print("Exception when calling BlueprintsApi.blueprintServiceDeleteBlueprint: " + e.Message );
+ Debug.Print("Exception when calling AlertsApi.deleteTarget: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-php">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\BlueprintsApi();
-$blueprintName = blueprintName_example; // String |
+$api_instance = new Swagger\Client\Api\AlertsApi();
+$targetId = 789; // Long |
try {
- $api_instance->blueprintServiceDeleteBlueprint($blueprintName);
+ $api_instance->deleteTarget($targetId);
} catch (Exception $e) {
- echo 'Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprint: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AlertsApi->deleteTarget: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-perl">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::BlueprintsApi;
+use WWW::SwaggerClient::AlertsApi;
-my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
-my $blueprintName = blueprintName_example; # String |
+my $api_instance = WWW::SwaggerClient::AlertsApi->new();
+my $targetId = 789; # Long |
eval {
- $api_instance->blueprintServiceDeleteBlueprint(blueprintName => $blueprintName);
+ $api_instance->deleteTarget(targetId => $targetId);
};
if ($@) {
- warn "Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprint: $@\n";
+ warn "Exception when calling AlertsApi->deleteTarget: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-python">
+ <div class="tab-pane" id="examples-Alerts-deleteTarget-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -7215,14 +8079,14 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.BlueprintsApi()
-blueprintName = blueprintName_example # String |
+api_instance = swagger_client.AlertsApi()
+targetId = 789 # Long |
try:
- # Deletes a blueprint
- api_instance.blueprintServiceDeleteBlueprint(blueprintName)
+ # Deletes an alert target
+ api_instance.deleteTarget(targetId)
except ApiException as e:
- print("Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprint: %s\n" % e)</code></pre>
+ print("Exception when calling AlertsApi->deleteTarget: %s\n" % e)</code></pre>
</div>
</div>
@@ -7234,17 +8098,18 @@ except ApiException as e:
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">blueprintName*</td>
+ <tr><td style="width:150px;">targetId*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "blueprintName",
+ "name" : "targetId",
"in" : "path",
"required" : true,
- "type" : "string"
+ "type" : "integer",
+ "format" : "int64"
};
var schema = schemaWrapper;
@@ -7252,7 +8117,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceDeleteBlueprint_blueprintName');
+ var result = $('#d2e199_deleteTarget_targetId');
result.empty();
result.append(view.render());
@@ -7262,7 +8127,7 @@ except ApiException as e:
});
</script>
- <div id="d2e199_blueprintServiceDeleteBlueprint_blueprintName"></div>
+ <div id="d2e199_deleteTarget_targetId"></div>
</td>
</tr>
@@ -7297,14 +8162,6 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
-
<h3> Status: 500 - Internal server error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
@@ -7316,11 +8173,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-Blueprints-blueprintServiceDeleteBlueprints">
- <article id="api-Blueprints-blueprintServiceDeleteBlueprints-0" data-group="User" data-name="blueprintServiceDeleteBlueprints" data-version="0">
+ <div id="api-Alerts-getTarget">
+ <article id="api-Alerts-getTarget-0" data-group="User" data-name="getTarget" data-version="0">
<div class="pull-left">
- <h1>blueprintServiceDeleteBlueprints</h1>
- <p>Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.</p>
+ <h1>getTarget</h1>
+ <p>Returns a single alert target</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -7328,79 +8185,107 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/blueprints</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/alert_targets/{targetId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-curl">Curl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-java">Java</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-csharp">C#</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-php">PHP</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-perl">Perl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Alerts-getTarget-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Alerts-getTarget-0-java">Java</a></li>
+ <li class=""><a href="#examples-Alerts-getTarget-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Alerts-getTarget-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Alerts-getTarget-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Alerts-getTarget-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Alerts-getTarget-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Alerts-getTarget-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Alerts-getTarget-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Alerts-getTarget-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Alerts-getTarget-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://localhost/api/v1/blueprints"</code></pre>
+ <div class="tab-pane active" id="examples-Alerts-getTarget-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "https://localhost/api/v1/alert_targets/{targetId}?fields=&sortBy=&pageSize=&from=&to="</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-java">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BlueprintsApi;
+import io.swagger.client.api.AlertsApi;
import java.io.File;
import java.util.*;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
+ AlertsApi apiInstance = new AlertsApi();
+ Long targetId = 789; // Long | alert target id
+ String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+ String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+ Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+ Integer from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted.
+ Integer to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted.
try {
- apiInstance.blueprintServiceDeleteBlueprints();
+ AlertTargetSwagger result = apiInstance.getTarget(targetId, fields, sortBy, pageSize, from, to);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprints");
+ System.err.println("Exception when calling AlertsApi#getTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.AlertsApi;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
+ AlertsApi apiInstance = new AlertsApi();
+ Long targetId = 789; // Long | alert target id
+ String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+ String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+ Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+ Integer from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted.
+ Integer to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted.
try {
- apiInstance.blueprintServiceDeleteBlueprints();
+ AlertTargetSwagger result = apiInstance.getTarget(targetId, fields, sortBy, pageSize, from, to);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprints");
+ System.err.println("Exception when calling AlertsApi#getTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-groovy">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-objc">
- <pre class="prettyprint"><code class="language-cpp">
-BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">Long *targetId = 789; // alert target id
+String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to AlertTarget/*)
+String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional)
+Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
+Integer *from = 56; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+Integer *to = 56; // The ending page resource (inclusive). "end" is also accepted. (optional)
-// Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.
-[apiInstance blueprintServiceDeleteBlueprintsWithCompletionHandler:
- ^(NSError* error) {
+AlertsApi *apiInstance = [[AlertsApi alloc] init];
+
+// Returns a single alert target
+[apiInstance getTargetWith:targetId
+ fields:fields
+ sortBy:sortBy
+ pageSize:pageSize
+ from:from
+ to:to
+ completionHandler: ^(AlertTargetSwagger output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
if (error) {
NSLog(@"Error: %@", error);
}
@@ -7408,26 +8293,36 @@ BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-javascript">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
+var api = new SwaggerSpecForAmbariRestApi.AlertsApi()
+
+var targetId = 789; // {Long} alert target id
+
+var opts = {
+ 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
+ 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
+ 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
+ 'from': 56, // {Integer} The starting page resource (inclusive). "start" is also accepted.
+ 'to': 56 // {Integer} The ending page resource (inclusive). "end" is also accepted.
+};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully.');
+ console.log('API called successfully. Returned data: ' + data);
}
};
-api.blueprintServiceDeleteBlueprints(callback);
+api.getTarget(targetId, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-angular">
+ <!--<div class="tab-pane" id="examples-Alerts-getTarget-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-csharp">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7436,57 +8331,78 @@ using IO.Swagger.Model;
namespace Example
{
- public class blueprintServiceDeleteBlueprintsExample
+ public class getTargetExample
{
public void main()
{
- var apiInstance = new BlueprintsApi();
+ var apiInstance = new AlertsApi();
+ var targetId = 789; // Long | alert target id
+ var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to AlertTarget/*)
+ var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional)
+ var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
+ var from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+ var to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted. (optional)
try
{
- // Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.
- apiInstance.blueprintServiceDeleteBlueprints();
+ // Returns a single alert target
+ AlertTargetSwagger result = apiInstance.getTarget(targetId, fields, sortBy, pageSize, from, to);
+ Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling BlueprintsApi.blueprintServiceDeleteBlueprints: " + e.Message );
+ Debug.Print("Exception when calling AlertsApi.getTarget: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-php">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\BlueprintsApi();
+$api_instance = new Swagger\Client\Api\AlertsApi();
+$targetId = 789; // Long | alert target id
+$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+$from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted.
+$to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted.
try {
- $api_instance->blueprintServiceDeleteBlueprints();
+ $result = $api_instance->getTarget($targetId, $fields, $sortBy, $pageSize, $from, $to);
+ print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprints: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AlertsApi->getTarget: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-perl">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::BlueprintsApi;
+use WWW::SwaggerClient::AlertsApi;
-my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
+my $api_instance = WWW::SwaggerClient::AlertsApi->new();
+my $targetId = 789; # Long | alert target id
+my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
+my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
+my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
+my $from = 56; # Integer | The starting page resource (inclusive). "start" is also accepted.
+my $to = 56; # Integer | The ending page resource (inclusive). "end" is also accepted.
eval {
- $api_instance->blueprintServiceDeleteBlueprints();
+ my $result = $api_instance->getTarget(targetId => $targetId, fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
+ print Dumper($result);
};
if ($@) {
- warn "Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprints: $@\n";
+ warn "Exception when calling AlertsApi->getTarget: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-python">
+ <div class="tab-pane" id="examples-Alerts-getTarget-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -7494,27 +8410,294 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.BlueprintsApi()
+api_instance = swagger_client.AlertsApi()
+targetId = 789 # Long | alert target id
+fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to AlertTarget/*)
+sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional)
+pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
+from = 56 # Integer | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+to = 56 # Integer | The ending page resource (inclusive). "end" is also accepted. (optional)
try:
- # Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.
- api_instance.blueprintServiceDeleteBlueprints()
+ # Returns a single alert target
+ api_response = api_instance.getTarget(targetId, fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
+ pprint(api_response)
except ApiException as e:
- print("Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprints: %s\n" % e)</code></pre>
+ print("Exception when calling AlertsApi->getTarget: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
+ <div class="methodsubtabletitle">Path parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">targetId*</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "targetId",
+ "in" : "path",
+ "description" : "alert target id",
+ "required" : true,
+ "type" : "integer",
+ "format" : "int64"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTarget_targetId');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTarget_targetId"></div>
+</td>
+</tr>
+
+ </table>
+
+
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">fields</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "fields",
+ "in" : "query",
+ "description" : "Filter fields in the response (identifier fields are mandatory)",
+ "required" : false,
+ "type" : "string",
+ "default" : "AlertTarget/*"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTarget_fields');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTarget_fields"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">sortBy</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "sortBy",
+ "in" : "query",
+ "description" : "Sort resources in result by (asc | desc)",
+ "required" : false,
+ "type" : "string"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTarget_sortBy');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTarget_sortBy"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">page_size</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "page_size",
+ "in" : "query",
+ "description" : "The number of resources to be returned for the paged response.",
+ "required" : false,
+ "type" : "integer",
+ "default" : 10
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTarget_pageSize');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTarget_pageSize"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">from</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "from",
+ "in" : "query",
+ "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
+ "required" : false,
+ "type" : "integer",
+ "default" : 0,
+ "minimum" : 0.0
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTarget_from');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTarget_from"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">to</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "to",
+ "in" : "query",
+ "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
+ "required" : false,
+ "type" : "integer",
+ "minimum" : 1.0
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTarget_to');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ <div id="d2e199_getTarget_to"></div>
+</td>
+</tr>
+
+ </table>
+
<h2>Responses</h2>
<h3> Status: 200 - Successful operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-getTarget-200-schema">Schema</a>
+ </li>
+
+ </ul>
+
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-getTarget-200-schema">
+ <div id='responses-getTarget-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Successful operation",
+ "schema" : {
+ "$ref" : "#/definitions/AlertTargetSwagger"
+ }
+};
+ var schema = schemaWrapper.schema;
+ schemaWrapper.definitions = defs;
+ //console.log(JSON.stringify(schema))
+ JsonRefs.resolveRefs(schemaWrapper, {
+ "depth": 3,
+ "resolveRemoteRefs": false,
+ "resolveFileRefs": false
+ }, function(err, resolved, metadata) {
+ //console.log(JSON.stringify(resolved));
+ var view = new JSONSchemaView(resolved.schema, 3);
+ $('#responses-getTarget-200-schema-data').val(JSON.stringify(resolved.schema));
+ var result = $('#responses-getTarget-200-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ });
+ </script>
+ </div>
+ <input id='responses-getTarget-200-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+
+ <h3> Status: 400 - Invalid arguments </h3>
+
+ <ul class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
@@ -7536,7 +8719,7 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
+ <h3> Status: 404 - Cluster not found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -7555,11 +8738,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-Blueprints-blueprintServiceGetBlueprint">
- <article id="api-Blueprints-blueprintServiceGetBlueprint-0" data-group="User" data-name="blueprintServiceGetBlueprint" data-version="0">
+ <div id="api-Alerts-getTargets">
+ <article id="api-Alerts-getTargets-0" data-group="User" data-name="getTargets" data-version="0">
<div class="pull-left">
- <h1>blueprintServiceGetBlueprint</h1>
- <p>Get the details of a blueprint</p>
+ <h1>getTargets</h1>
+ <p>Returns all alert targets</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -7567,88 +8750,100 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/blueprints/{blueprintName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/alert_targets</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-curl">Curl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-java">Java</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-csharp">C#</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-php">PHP</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-perl">Perl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Alerts-getTargets-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Alerts-getTargets-0-java">Java</a></li>
+ <li class=""><a href="#examples-Alerts-getTargets-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Alerts-getTargets-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Alerts-getTargets-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Alerts-getTargets-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Alerts-getTargets-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Alerts-getTargets-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Alerts-getTargets-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Alerts-getTargets-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Alerts-getTargets-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-Blueprints-blueprintServiceGetBlueprint-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/blueprints/{blueprintName}?fields="</code></pre>
+ <div class="tab-pane active" id="examples-Alerts-getTargets-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "https://localhost/api/v1/alert_targets?fields=&sortBy=&pageSize=&from=&to="</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-java">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BlueprintsApi;
+import io.swagger.client.api.AlertsApi;
import java.io.File;
import java.util.*;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String blueprintName = blueprintName_example; // String |
+ AlertsApi apiInstance = new AlertsApi();
String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+ String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+ Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+ Integer from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted.
+ Integer to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted.
try {
- array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprint(blueprintName, fields);
+ array[AlertTargetSwagger] result = apiInstance.getTargets(fields, sortBy, pageSize, from, to);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprint");
+ System.err.println("Exception when calling AlertsApi#getTargets");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.AlertsApi;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String blueprintName = blueprintName_example; // String |
+ AlertsApi apiInstance = new AlertsApi();
String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+ String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+ Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+ Integer from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted.
+ Integer to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted.
try {
- array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprint(blueprintName, fields);
+ array[AlertTargetSwagger] result = apiInstance.getTargets(fields, sortBy, pageSize, from, to);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprint");
+ System.err.println("Exception when calling AlertsApi#getTargets");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-groovy">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *blueprintName = blueprintName_example; //
-String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/*)
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to AlertTarget/*)
+String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional)
+Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
+Integer *from = 56; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+Integer *to = 56; // The ending page resource (inclusive). "end" is also accepted. (optional)
-BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
+AlertsApi *apiInstance = [[AlertsApi alloc] init];
-// Get the details of a blueprint
-[apiInstance blueprintServiceGetBlueprintWith:blueprintName
- fields:fields
- completionHandler: ^(array[BlueprintSwagger] output, NSError* error) {
+// Returns all alert targets
+[apiInstance getTargetsWith:fields
+ sortBy:sortBy
+ pageSize:pageSize
+ from:from
+ to:to
+ completionHandler: ^(array[AlertTargetSwagger] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -7659,15 +8854,17 @@ BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-javascript">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
-
-var blueprintName = blueprintName_example; // {String}
+var api = new SwaggerSpecForAmbariRestApi.AlertsApi()
var opts = {
- 'fields': fields_example // {String} Filter fields in the response (identifier fields are mandatory)
+ 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
+ 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
+ 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
+ 'from': 56, // {Integer} The starting page resource (inclusive). "start" is also accepted.
+ 'to': 56 // {Integer} The ending page resource (inclusive). "end" is also accepted.
};
var callback = function(error, data, response) {
@@ -7677,14 +8874,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.blueprintServiceGetBlueprint(blueprintName, opts, callback);
+api.getTargets(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-angular">
+ <!--<div class="tab-pane" id="examples-Alerts-getTargets-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-csharp">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7693,66 +8890,75 @@ using IO.Swagger.Model;
namespace Example
{
- public class blueprintServiceGetBlueprintExample
+ public class getTargetsExample
{
public void main()
{
- var apiInstance = new BlueprintsApi();
- var blueprintName = blueprintName_example; // String |
- var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/*)
+ var apiInstance = new AlertsApi();
+ var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to AlertTarget/*)
+ var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional)
+ var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
+ var from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+ var to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted. (optional)
try
{
- // Get the details of a blueprint
- array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprint(blueprintName, fields);
+ // Returns all alert targets
+ array[AlertTargetSwagger] result = apiInstance.getTargets(fields, sortBy, pageSize, from, to);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling BlueprintsApi.blueprintServiceGetBlueprint: " + e.Message );
+ Debug.Print("Exception when calling AlertsApi.getTargets: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-php">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\BlueprintsApi();
-$blueprintName = blueprintName_example; // String |
+$api_instance = new Swagger\Client\Api\AlertsApi();
$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+$from = 56; // Integer | The starting page resource (inclusive). "start" is also accepted.
+$to = 56; // Integer | The ending page resource (inclusive). "end" is also accepted.
try {
- $result = $api_instance->blueprintServiceGetBlueprint($blueprintName, $fields);
+ $result = $api_instance->getTargets($fields, $sortBy, $pageSize, $from, $to);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling BlueprintsApi->blueprintServiceGetBlueprint: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AlertsApi->getTargets: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-perl">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::BlueprintsApi;
+use WWW::SwaggerClient::AlertsApi;
-my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
-my $blueprintName = blueprintName_example; # String |
+my $api_instance = WWW::SwaggerClient::AlertsApi->new();
my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
+my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
+my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
+my $from = 56; # Integer | The starting page resource (inclusive). "start" is also accepted.
+my $to = 56; # Integer | The ending page resource (inclusive). "end" is also accepted.
eval {
- my $result = $api_instance->blueprintServiceGetBlueprint(blueprintName => $blueprintName, fields => $fields);
+ my $result = $api_instance->getTargets(fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling BlueprintsApi->blueprintServiceGetBlueprint: $@\n";
+ warn "Exception when calling AlertsApi->getTargets: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-python">
+ <div class="tab-pane" id="examples-Alerts-getTargets-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -7760,38 +8966,47 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.BlueprintsApi()
-blueprintName = blueprintName_example # String |
-fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/*)
+api_instance = swagger_client.AlertsApi()
+fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to AlertTarget/*)
+sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional)
+pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
+from = 56 # Integer | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+to = 56 # Integer | The ending page resource (inclusive). "end" is also accepted. (optional)
try:
- # Get the details of a blueprint
- api_response = api_instance.blueprintServiceGetBlueprint(blueprintName, fields=fields)
+ # Returns all alert targets
+ api_response = api_instance.getTargets(fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
pprint(api_response)
except ApiException as e:
- print("Exception when calling BlueprintsApi->blueprintServiceGetBlueprint: %s\n" % e)</code></pre>
+ print("Exception when calling AlertsApi->getTargets: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
- <div class="methodsubtabletitle">Path parameters</div>
+
+
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">blueprintName*</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">fields</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "blueprintName",
- "in" : "path",
- "required" : true,
- "type" : "string"
+ "name" : "fields",
+ "in" : "query",
+ "description" : "Filter fields in the response (identifier fields are mandatory)",
+ "required" : false,
+ "type" : "string",
+ "default" : "AlertTarget/*"
};
var schema = schemaWrapper;
@@ -7799,7 +9014,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprint_blueprintName');
+ var result = $('#d2e199_getTargets_fields');
result.empty();
result.append(view.render());
@@ -7809,34 +9024,56 @@ except ApiException as e:
});
</script>
- <div id="d2e199_blueprintServiceGetBlueprint_blueprintName"></div>
+ <div id="d2e199_getTargets_fields"></div>
</td>
</tr>
- </table>
-
-
+ <tr><td style="width:150px;">sortBy</td>
+<td>
- <div class="methodsubtabletitle">Query parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">fields</td>
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "sortBy",
+ "in" : "query",
+ "description" : "Sort resources in result by (asc | desc)",
+ "required" : false,
+ "type" : "string"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTargets_sortBy');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTargets_sortBy"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">page_size</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "fields",
+ "name" : "page_size",
"in" : "query",
- "description" : "Filter fields in the response (identifier fields are mandatory)",
+ "description" : "The number of resources to be returned for the paged response.",
"required" : false,
- "type" : "string",
- "default" : "Blueprints/*"
+ "type" : "integer",
+ "default" : 10
};
var schema = schemaWrapper;
@@ -7844,7 +9081,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprint_fields');
+ var result = $('#d2e199_getTargets_pageSize');
result.empty();
result.append(view.render());
@@ -7854,7 +9091,76 @@ except ApiException as e:
});
</script>
- <div id="d2e199_blueprintServiceGetBlueprint_fields"></div>
+ <div id="d2e199_getTargets_pageSize"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">from</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "from",
+ "in" : "query",
+ "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
+ "required" : false,
+ "type" : "integer",
+ "default" : 0,
+ "minimum" : 0.0
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTargets_from');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTargets_from"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">to</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "to",
+ "in" : "query",
+ "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
+ "required" : false,
+ "type" : "integer",
+ "minimum" : 1.0
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_getTargets_to');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_getTargets_to"></div>
</td>
</tr>
@@ -7865,14 +9171,14 @@ except ApiException as e:
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-blueprintServiceGetBlueprint-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-getTargets-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-blueprintServiceGetBlueprint-200-schema">
- <div id='responses-blueprintServiceGetBlueprint-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
+ <div class="tab-pane active" id="responses-getTargets-200-schema">
+ <div id='responses-getTargets-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
@@ -7880,7 +9186,7 @@ except ApiException as e:
"schema" : {
"type" : "array",
"items" : {
- "$ref" : "#/definitions/BlueprintSwagger"
+ "$ref" : "#/definitions/AlertTargetSwagger"
}
}
};
@@ -7894,18 +9200,26 @@ except ApiException as e:
}, function(err, resolved, metadata) {
//console.log(JSON.stringify(resolved));
var view = new JSONSchemaView(resolved.schema, 3);
- $('#responses-blueprintServiceGetBlueprint-200-schema-data').val(JSON.stringify(resolved.schema));
- var result = $('#responses-blueprintServiceGetBlueprint-200-schema-200');
+ $('#responses-getTargets-200-schema-data').val(JSON.stringify(resolved.schema));
+ var result = $('#responses-getTargets-200-schema-200');
result.empty();
result.append(view.render());
});
});
</script>
</div>
- <input id='responses-blueprintServiceGetBlueprint-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-getTargets-200-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3> Status: 400 - Invalid arguments </h3>
+
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+
<h3> Status: 401 - Not authenticated </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
@@ -7914,7 +9228,15 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
+ <h3> Status: 403 - Not permitted to perform the operation </h3>
+
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+
+ <h3> Status: 404 - Cluster not found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -7933,11 +9255,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-Blueprints-blueprintServiceGetBlueprints">
- <article id="api-Blueprints-blueprintServiceGetBlueprints-0" data-group="User" data-name="blueprintServiceGetBlueprints" data-version="0">
+ <div id="api-Alerts-updateTarget">
+ <article id="api-Alerts-updateTarget-0" data-group="User" data-name="updateTarget" data-version="0">
<div class="pull-left">
- <h1>blueprintServiceGetBlueprints</h1>
- <p>Get all blueprints</p>
+ <h1>updateTarget</h1>
+ <p>Updates an alert target</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -7945,103 +9267,86 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/blueprints</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/alert_targets/{targetId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-curl">Curl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-java">Java</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-csharp">C#</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-php">PHP</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-perl">Perl</a></li>
- <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Alerts-updateTarget-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Alerts-updateTarget-0-java">Java</a></li>
+ <li class=""><a href="#examples-Alerts-updateTarget-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Alerts-updateTarget-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Alerts-updateTarget-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Alerts-updateTarget-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Alerts-updateTarget-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Alerts-updateTarget-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Alerts-updateTarget-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Alerts-updateTarget-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Alerts-updateTarget-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-Blueprints-blueprintServiceGetBlueprints-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/blueprints?fields=&sortBy=&pageSize=&from=&to="</code></pre>
+ <div class="tab-pane active" id="examples-Alerts-updateTarget-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">put</span> "https://localhost/api/v1/alert_targets/{targetId}"</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-java">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BlueprintsApi;
+import io.swagger.client.api.AlertsApi;
import java.io.File;
import java.util.*;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+ AlertsApi apiInstance = new AlertsApi();
+ Long targetId = 789; // Long |
+ AlertTargetSwagger body = ; // AlertTargetSwagger |
try {
- array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprints(fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.updateTarget(targetId, body);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprints");
+ System.err.println("Exception when calling AlertsApi#updateTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.AlertsApi;
-public class BlueprintsApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- BlueprintsApi apiInstance = new BlueprintsApi();
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+ AlertsApi apiInstance = new AlertsApi();
+ Long targetId = 789; // Long |
+ AlertTargetSwagger body = ; // AlertTargetSwagger |
try {
- array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprints(fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.updateTarget(targetId, body);
} catch (ApiException e) {
- System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprints");
+ System.err.println("Exception when calling AlertsApi#updateTarget");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-groovy">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/blueprint_name)
-String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional) (default to Blueprints/blueprint_name.asc)
-Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
-String *from = from_example; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-String *to = to_example; // The ending page resource (inclusive). "end" is also accepted. (optional)
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">Long *targetId = 789; //
+AlertTargetSwagger *body = ; // (optional)
-BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
+AlertsApi *apiInstance = [[AlertsApi alloc] init];
-// Get all blueprints
-[apiInstance blueprintServiceGetBlueprintsWith:fields
- sortBy:sortBy
- pageSize:pageSize
- from:from
- to:to
- completionHandler: ^(array[BlueprintSwagger] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
+// Updates an alert target
+[apiInstance updateTargetWith:targetId
+ body:body
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -8049,34 +9354,32 @@ BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-javascript">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
+var api = new SwaggerSpecForAmbariRestApi.AlertsApi()
+
+var targetId = 789; // {Long}
var opts = {
- 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
- 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
- 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
- 'from': from_example, // {String} The starting page resource (inclusive). "start" is also accepted.
- 'to': to_example // {String} The ending page resource (inclusive). "end" is also accepted.
+ 'body': // {AlertTargetSwagger}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully. Returned data: ' + data);
+ console.log('API called successfully.');
}
};
-api.blueprintServiceGetBlueprints(opts, callback);
+api.updateTarget(targetId, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-angular">
+ <!--<div class="tab-pane" id="examples-Alerts-updateTarget-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-csharp">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -8085,75 +9388,63 @@ using IO.Swagger.Model;
namespace Example
{
- public class blueprintServiceGetBlueprintsExample
+ public class updateTargetExample
{
public void main()
{
- var apiInstance = new BlueprintsApi();
- var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/blueprint_name)
- var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional) (default to Blueprints/blueprint_name.asc)
- var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
- var from = from_example; // String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
- var to = to_example; // String | The ending page resource (inclusive). "end" is also accepted. (optional)
+ var apiInstance = new AlertsApi();
+ var targetId = 789; // Long |
+ var body = new AlertTargetSwagger(); // AlertTargetSwagger | (optional)
try
{
- // Get all blueprints
- array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprints(fields, sortBy, pageSize, from, to);
- Debug.WriteLine(result);
+ // Updates an alert target
+ apiInstance.updateTarget(targetId, body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling BlueprintsApi.blueprintServiceGetBlueprints: " + e.Message );
+ Debug.Print("Exception when calling AlertsApi.updateTarget: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-php">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\BlueprintsApi();
-$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
-$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
-$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
-$from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
-$to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+$api_instance = new Swagger\Client\Api\AlertsApi();
+$targetId = 789; // Long |
+$body = ; // AlertTargetSwagger |
try {
- $result = $api_instance->blueprintServiceGetBlueprints($fields, $sortBy, $pageSize, $from, $to);
- print_r($result);
+ $api_instance->updateTarget($targetId, $body);
} catch (Exception $e) {
- echo 'Exception when calling BlueprintsApi->blueprintServiceGetBlueprints: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AlertsApi->updateTarget: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-perl">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::BlueprintsApi;
+use WWW::SwaggerClient::AlertsApi;
-my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
-my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
-my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
-my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
-my $from = from_example; # String | The starting page resource (inclusive). "start" is also accepted.
-my $to = to_example; # String | The ending page resource (inclusive). "end" is also accepted.
+my $api_instance = WWW::SwaggerClient::AlertsApi->new();
+my $targetId = 789; # Long |
+my $body = WWW::SwaggerClient::Object::AlertTargetSwagger->new(); # AlertTargetSwagger |
eval {
- my $result = $api_instance->blueprintServiceGetBlueprints(fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
- print Dumper($result);
+ $api_instance->updateTarget(targetId => $targetId, body => $body);
};
if ($@) {
- warn "Exception when calling BlueprintsApi->blueprintServiceGetBlueprints: $@\n";
+ warn "Exception when calling AlertsApi->updateTarget: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-python">
+ <div class="tab-pane" id="examples-Alerts-updateTarget-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -8161,47 +9452,38 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.BlueprintsApi()
-fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/blueprint_name)
-sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional) (default to Blueprints/blueprint_name.asc)
-pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
-from = from_example # String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-to = to_example # String | The ending page resource (inclusive). "end" is also accepted. (optional)
+api_instance = swagger_client.AlertsApi()
+targetId = 789 # Long |
+body = # AlertTargetSwagger | (optional)
try:
- # Get all blueprints
- api_response = api_instance.blueprintServiceGetBlueprints(fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
- pprint(api_response)
+ # Updates an alert target
+ api_instance.updateTarget(targetId, body=body)
except ApiException as e:
- print("Exception when calling BlueprintsApi->blueprintServiceGetBlueprints: %s\n" % e)</code></pre>
+ print("Exception when calling AlertsApi->updateTarget: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
-
-
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">fields</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">targetId*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "fields",
- "in" : "query",
- "description" : "Filter fields in the response (identifier fields are mandatory)",
- "required" : false,
- "type" : "string",
- "default" : "Blueprints/blueprint_name"
+ "name" : "targetId",
+ "in" : "path",
+ "required" : true,
+ "type" : "integer",
+ "format" : "int64"
};
var schema = schemaWrapper;
@@ -8209,7 +9491,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprints_fields');
+ var result = $('#d2e199_updateTarget_targetId');
result.empty();
result.append(view.render());
@@ -8219,194 +9501,100 @@ except ApiException as e:
});
</script>
- <div id="d2e199_blueprintServiceGetBlueprints_fields"></div>
+ <div id="d2e199_updateTarget_targetId"></div>
</td>
</tr>
- <tr><td style="width:150px;">sortBy</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "sortBy",
- "in" : "query",
- "description" : "Sort resources in result by (asc | desc)",
- "required" : false,
- "type" : "string",
- "default" : "Blueprints/blueprint_name.asc"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprints_sortBy');
- result.empty();
- result.append(view.render());
-
-
-
-
+ </table>
- });
- </script>
- <div id="d2e199_blueprintServiceGetBlueprints_sortBy"></div>
-</td>
-</tr>
- <tr><td style="width:150px;">page_size</td>
+ <div class="methodsubtabletitle">Body parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">body </td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "page_size",
- "in" : "query",
- "description" : "The number of resources to be returned for the paged response.",
+ "in" : "body",
+ "name" : "body",
"required" : false,
- "type" : "integer",
- "default" : 10
+ "schema" : {
+ "$ref" : "#/definitions/AlertTargetSwagger"
+ }
};
- var schema = schemaWrapper;
-
-
-
+
+ var schema = schemaWrapper.schema;
+ schemaWrapper.definitions = defs;
+ JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
+
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprints_pageSize');
+
+ var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
+
+ var result = $('#d2e199_updateTarget_body');
result.empty();
result.append(view.render());
+
-
-
+
+
+
});
- </script>
- <div id="d2e199_blueprintServiceGetBlueprints_pageSize"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">from</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "from",
- "in" : "query",
- "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
- "required" : false,
- "type" : "string",
- "default" : "0"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprints_from');
- result.empty();
- result.append(view.render());
-
-
});
</script>
- <div id="d2e199_blueprintServiceGetBlueprints_from"></div>
+ <div id="d2e199_updateTarget_body"></div>
</td>
</tr>
- <tr><td style="width:150px;">to</td>
-<td>
-
+ </table>
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "to",
- "in" : "query",
- "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
- "required" : false,
- "type" : "string"
-};
- var schema = schemaWrapper;
+ <h2>Responses</h2>
+ <h3> Status: 200 - Successful operation </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_blueprintServiceGetBlueprints_to');
- result.empty();
- result.append(view.render());
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 202 - Request is accepted, but not completely processed yet </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 400 - Invalid arguments </h3>
- });
- </script>
- <div id="d2e199_blueprintServiceGetBlueprints_to"></div>
-</td>
-</tr>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- </table>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- <h2>Responses</h2>
- <h3> Status: 200 - Successful operation </h3>
+ <h3> Status: 401 - Not authenticated </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
- <li class="active">
- <a data-toggle="tab" href="#responses-blueprintServiceGetBlueprints-200-schema">Schema</a>
- </li>
-
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-blueprintServiceGetBlueprints-200-schema">
- <div id='responses-blueprintServiceGetBlueprints-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
- <script>
- $(document).ready(function() {
- var schemaWrapper = {
- "description" : "Successful operation",
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/BlueprintSwagger"
- }
- }
-};
- var schema = schemaWrapper.schema;
- schemaWrapper.definitions = defs;
- //console.log(JSON.stringify(schema))
- JsonRefs.resolveRefs(schemaWrapper, {
- "depth": 3,
- "resolveRemoteRefs": false,
- "resolveFileRefs": false
- }, function(err, resolved, metadata) {
- //console.log(JSON.stringify(resolved));
- var view = new JSONSchemaView(resolved.schema, 3);
- $('#responses-blueprintServiceGetBlueprints-200-schema-data').val(JSON.stringify(resolved.schema));
- var result = $('#responses-blueprintServiceGetBlueprints-200-schema-200');
- result.empty();
- result.append(view.render());
- });
- });
- </script>
- </div>
- <input id='responses-blueprintServiceGetBlueprints-200-schema-data' type='hidden' value=''></input>
- </div>
</div>
- <h3> Status: 401 - Not authenticated </h3>
+ <h3> Status: 403 - Not permitted to perform the operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -8426,13 +9614,13 @@ except ApiException as e:
</div>
<hr>
</section>
- <section id="api-ClusterServices">
- <h1>ClusterServices</h1>
- <div id="api-ClusterServices-serviceServiceCreateArtifact">
- <article id="api-ClusterServices-serviceServiceCreateArtifact-0" data-group="User" data-name="serviceServiceCreateArtifact" data-version="0">
+ <section id="api-Blueprints">
+ <h1>Blueprints</h1>
+ <div id="api-Blueprints-blueprintServiceCreateBlueprint">
+ <article id="api-Blueprints-blueprintServiceCreateBlueprint-0" data-group="User" data-name="blueprintServiceCreateBlueprint" data-version="0">
<div class="pull-left">
- <h1>serviceServiceCreateArtifact</h1>
- <p>Creates a service artifact</p>
+ <h1>blueprintServiceCreateBlueprint</h1>
+ <p>Creates a blueprint</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -8440,92 +9628,84 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/blueprints/{blueprintName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-java">Java</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceCreateBlueprint-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceCreateArtifact-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}"</code></pre>
+ <div class="tab-pane active" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "https://localhost/api/v1/blueprints/{blueprintName}"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-java">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.ClusterServicesApi;
+import io.swagger.client.api.BlueprintsApi;
import java.io.File;
import java.util.*;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String artifactName = artifactName_example; // String |
- String clusterName = clusterName_example; // String |
- ClusterServiceArtifactRequest body = ; // ClusterServiceArtifactRequest |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String blueprintName = blueprintName_example; // String |
+ BlueprintSwagger body = ; // BlueprintSwagger |
try {
- apiInstance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body);
+ apiInstance.blueprintServiceCreateBlueprint(blueprintName, body);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateArtifact");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceCreateBlueprint");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String artifactName = artifactName_example; // String |
- String clusterName = clusterName_example; // String |
- ClusterServiceArtifactRequest body = ; // ClusterServiceArtifactRequest |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String blueprintName = blueprintName_example; // String |
+ BlueprintSwagger body = ; // BlueprintSwagger |
try {
- apiInstance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body);
+ apiInstance.blueprintServiceCreateBlueprint(blueprintName, body);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateArtifact");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceCreateBlueprint");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-groovy">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
-String *artifactName = artifactName_example; //
-String *clusterName = clusterName_example; //
-ClusterServiceArtifactRequest *body = ; // (optional)
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">String *blueprintName = blueprintName_example; //
+BlueprintSwagger *body = ; // (optional)
-ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
+BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
-// Creates a service artifact
-[apiInstance serviceServiceCreateArtifactWith:serviceName
- artifactName:artifactName
- clusterName:clusterName
+// Creates a blueprint
+[apiInstance blueprintServiceCreateBlueprintWith:blueprintName
body:body
completionHandler: ^(NSError* error) {
if (error) {
@@ -8535,19 +9715,15 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-javascript">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
-
-var serviceName = serviceName_example; // {String}
-
-var artifactName = artifactName_example; // {String}
+var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
-var clusterName = clusterName_example; // {String}
+var blueprintName = blueprintName_example; // {String}
var opts = {
- 'body': // {ClusterServiceArtifactRequest}
+ 'body': // {BlueprintSwagger}
};
var callback = function(error, data, response) {
@@ -8557,14 +9733,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, opts, callback);
+api.blueprintServiceCreateBlueprint(blueprintName, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-angular">
+ <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-csharp">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -8573,69 +9749,63 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceCreateArtifactExample
+ public class blueprintServiceCreateBlueprintExample
{
public void main()
{
- var apiInstance = new ClusterServicesApi();
- var serviceName = serviceName_example; // String |
- var artifactName = artifactName_example; // String |
- var clusterName = clusterName_example; // String |
- var body = new ClusterServiceArtifactRequest(); // ClusterServiceArtifactRequest | (optional)
+ var apiInstance = new BlueprintsApi();
+ var blueprintName = blueprintName_example; // String |
+ var body = new BlueprintSwagger(); // BlueprintSwagger | (optional)
try
{
- // Creates a service artifact
- apiInstance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body);
+ // Creates a blueprint
+ apiInstance.blueprintServiceCreateBlueprint(blueprintName, body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceCreateArtifact: " + e.Message );
+ Debug.Print("Exception when calling BlueprintsApi.blueprintServiceCreateBlueprint: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-php">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\ClusterServicesApi();
-$serviceName = serviceName_example; // String |
-$artifactName = artifactName_example; // String |
-$clusterName = clusterName_example; // String |
-$body = ; // ClusterServiceArtifactRequest |
+$api_instance = new Swagger\Client\Api\BlueprintsApi();
+$blueprintName = blueprintName_example; // String |
+$body = ; // BlueprintSwagger |
try {
- $api_instance->serviceServiceCreateArtifact($serviceName, $artifactName, $clusterName, $body);
+ $api_instance->blueprintServiceCreateBlueprint($blueprintName, $body);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceCreateArtifact: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling BlueprintsApi->blueprintServiceCreateBlueprint: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-perl">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ClusterServicesApi;
+use WWW::SwaggerClient::BlueprintsApi;
-my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
-my $serviceName = serviceName_example; # String |
-my $artifactName = artifactName_example; # String |
-my $clusterName = clusterName_example; # String |
-my $body = WWW::SwaggerClient::Object::ClusterServiceArtifactRequest->new(); # ClusterServiceArtifactRequest |
+my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
+my $blueprintName = blueprintName_example; # String |
+my $body = WWW::SwaggerClient::Object::BlueprintSwagger->new(); # BlueprintSwagger |
eval {
- $api_instance->serviceServiceCreateArtifact(serviceName => $serviceName, artifactName => $artifactName, clusterName => $clusterName, body => $body);
+ $api_instance->blueprintServiceCreateBlueprint(blueprintName => $blueprintName, body => $body);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceCreateArtifact: $@\n";
+ warn "Exception when calling BlueprintsApi->blueprintServiceCreateBlueprint: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-python">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceCreateBlueprint-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -8643,17 +9813,15 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ClusterServicesApi()
-serviceName = serviceName_example # String |
-artifactName = artifactName_example # String |
-clusterName = clusterName_example # String |
-body = # ClusterServiceArtifactRequest | (optional)
+api_instance = swagger_client.BlueprintsApi()
+blueprintName = blueprintName_example # String |
+body = # BlueprintSwagger | (optional)
try:
- # Creates a service artifact
- api_instance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body=body)
+ # Creates a blueprint
+ api_instance.blueprintServiceCreateBlueprint(blueprintName, body=body)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceCreateArtifact: %s\n" % e)</code></pre>
+ print("Exception when calling BlueprintsApi->blueprintServiceCreateBlueprint: %s\n" % e)</code></pre>
</div>
</div>
@@ -8665,78 +9833,14 @@ except ApiException as e:
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">serviceName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "serviceName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceCreateArtifact_serviceName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceCreateArtifact_serviceName"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">artifactName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "artifactName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceCreateArtifact_artifactName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceCreateArtifact_artifactName"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">clusterName*</td>
+ <tr><td style="width:150px;">blueprintName*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "clusterName",
+ "name" : "blueprintName",
"in" : "path",
"required" : true,
"type" : "string"
@@ -8747,7 +9851,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceCreateArtifact_clusterName');
+ var result = $('#d2e199_blueprintServiceCreateBlueprint_blueprintName');
result.empty();
result.append(view.render());
@@ -8757,7 +9861,7 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceCreateArtifact_clusterName"></div>
+ <div id="d2e199_blueprintServiceCreateBlueprint_blueprintName"></div>
</td>
</tr>
@@ -8781,7 +9885,7 @@ except ApiException as e:
"name" : "body",
"required" : false,
"schema" : {
- "$ref" : "#/definitions/ClusterServiceArtifactRequest"
+ "$ref" : "#/definitions/BlueprintSwagger"
}
};
@@ -8793,7 +9897,7 @@ except ApiException as e:
var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
- var result = $('#d2e199_serviceServiceCreateArtifact_body');
+ var result = $('#d2e199_blueprintServiceCreateBlueprint_body');
result.empty();
result.append(view.render());
@@ -8809,7 +9913,7 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceCreateArtifact_body"></div>
+ <div id="d2e199_blueprintServiceCreateBlueprint_body"></div>
</td>
</tr>
@@ -8834,7 +9938,7 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 400 - Invalid arguments </h3>
+ <h3> Status: 400 - The requested resource doesn't exist. </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -8885,11 +9989,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceCreateServices">
- <article id="api-ClusterServices-serviceServiceCreateServices-0" data-group="User" data-name="serviceServiceCreateServices" data-version="0">
+ <div id="api-Blueprints-blueprintServiceDeleteBlueprint">
+ <article id="api-Blueprints-blueprintServiceDeleteBlueprint-0" data-group="User" data-name="blueprintServiceDeleteBlueprint" data-version="0">
<div class="pull-left">
- <h1>serviceServiceCreateServices</h1>
- <p>Creates a service</p>
+ <h1>blueprintServiceDeleteBlueprint</h1>
+ <p>Deletes a blueprint</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -8897,89 +10001,81 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/blueprints/{blueprintName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceCreateServices-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-java">Java</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprint-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceCreateServices-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}"</code></pre>
+ <div class="tab-pane active" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/blueprints/{blueprintName}"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-java">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.ClusterServicesApi;
+import io.swagger.client.api.BlueprintsApi;
import java.io.File;
import java.util.*;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String clusterName = clusterName_example; // String |
- ServiceRequestSwagger body = ; // ServiceRequestSwagger |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String blueprintName = blueprintName_example; // String |
try {
- apiInstance.serviceServiceCreateServices(serviceName, clusterName, body);
+ apiInstance.blueprintServiceDeleteBlueprint(blueprintName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateServices");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprint");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String clusterName = clusterName_example; // String |
- ServiceRequestSwagger body = ; // ServiceRequestSwagger |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String blueprintName = blueprintName_example; // String |
try {
- apiInstance.serviceServiceCreateServices(serviceName, clusterName, body);
+ apiInstance.blueprintServiceDeleteBlueprint(blueprintName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateServices");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprint");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-groovy">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
-String *clusterName = clusterName_example; //
-ServiceRequestSwagger *body = ; // (optional)
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">String *blueprintName = blueprintName_example; //
-ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
+BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
-// Creates a service
-[apiInstance serviceServiceCreateServicesWith:serviceName
- clusterName:clusterName
- body:body
+// Deletes a blueprint
+[apiInstance blueprintServiceDeleteBlueprintWith:blueprintName
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -8988,18 +10084,13 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-javascript">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
-
-var serviceName = serviceName_example; // {String}
+var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
-var clusterName = clusterName_example; // {String}
+var blueprintName = blueprintName_example; // {String}
-var opts = {
- 'body': // {ServiceRequestSwagger}
-};
var callback = function(error, data, response) {
if (error) {
@@ -9008,14 +10099,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.serviceServiceCreateServices(serviceName, clusterName, opts, callback);
+api.blueprintServiceDeleteBlueprint(blueprintName, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-angular">
+ <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-csharp">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -9024,66 +10115,60 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceCreateServicesExample
+ public class blueprintServiceDeleteBlueprintExample
{
public void main()
{
- var apiInstance = new ClusterServicesApi();
- var serviceName = serviceName_example; // String |
- var clusterName = clusterName_example; // String |
- var body = new ServiceRequestSwagger(); // ServiceRequestSwagger | (optional)
+ var apiInstance = new BlueprintsApi();
+ var blueprintName = blueprintName_example; // String |
try
{
- // Creates a service
- apiInstance.serviceServiceCreateServices(serviceName, clusterName, body);
+ // Deletes a blueprint
+ apiInstance.blueprintServiceDeleteBlueprint(blueprintName);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceCreateServices: " + e.Message );
+ Debug.Print("Exception when calling BlueprintsApi.blueprintServiceDeleteBlueprint: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-php">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\ClusterServicesApi();
-$serviceName = serviceName_example; // String |
-$clusterName = clusterName_example; // String |
-$body = ; // ServiceRequestSwagger |
+$api_instance = new Swagger\Client\Api\BlueprintsApi();
+$blueprintName = blueprintName_example; // String |
try {
- $api_instance->serviceServiceCreateServices($serviceName, $clusterName, $body);
+ $api_instance->blueprintServiceDeleteBlueprint($blueprintName);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceCreateServices: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprint: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-perl">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ClusterServicesApi;
+use WWW::SwaggerClient::BlueprintsApi;
-my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
-my $serviceName = serviceName_example; # String |
-my $clusterName = clusterName_example; # String |
-my $body = WWW::SwaggerClient::Object::ServiceRequestSwagger->new(); # ServiceRequestSwagger |
+my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
+my $blueprintName = blueprintName_example; # String |
eval {
- $api_instance->serviceServiceCreateServices(serviceName => $serviceName, clusterName => $clusterName, body => $body);
+ $api_instance->blueprintServiceDeleteBlueprint(blueprintName => $blueprintName);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceCreateServices: $@\n";
+ warn "Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprint: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-python">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprint-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -9091,16 +10176,14 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ClusterServicesApi()
-serviceName = serviceName_example # String |
-clusterName = clusterName_example # String |
-body = # ServiceRequestSwagger | (optional)
+api_instance = swagger_client.BlueprintsApi()
+blueprintName = blueprintName_example # String |
try:
- # Creates a service
- api_instance.serviceServiceCreateServices(serviceName, clusterName, body=body)
+ # Deletes a blueprint
+ api_instance.blueprintServiceDeleteBlueprint(blueprintName)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceCreateServices: %s\n" % e)</code></pre>
+ print("Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprint: %s\n" % e)</code></pre>
</div>
</div>
@@ -9112,46 +10195,14 @@ except ApiException as e:
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">serviceName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "serviceName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceCreateServices_serviceName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceCreateServices_serviceName"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">clusterName*</td>
+ <tr><td style="width:150px;">blueprintName*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "clusterName",
+ "name" : "blueprintName",
"in" : "path",
"required" : true,
"type" : "string"
@@ -9162,7 +10213,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceCreateServices_clusterName');
+ var result = $('#d2e199_blueprintServiceDeleteBlueprint_blueprintName');
result.empty();
result.append(view.render());
@@ -9172,84 +10223,18 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceCreateServices_clusterName"></div>
+ <div id="d2e199_blueprintServiceDeleteBlueprint_blueprintName"></div>
</td>
</tr>
</table>
- <div class="methodsubtabletitle">Body parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">body </td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "in" : "body",
- "name" : "body",
- "required" : false,
- "schema" : {
- "$ref" : "#/definitions/ServiceRequestSwagger"
- }
-};
-
- var schema = schemaWrapper.schema;
- schemaWrapper.definitions = defs;
- JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
-
-
-
- var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
-
- var result = $('#d2e199_serviceServiceCreateServices_body');
- result.empty();
- result.append(view.render());
-
-
-
-
-
-
-
- });
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceCreateServices_body"></div>
-</td>
-</tr>
-
- </table>
<h2>Responses</h2>
- <h3> Status: 201 - Successful operation </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
-
- <h3> Status: 202 - Request is accepted, but not completely processed yet </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
-
- <h3> Status: 400 - Invalid arguments </h3>
+ <h3> Status: 200 - Successful operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -9281,14 +10266,6 @@ except ApiException as e:
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
- <h3> Status: 409 - The requested resource already exists. </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
-
<h3> Status: 500 - Internal server error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
@@ -9300,11 +10277,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceDeleteArtifact">
- <article id="api-ClusterServices-serviceServiceDeleteArtifact-0" data-group="User" data-name="serviceServiceDeleteArtifact" data-version="0">
+ <div id="api-Blueprints-blueprintServiceDeleteBlueprints">
+ <article id="api-Blueprints-blueprintServiceDeleteBlueprints-0" data-group="User" data-name="blueprintServiceDeleteBlueprints" data-version="0">
<div class="pull-left">
- <h1>serviceServiceDeleteArtifact</h1>
- <p>Deletes a single service artifact</p>
+ <h1>blueprintServiceDeleteBlueprints</h1>
+ <p>Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -9312,90 +10289,79 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/blueprints</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-java">Java</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceDeleteBlueprints-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}"</code></pre>
+ <div class="tab-pane active" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/blueprints"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-java">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.ClusterServicesApi;
+import io.swagger.client.api.BlueprintsApi;
import java.io.File;
import java.util.*;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String artifactName = artifactName_example; // String |
- String clusterName = clusterName_example; // String |
+ BlueprintsApi apiInstance = new BlueprintsApi();
try {
- apiInstance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName);
+ apiInstance.blueprintServiceDeleteBlueprints();
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifact");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprints");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String artifactName = artifactName_example; // String |
- String clusterName = clusterName_example; // String |
+ BlueprintsApi apiInstance = new BlueprintsApi();
try {
- apiInstance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName);
+ apiInstance.blueprintServiceDeleteBlueprints();
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifact");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceDeleteBlueprints");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-groovy">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
-String *artifactName = artifactName_example; //
-String *clusterName = clusterName_example; //
-
-ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">
+BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
-// Deletes a single service artifact
-[apiInstance serviceServiceDeleteArtifactWith:serviceName
- artifactName:artifactName
- clusterName:clusterName
- completionHandler: ^(NSError* error) {
+// Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.
+[apiInstance blueprintServiceDeleteBlueprintsWithCompletionHandler:
+ ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -9403,17 +10369,10 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-javascript">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
-
-var serviceName = serviceName_example; // {String}
-
-var artifactName = artifactName_example; // {String}
-
-var clusterName = clusterName_example; // {String}
-
+var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
var callback = function(error, data, response) {
if (error) {
@@ -9422,14 +10381,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName, callback);
+api.blueprintServiceDeleteBlueprints(callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-angular">
+ <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-csharp">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -9438,66 +10397,57 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceDeleteArtifactExample
+ public class blueprintServiceDeleteBlueprintsExample
{
public void main()
{
- var apiInstance = new ClusterServicesApi();
- var serviceName = serviceName_example; // String |
- var artifactName = artifactName_example; // String |
- var clusterName = clusterName_example; // String |
+ var apiInstance = new BlueprintsApi();
try
{
- // Deletes a single service artifact
- apiInstance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName);
+ // Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.
+ apiInstance.blueprintServiceDeleteBlueprints();
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceDeleteArtifact: " + e.Message );
+ Debug.Print("Exception when calling BlueprintsApi.blueprintServiceDeleteBlueprints: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-php">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\ClusterServicesApi();
-$serviceName = serviceName_example; // String |
-$artifactName = artifactName_example; // String |
-$clusterName = clusterName_example; // String |
+$api_instance = new Swagger\Client\Api\BlueprintsApi();
try {
- $api_instance->serviceServiceDeleteArtifact($serviceName, $artifactName, $clusterName);
+ $api_instance->blueprintServiceDeleteBlueprints();
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceDeleteArtifact: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprints: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-perl">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ClusterServicesApi;
+use WWW::SwaggerClient::BlueprintsApi;
-my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
-my $serviceName = serviceName_example; # String |
-my $artifactName = artifactName_example; # String |
-my $clusterName = clusterName_example; # String |
+my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
eval {
- $api_instance->serviceServiceDeleteArtifact(serviceName => $serviceName, artifactName => $artifactName, clusterName => $clusterName);
+ $api_instance->blueprintServiceDeleteBlueprints();
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceDeleteArtifact: $@\n";
+ warn "Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprints: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-python">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceDeleteBlueprints-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -9505,124 +10455,18 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ClusterServicesApi()
-serviceName = serviceName_example # String |
-artifactName = artifactName_example # String |
-clusterName = clusterName_example # String |
+api_instance = swagger_client.BlueprintsApi()
try:
- # Deletes a single service artifact
- api_instance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName)
+ # Deletes multiple blueprints that match the predicate. Omitting the predicate will delete all blueprints.
+ api_instance.blueprintServiceDeleteBlueprints()
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceDeleteArtifact: %s\n" % e)</code></pre>
+ print("Exception when calling BlueprintsApi->blueprintServiceDeleteBlueprints: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
- <div class="methodsubtabletitle">Path parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">serviceName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "serviceName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteArtifact_serviceName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceDeleteArtifact_serviceName"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">artifactName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "artifactName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteArtifact_artifactName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceDeleteArtifact_artifactName"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">clusterName*</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "clusterName",
- "in" : "path",
- "required" : true,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteArtifact_clusterName');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceDeleteArtifact_clusterName"></div>
-</td>
-</tr>
-
- </table>
@@ -9672,11 +10516,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceDeleteArtifacts">
- <article id="api-ClusterServices-serviceServiceDeleteArtifacts-0" data-group="User" data-name="serviceServiceDeleteArtifacts" data-version="0">
+ <div id="api-Blueprints-blueprintServiceGetBlueprint">
+ <article id="api-Blueprints-blueprintServiceGetBlueprint-0" data-group="User" data-name="blueprintServiceGetBlueprint" data-version="0">
<div class="pull-left">
- <h1>serviceServiceDeleteArtifacts</h1>
- <p>Deletes all artifacts of a service that match the provided predicate</p>
+ <h1>blueprintServiceGetBlueprint</h1>
+ <p>Get the details of a blueprint</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -9684,86 +10528,91 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/blueprints/{blueprintName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-java">Java</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprint-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts"</code></pre>
+ <div class="tab-pane active" id="examples-Blueprints-blueprintServiceGetBlueprint-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "https://localhost/api/v1/blueprints/{blueprintName}?fields="</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-java">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.ClusterServicesApi;
+import io.swagger.client.api.BlueprintsApi;
import java.io.File;
import java.util.*;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String clusterName = clusterName_example; // String |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String blueprintName = blueprintName_example; // String |
+ String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
try {
- apiInstance.serviceServiceDeleteArtifacts(serviceName, clusterName);
+ array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprint(blueprintName, fields);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifacts");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprint");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String clusterName = clusterName_example; // String |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String blueprintName = blueprintName_example; // String |
+ String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
try {
- apiInstance.serviceServiceDeleteArtifacts(serviceName, clusterName);
+ array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprint(blueprintName, fields);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifacts");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprint");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-groovy">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
-String *clusterName = clusterName_example; //
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">String *blueprintName = blueprintName_example; //
+String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/*)
-ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
+BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
-// Deletes all artifacts of a service that match the provided predicate
-[apiInstance serviceServiceDeleteArtifactsWith:serviceName
- clusterName:clusterName
- completionHandler: ^(NSError* error) {
+// Get the details of a blueprint
+[apiInstance blueprintServiceGetBlueprintWith:blueprintName
+ fields:fields
+ completionHandler: ^(array[BlueprintSwagger] output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
if (error) {
NSLog(@"Error: %@", error);
}
@@ -9771,31 +10620,32 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-javascript">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
-
-var serviceName = serviceName_example; // {String}
+var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
-var clusterName = clusterName_example; // {String}
+var blueprintName = blueprintName_example; // {String}
+var opts = {
+ 'fields': fields_example // {String} Filter fields in the response (identifier fields are mandatory)
+};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully.');
+ console.log('API called successfully. Returned data: ' + data);
}
};
-api.serviceServiceDeleteArtifacts(serviceName, clusterName, callback);
+api.blueprintServiceGetBlueprint(blueprintName, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-angular">
+ <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-csharp">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -9804,63 +10654,66 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceDeleteArtifactsExample
+ public class blueprintServiceGetBlueprintExample
{
public void main()
{
- var apiInstance = new ClusterServicesApi();
- var serviceName = serviceName_example; // String |
- var clusterName = clusterName_example; // String |
+ var apiInstance = new BlueprintsApi();
+ var blueprintName = blueprintName_example; // String |
+ var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/*)
try
{
- // Deletes all artifacts of a service that match the provided predicate
- apiInstance.serviceServiceDeleteArtifacts(serviceName, clusterName);
+ // Get the details of a blueprint
+ array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprint(blueprintName, fields);
+ Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceDeleteArtifacts: " + e.Message );
+ Debug.Print("Exception when calling BlueprintsApi.blueprintServiceGetBlueprint: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-php">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\ClusterServicesApi();
-$serviceName = serviceName_example; // String |
-$clusterName = clusterName_example; // String |
+$api_instance = new Swagger\Client\Api\BlueprintsApi();
+$blueprintName = blueprintName_example; // String |
+$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
try {
- $api_instance->serviceServiceDeleteArtifacts($serviceName, $clusterName);
+ $result = $api_instance->blueprintServiceGetBlueprint($blueprintName, $fields);
+ print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceDeleteArtifacts: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling BlueprintsApi->blueprintServiceGetBlueprint: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-perl">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ClusterServicesApi;
+use WWW::SwaggerClient::BlueprintsApi;
-my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
-my $serviceName = serviceName_example; # String |
-my $clusterName = clusterName_example; # String |
+my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
+my $blueprintName = blueprintName_example; # String |
+my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
eval {
- $api_instance->serviceServiceDeleteArtifacts(serviceName => $serviceName, clusterName => $clusterName);
+ my $result = $api_instance->blueprintServiceGetBlueprint(blueprintName => $blueprintName, fields => $fields);
+ print Dumper($result);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceDeleteArtifacts: $@\n";
+ warn "Exception when calling BlueprintsApi->blueprintServiceGetBlueprint: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-python">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprint-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -9868,15 +10721,16 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ClusterServicesApi()
-serviceName = serviceName_example # String |
-clusterName = clusterName_example # String |
+api_instance = swagger_client.BlueprintsApi()
+blueprintName = blueprintName_example # String |
+fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/*)
try:
- # Deletes all artifacts of a service that match the provided predicate
- api_instance.serviceServiceDeleteArtifacts(serviceName, clusterName)
+ # Get the details of a blueprint
+ api_response = api_instance.blueprintServiceGetBlueprint(blueprintName, fields=fields)
+ pprint(api_response)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceDeleteArtifacts: %s\n" % e)</code></pre>
+ print("Exception when calling BlueprintsApi->blueprintServiceGetBlueprint: %s\n" % e)</code></pre>
</div>
</div>
@@ -9888,14 +10742,14 @@ except ApiException as e:
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">serviceName*</td>
+ <tr><td style="width:150px;">blueprintName*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "serviceName",
+ "name" : "blueprintName",
"in" : "path",
"required" : true,
"type" : "string"
@@ -9906,7 +10760,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteArtifacts_serviceName');
+ var result = $('#d2e199_blueprintServiceGetBlueprint_blueprintName');
result.empty();
result.append(view.render());
@@ -9916,21 +10770,34 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceDeleteArtifacts_serviceName"></div>
+ <div id="d2e199_blueprintServiceGetBlueprint_blueprintName"></div>
</td>
</tr>
- <tr><td style="width:150px;">clusterName*</td>
+ </table>
+
+
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">fields</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "clusterName",
- "in" : "path",
- "required" : true,
- "type" : "string"
+ "name" : "fields",
+ "in" : "query",
+ "description" : "Filter fields in the response (identifier fields are mandatory)",
+ "required" : false,
+ "type" : "string",
+ "default" : "Blueprints/*"
};
var schema = schemaWrapper;
@@ -9938,7 +10805,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteArtifacts_clusterName');
+ var result = $('#d2e199_blueprintServiceGetBlueprint_fields');
result.empty();
result.append(view.render());
@@ -9948,34 +10815,59 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceDeleteArtifacts_clusterName"></div>
+ <div id="d2e199_blueprintServiceGetBlueprint_fields"></div>
</td>
</tr>
</table>
-
-
-
-
<h2>Responses</h2>
<h3> Status: 200 - Successful operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
-
- <h3> Status: 401 - Not authenticated </h3>
+ <li class="active">
+ <a data-toggle="tab" href="#responses-blueprintServiceGetBlueprint-200-schema">Schema</a>
+ </li>
- <ul class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-blueprintServiceGetBlueprint-200-schema">
+ <div id='responses-blueprintServiceGetBlueprint-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Successful operation",
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BlueprintSwagger"
+ }
+ }
+};
+ var schema = schemaWrapper.schema;
+ schemaWrapper.definitions = defs;
+ //console.log(JSON.stringify(schema))
+ JsonRefs.resolveRefs(schemaWrapper, {
+ "depth": 3,
+ "resolveRemoteRefs": false,
+ "resolveFileRefs": false
+ }, function(err, resolved, metadata) {
+ //console.log(JSON.stringify(resolved));
+ var view = new JSONSchemaView(resolved.schema, 3);
+ $('#responses-blueprintServiceGetBlueprint-200-schema-data').val(JSON.stringify(resolved.schema));
+ var result = $('#responses-blueprintServiceGetBlueprint-200-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ });
+ </script>
+ </div>
+ <input id='responses-blueprintServiceGetBlueprint-200-schema-data' type='hidden' value=''></input>
+ </div>
</div>
- <h3> Status: 403 - Not permitted to perform the operation </h3>
+ <h3> Status: 401 - Not authenticated </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -10002,11 +10894,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceDeleteService">
- <article id="api-ClusterServices-serviceServiceDeleteService-0" data-group="User" data-name="serviceServiceDeleteService" data-version="0">
+ <div id="api-Blueprints-blueprintServiceGetBlueprints">
+ <article id="api-Blueprints-blueprintServiceGetBlueprints-0" data-group="User" data-name="blueprintServiceGetBlueprints" data-version="0">
<div class="pull-left">
- <h1>serviceServiceDeleteService</h1>
- <p>Deletes a service</p>
+ <h1>blueprintServiceGetBlueprints</h1>
+ <p>Get all blueprints</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -10014,86 +10906,103 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/blueprints</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceDeleteService-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-python">Python</a></li>
+ <li class="active"><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-java">Java</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-php">PHP</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-Blueprints-blueprintServiceGetBlueprints-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceDeleteService-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}"</code></pre>
+ <div class="tab-pane active" id="examples-Blueprints-blueprintServiceGetBlueprints-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "https://localhost/api/v1/blueprints?fields=&sortBy=&pageSize=&from=&to="</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-java">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.ClusterServicesApi;
+import io.swagger.client.api.BlueprintsApi;
import java.io.File;
import java.util.*;
-public class ClusterServicesApiExample {
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String clusterName = clusterName_example; // String |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+ String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+ Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+ String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
+ String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
- apiInstance.serviceServiceDeleteService(serviceName, clusterName);
+ array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprints(fields, sortBy, pageSize, from, to);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteService");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprints");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-android">
- <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
-
-public class ClusterServicesApiExample {
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-android">
+ <pre class="prettyprint"><code class="language-java">import io.swagger.client.api.BlueprintsApi;
+
+public class BlueprintsApiExample {
public static void main(String[] args) {
- ClusterServicesApi apiInstance = new ClusterServicesApi();
- String serviceName = serviceName_example; // String |
- String clusterName = clusterName_example; // String |
+ BlueprintsApi apiInstance = new BlueprintsApi();
+ String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+ String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+ Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+ String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
+ String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
- apiInstance.serviceServiceDeleteService(serviceName, clusterName);
+ array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprints(fields, sortBy, pageSize, from, to);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteService");
+ System.err.println("Exception when calling BlueprintsApi#blueprintServiceGetBlueprints");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-groovy">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
-String *clusterName = clusterName_example; //
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/blueprint_name)
+String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional) (default to Blueprints/blueprint_name.asc)
+Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
+String *from = from_example; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+String *to = to_example; // The ending page resource (inclusive). "end" is also accepted. (optional)
-ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
+BlueprintsApi *apiInstance = [[BlueprintsApi alloc] init];
-// Deletes a service
-[apiInstance serviceServiceDeleteServiceWith:serviceName
- clusterName:clusterName
- completionHandler: ^(NSError* error) {
+// Get all blueprints
+[apiInstance blueprintServiceGetBlueprintsWith:fields
+ sortBy:sortBy
+ pageSize:pageSize
+ from:from
+ to:to
+ completionHandler: ^(array[BlueprintSwagger] output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
if (error) {
NSLog(@"Error: %@", error);
}
@@ -10101,31 +11010,34 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-javascript">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
-var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
-
-var serviceName = serviceName_example; // {String}
-
-var clusterName = clusterName_example; // {String}
+var api = new SwaggerSpecForAmbariRestApi.BlueprintsApi()
+var opts = {
+ 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
+ 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
+ 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
+ 'from': from_example, // {String} The starting page resource (inclusive). "start" is also accepted.
+ 'to': to_example // {String} The ending page resource (inclusive). "end" is also accepted.
+};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully.');
+ console.log('API called successfully. Returned data: ' + data);
}
};
-api.serviceServiceDeleteService(serviceName, clusterName, callback);
+api.blueprintServiceGetBlueprints(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-angular">
+ <!--<div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-csharp">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -10134,63 +11046,75 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceDeleteServiceExample
+ public class blueprintServiceGetBlueprintsExample
{
public void main()
{
- var apiInstance = new ClusterServicesApi();
- var serviceName = serviceName_example; // String |
- var clusterName = clusterName_example; // String |
+ var apiInstance = new BlueprintsApi();
+ var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/blueprint_name)
+ var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional) (default to Blueprints/blueprint_name.asc)
+ var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
+ var from = from_example; // String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+ var to = to_example; // String | The ending page resource (inclusive). "end" is also accepted. (optional)
try
{
- // Deletes a service
- apiInstance.serviceServiceDeleteService(serviceName, clusterName);
+ // Get all blueprints
+ array[BlueprintSwagger] result = apiInstance.blueprintServiceGetBlueprints(fields, sortBy, pageSize, from, to);
+ Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceDeleteService: " + e.Message );
+ Debug.Print("Exception when calling BlueprintsApi.blueprintServiceGetBlueprints: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-php">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\Api\ClusterServicesApi();
-$serviceName = serviceName_example; // String |
-$clusterName = clusterName_example; // String |
+$api_instance = new Swagger\Client\Api\BlueprintsApi();
+$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
+$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
+$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
+$from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
+$to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
- $api_instance->serviceServiceDeleteService($serviceName, $clusterName);
+ $result = $api_instance->blueprintServiceGetBlueprints($fields, $sortBy, $pageSize, $from, $to);
+ print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceDeleteService: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling BlueprintsApi->blueprintServiceGetBlueprints: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-perl">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ClusterServicesApi;
+use WWW::SwaggerClient::BlueprintsApi;
-my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
-my $serviceName = serviceName_example; # String |
-my $clusterName = clusterName_example; # String |
+my $api_instance = WWW::SwaggerClient::BlueprintsApi->new();
+my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
+my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
+my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
+my $from = from_example; # String | The starting page resource (inclusive). "start" is also accepted.
+my $to = to_example; # String | The ending page resource (inclusive). "end" is also accepted.
eval {
- $api_instance->serviceServiceDeleteService(serviceName => $serviceName, clusterName => $clusterName);
+ my $result = $api_instance->blueprintServiceGetBlueprints(fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
+ print Dumper($result);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceDeleteService: $@\n";
+ warn "Exception when calling BlueprintsApi->blueprintServiceGetBlueprints: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-python">
+ <div class="tab-pane" id="examples-Blueprints-blueprintServiceGetBlueprints-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -10198,37 +11122,47 @@ from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ClusterServicesApi()
-serviceName = serviceName_example # String |
-clusterName = clusterName_example # String |
+api_instance = swagger_client.BlueprintsApi()
+fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Blueprints/blueprint_name)
+sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional) (default to Blueprints/blueprint_name.asc)
+pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
+from = from_example # String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
+to = to_example # String | The ending page resource (inclusive). "end" is also accepted. (optional)
try:
- # Deletes a service
- api_instance.serviceServiceDeleteService(serviceName, clusterName)
+ # Get all blueprints
+ api_response = api_instance.blueprintServiceGetBlueprints(fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
+ pprint(api_response)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceDeleteService: %s\n" % e)</code></pre>
+ print("Exception when calling BlueprintsApi->blueprintServiceGetBlueprints: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
- <div class="methodsubtabletitle">Path parameters</div>
+
+
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">serviceName*</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">fields</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "serviceName",
- "in" : "path",
- "required" : true,
- "type" : "string"
+ "name" : "fields",
+ "in" : "query",
+ "description" : "Filter fields in the response (identifier fields are mandatory)",
+ "required" : false,
+ "type" : "string",
+ "default" : "Blueprints/blueprint_name"
};
var schema = schemaWrapper;
@@ -10236,7 +11170,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteService_serviceName');
+ var result = $('#d2e199_blueprintServiceGetBlueprints_fields');
result.empty();
result.append(view.render());
@@ -10246,21 +11180,23 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceDeleteService_serviceName"></div>
+ <div id="d2e199_blueprintServiceGetBlueprints_fields"></div>
</td>
</tr>
- <tr><td style="width:150px;">clusterName*</td>
+ <tr><td style="width:150px;">sortBy</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "clusterName",
- "in" : "path",
- "required" : true,
- "type" : "string"
+ "name" : "sortBy",
+ "in" : "query",
+ "description" : "Sort resources in result by (asc | desc)",
+ "required" : false,
+ "type" : "string",
+ "default" : "Blueprints/blueprint_name.asc"
};
var schema = schemaWrapper;
@@ -10268,7 +11204,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceDeleteService_clusterName');
+ var result = $('#d2e199_blueprintServiceGetBlueprints_sortBy');
result.empty();
result.append(view.render());
@@ -10278,42 +11214,160 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceDeleteService_clusterName"></div>
+ <div id="d2e199_blueprintServiceGetBlueprints_sortBy"></div>
</td>
</tr>
- </table>
+ <tr><td style="width:150px;">page_size</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "page_size",
+ "in" : "query",
+ "description" : "The number of resources to be returned for the paged response.",
+ "required" : false,
+ "type" : "integer",
+ "default" : 10
+};
+ var schema = schemaWrapper;
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_blueprintServiceGetBlueprints_pageSize');
+ result.empty();
+ result.append(view.render());
- <h2>Responses</h2>
- <h3> Status: 200 - Successful operation </h3>
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
- <h3> Status: 401 - Not authenticated </h3>
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
+ });
+ </script>
+ <div id="d2e199_blueprintServiceGetBlueprints_pageSize"></div>
+</td>
+</tr>
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
+ <tr><td style="width:150px;">from</td>
+<td>
- <h3> Status: 403 - Not permitted to perform the operation </h3>
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "from",
+ "in" : "query",
+ "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
+ "required" : false,
+ "type" : "string",
+ "default" : "0"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_blueprintServiceGetBlueprints_from');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_blueprintServiceGetBlueprints_from"></div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">to</td>
+<td>
+
+
+<script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "name" : "to",
+ "in" : "query",
+ "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
+ "required" : false,
+ "type" : "string"
+};
+ var schema = schemaWrapper;
+
+
+
+
+ var view = new JSONSchemaView(schema,1);
+ var result = $('#d2e199_blueprintServiceGetBlueprints_to');
+ result.empty();
+ result.append(view.render());
+
+
+
+
+
+ });
+ </script>
+ <div id="d2e199_blueprintServiceGetBlueprints_to"></div>
+</td>
+</tr>
+
+ </table>
+
+ <h2>Responses</h2>
+ <h3> Status: 200 - Successful operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-blueprintServiceGetBlueprints-200-schema">Schema</a>
+ </li>
+
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-blueprintServiceGetBlueprints-200-schema">
+ <div id='responses-blueprintServiceGetBlueprints-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Successful operation",
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BlueprintSwagger"
+ }
+ }
+};
+ var schema = schemaWrapper.schema;
+ schemaWrapper.definitions = defs;
+ //console.log(JSON.stringify(schema))
+ JsonRefs.resolveRefs(schemaWrapper, {
+ "depth": 3,
+ "resolveRemoteRefs": false,
+ "resolveFileRefs": false
+ }, function(err, resolved, metadata) {
+ //console.log(JSON.stringify(resolved));
+ var view = new JSONSchemaView(resolved.schema, 3);
+ $('#responses-blueprintServiceGetBlueprints-200-schema-data').val(JSON.stringify(resolved.schema));
+ var result = $('#responses-blueprintServiceGetBlueprints-200-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ });
+ </script>
+ </div>
+ <input id='responses-blueprintServiceGetBlueprints-200-schema-data' type='hidden' value=''></input>
+ </div>
</div>
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
+ <h3> Status: 401 - Not authenticated </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -10332,11 +11386,14 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceGetArtifact">
- <article id="api-ClusterServices-serviceServiceGetArtifact-0" data-group="User" data-name="serviceServiceGetArtifact" data-version="0">
+ </section>
+ <section id="api-ClusterServices">
+ <h1>ClusterServices</h1>
+ <div id="api-ClusterServices-serviceServiceCreateArtifact">
+ <article id="api-ClusterServices-serviceServiceCreateArtifact-0" data-group="User" data-name="serviceServiceCreateArtifact" data-version="0">
<div class="pull-left">
- <h1>serviceServiceGetArtifact</h1>
- <p>Get the details of a service artifact</p>
+ <h1>serviceServiceCreateArtifact</h1>
+ <p>Creates a service artifact</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -10344,29 +11401,29 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifact-0-python">Python</a></li>
+ <li class="active"><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-java">Java</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-php">PHP</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateArtifact-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceGetArtifact-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}?fields=&sortBy=&pageSize=&from=&to="</code></pre>
+ <div class="tab-pane active" id="examples-ClusterServices-serviceServiceCreateArtifact-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "https://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-java">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -10383,23 +11440,18 @@ public class ClusterServicesApiExample {
String serviceName = serviceName_example; // String |
String artifactName = artifactName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+ ClusterServiceArtifactRequest body = ; // ClusterServiceArtifactRequest |
try {
- array[ClusterServiceArtifactResponse] result = apiInstance.serviceServiceGetArtifact(serviceName, artifactName, clusterName, fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetArtifact");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateArtifact");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-android">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-android">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
public class ClusterServicesApiExample {
@@ -10409,50 +11461,34 @@ public class ClusterServicesApiExample {
String serviceName = serviceName_example; // String |
String artifactName = artifactName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+ ClusterServiceArtifactRequest body = ; // ClusterServiceArtifactRequest |
try {
- array[ClusterServiceArtifactResponse] result = apiInstance.serviceServiceGetArtifact(serviceName, artifactName, clusterName, fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetArtifact");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateArtifact");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-groovy">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-objc">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-objc">
<pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
String *artifactName = artifactName_example; //
String *clusterName = clusterName_example; //
-String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to Artifacts/artifact_name)
-String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional) (default to Artifacts/artifact_name)
-Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
-String *from = from_example; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-String *to = to_example; // The ending page resource (inclusive). "end" is also accepted. (optional)
+ClusterServiceArtifactRequest *body = ; // (optional)
ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
-// Get the details of a service artifact
-[apiInstance serviceServiceGetArtifactWith:serviceName
+// Creates a service artifact
+[apiInstance serviceServiceCreateArtifactWith:serviceName
artifactName:artifactName
clusterName:clusterName
- fields:fields
- sortBy:sortBy
- pageSize:pageSize
- from:from
- to:to
- completionHandler: ^(array[ClusterServiceArtifactResponse] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
+ body:body
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -10460,7 +11496,7 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-javascript">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
@@ -10472,28 +11508,24 @@ var artifactName = artifactName_example; // {String}
var clusterName = clusterName_example; // {String}
var opts = {
- 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
- 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
- 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
- 'from': from_example, // {String} The starting page resource (inclusive). "start" is also accepted.
- 'to': to_example // {String} The ending page resource (inclusive). "end" is also accepted.
+ 'body': // {ClusterServiceArtifactRequest}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully. Returned data: ' + data);
+ console.log('API called successfully.');
}
};
-api.serviceServiceGetArtifact(serviceName, artifactName, clusterName, opts, callback);
+api.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-angular">
+ <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-csharp">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -10502,7 +11534,7 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceGetArtifactExample
+ public class serviceServiceCreateArtifactExample
{
public void main()
{
@@ -10511,28 +11543,23 @@ namespace Example
var serviceName = serviceName_example; // String |
var artifactName = artifactName_example; // String |
var clusterName = clusterName_example; // String |
- var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Artifacts/artifact_name)
- var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional) (default to Artifacts/artifact_name)
- var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
- var from = from_example; // String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
- var to = to_example; // String | The ending page resource (inclusive). "end" is also accepted. (optional)
+ var body = new ClusterServiceArtifactRequest(); // ClusterServiceArtifactRequest | (optional)
try
{
- // Get the details of a service artifact
- array[ClusterServiceArtifactResponse] result = apiInstance.serviceServiceGetArtifact(serviceName, artifactName, clusterName, fields, sortBy, pageSize, from, to);
- Debug.WriteLine(result);
+ // Creates a service artifact
+ apiInstance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceGetArtifact: " + e.Message );
+ Debug.Print("Exception when calling ClusterServicesApi.serviceServiceCreateArtifact: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-php">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -10540,22 +11567,17 @@ $api_instance = new Swagger\Client\Api\ClusterServicesApi();
$serviceName = serviceName_example; // String |
$artifactName = artifactName_example; // String |
$clusterName = clusterName_example; // String |
-$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
-$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
-$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
-$from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
-$to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+$body = ; // ClusterServiceArtifactRequest |
try {
- $result = $api_instance->serviceServiceGetArtifact($serviceName, $artifactName, $clusterName, $fields, $sortBy, $pageSize, $from, $to);
- print_r($result);
+ $api_instance->serviceServiceCreateArtifact($serviceName, $artifactName, $clusterName, $body);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceGetArtifact: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ClusterServicesApi->serviceServiceCreateArtifact: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-perl">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClusterServicesApi;
@@ -10564,22 +11586,17 @@ my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
my $serviceName = serviceName_example; # String |
my $artifactName = artifactName_example; # String |
my $clusterName = clusterName_example; # String |
-my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
-my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
-my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
-my $from = from_example; # String | The starting page resource (inclusive). "start" is also accepted.
-my $to = to_example; # String | The ending page resource (inclusive). "end" is also accepted.
+my $body = WWW::SwaggerClient::Object::ClusterServiceArtifactRequest->new(); # ClusterServiceArtifactRequest |
eval {
- my $result = $api_instance->serviceServiceGetArtifact(serviceName => $serviceName, artifactName => $artifactName, clusterName => $clusterName, fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
- print Dumper($result);
+ $api_instance->serviceServiceCreateArtifact(serviceName => $serviceName, artifactName => $artifactName, clusterName => $clusterName, body => $body);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceGetArtifact: $@\n";
+ warn "Exception when calling ClusterServicesApi->serviceServiceCreateArtifact: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifact-0-python">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateArtifact-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -10591,18 +11608,13 @@ api_instance = swagger_client.ClusterServicesApi()
serviceName = serviceName_example # String |
artifactName = artifactName_example # String |
clusterName = clusterName_example # String |
-fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Artifacts/artifact_name)
-sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional) (default to Artifacts/artifact_name)
-pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
-from = from_example # String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-to = to_example # String | The ending page resource (inclusive). "end" is also accepted. (optional)
+body = # ClusterServiceArtifactRequest | (optional)
try:
- # Get the details of a service artifact
- api_response = api_instance.serviceServiceGetArtifact(serviceName, artifactName, clusterName, fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
- pprint(api_response)
+ # Creates a service artifact
+ api_instance.serviceServiceCreateArtifact(serviceName, artifactName, clusterName, body=body)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceGetArtifact: %s\n" % e)</code></pre>
+ print("Exception when calling ClusterServicesApi->serviceServiceCreateArtifact: %s\n" % e)</code></pre>
</div>
</div>
@@ -10632,7 +11644,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_serviceName');
+ var result = $('#d2e199_serviceServiceCreateArtifact_serviceName');
result.empty();
result.append(view.render());
@@ -10642,7 +11654,7 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetArtifact_serviceName"></div>
+ <div id="d2e199_serviceServiceCreateArtifact_serviceName"></div>
</td>
</tr>
@@ -10664,7 +11676,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_artifactName');
+ var result = $('#d2e199_serviceServiceCreateArtifact_artifactName');
result.empty();
result.append(view.render());
@@ -10674,7 +11686,7 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetArtifact_artifactName"></div>
+ <div id="d2e199_serviceServiceCreateArtifact_artifactName"></div>
</td>
</tr>
@@ -10696,7 +11708,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_clusterName');
+ var result = $('#d2e199_serviceServiceCreateArtifact_clusterName');
result.empty();
result.append(view.render());
@@ -10706,239 +11718,116 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetArtifact_clusterName"></div>
+ <div id="d2e199_serviceServiceCreateArtifact_clusterName"></div>
</td>
</tr>
</table>
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">fields</td>
+ <tr><td style="width:150px;">body </td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "fields",
- "in" : "query",
- "description" : "Filter fields in the response (identifier fields are mandatory)",
- "required" : false,
- "type" : "string",
- "default" : "Artifacts/artifact_name"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_fields');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifact_fields"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">sortBy</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "sortBy",
- "in" : "query",
- "description" : "Sort resources in result by (asc | desc)",
+ "in" : "body",
+ "name" : "body",
"required" : false,
- "type" : "string",
- "default" : "Artifacts/artifact_name"
+ "schema" : {
+ "$ref" : "#/definitions/ClusterServiceArtifactRequest"
+ }
};
- var schema = schemaWrapper;
-
-
-
+
+ var schema = schemaWrapper.schema;
+ schemaWrapper.definitions = defs;
+ JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
+
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_sortBy');
+
+ var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
+
+ var result = $('#d2e199_serviceServiceCreateArtifact_body');
result.empty();
result.append(view.render());
+
-
-
+
+
+
});
- </script>
- <div id="d2e199_serviceServiceGetArtifact_sortBy"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">page_size</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "page_size",
- "in" : "query",
- "description" : "The number of resources to be returned for the paged response.",
- "required" : false,
- "type" : "integer",
- "default" : 10
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_pageSize');
- result.empty();
- result.append(view.render());
-
-
});
</script>
- <div id="d2e199_serviceServiceGetArtifact_pageSize"></div>
+ <div id="d2e199_serviceServiceCreateArtifact_body"></div>
</td>
</tr>
- <tr><td style="width:150px;">from</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "from",
- "in" : "query",
- "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
- "required" : false,
- "type" : "string",
- "default" : "0"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_from');
- result.empty();
- result.append(view.render());
-
+ </table>
+ <h2>Responses</h2>
+ <h3> Status: 201 - Successful operation </h3>
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifact_from"></div>
-</td>
-</tr>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- <tr><td style="width:150px;">to</td>
-<td>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 202 - Request is accepted, but not completely processed yet </h3>
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "to",
- "in" : "query",
- "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
- "required" : false,
- "type" : "string"
-};
- var schema = schemaWrapper;
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 400 - Invalid arguments </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifact_to');
- result.empty();
- result.append(view.render());
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 401 - Not authenticated </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 403 - Not permitted to perform the operation </h3>
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifact_to"></div>
-</td>
-</tr>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- </table>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- <h2>Responses</h2>
- <h3> Status: 200 - Successful operation </h3>
+ <h3> Status: 404 - The requested resource doesn't exist. </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
- <li class="active">
- <a data-toggle="tab" href="#responses-serviceServiceGetArtifact-200-schema">Schema</a>
- </li>
-
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-serviceServiceGetArtifact-200-schema">
- <div id='responses-serviceServiceGetArtifact-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
- <script>
- $(document).ready(function() {
- var schemaWrapper = {
- "description" : "Successful operation",
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ClusterServiceArtifactResponse"
- }
- }
-};
- var schema = schemaWrapper.schema;
- schemaWrapper.definitions = defs;
- //console.log(JSON.stringify(schema))
- JsonRefs.resolveRefs(schemaWrapper, {
- "depth": 3,
- "resolveRemoteRefs": false,
- "resolveFileRefs": false
- }, function(err, resolved, metadata) {
- //console.log(JSON.stringify(resolved));
- var view = new JSONSchemaView(resolved.schema, 3);
- $('#responses-serviceServiceGetArtifact-200-schema-data').val(JSON.stringify(resolved.schema));
- var result = $('#responses-serviceServiceGetArtifact-200-schema-200');
- result.empty();
- result.append(view.render());
- });
- });
- </script>
- </div>
- <input id='responses-serviceServiceGetArtifact-200-schema-data' type='hidden' value=''></input>
- </div>
</div>
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
+ <h3> Status: 409 - The requested resource already exists. </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
</ul>
@@ -10957,11 +11846,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceGetArtifacts">
- <article id="api-ClusterServices-serviceServiceGetArtifacts-0" data-group="User" data-name="serviceServiceGetArtifacts" data-version="0">
+ <div id="api-ClusterServices-serviceServiceCreateServices">
+ <article id="api-ClusterServices-serviceServiceCreateServices-0" data-group="User" data-name="serviceServiceCreateServices" data-version="0">
<div class="pull-left">
- <h1>serviceServiceGetArtifacts</h1>
- <p>Get all service artifacts</p>
+ <h1>serviceServiceCreateServices</h1>
+ <p>Creates a service</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -10969,29 +11858,29 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetArtifacts-0-python">Python</a></li>
+ <li class="active"><a href="#examples-ClusterServices-serviceServiceCreateServices-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-java">Java</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-php">PHP</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceCreateServices-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceGetArtifacts-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts?fields=&sortBy=&pageSize=&from=&to="</code></pre>
+ <div class="tab-pane active" id="examples-ClusterServices-serviceServiceCreateServices-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "https://localhost/api/v1/clusters/{clusterName}/services/{serviceName}"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-java">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -11007,23 +11896,18 @@ public class ClusterServicesApiExample {
ClusterServicesApi apiInstance = new ClusterServicesApi();
String serviceName = serviceName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+ ServiceRequestSwagger body = ; // ServiceRequestSwagger |
try {
- array[ClusterServiceArtifactResponse] result = apiInstance.serviceServiceGetArtifacts(serviceName, clusterName, fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.serviceServiceCreateServices(serviceName, clusterName, body);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetArtifacts");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateServices");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-android">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-android">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
public class ClusterServicesApiExample {
@@ -11032,48 +11916,32 @@ public class ClusterServicesApiExample {
ClusterServicesApi apiInstance = new ClusterServicesApi();
String serviceName = serviceName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+ ServiceRequestSwagger body = ; // ServiceRequestSwagger |
try {
- array[ClusterServiceArtifactResponse] result = apiInstance.serviceServiceGetArtifacts(serviceName, clusterName, fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.serviceServiceCreateServices(serviceName, clusterName, body);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetArtifacts");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceCreateServices");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-groovy">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-objc">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-objc">
<pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
String *clusterName = clusterName_example; //
-String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to Artifacts/artifact_name)
-String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional) (default to Artifacts/artifact_name)
-Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
-String *from = from_example; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-String *to = to_example; // The ending page resource (inclusive). "end" is also accepted. (optional)
+ServiceRequestSwagger *body = ; // (optional)
ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
-// Get all service artifacts
-[apiInstance serviceServiceGetArtifactsWith:serviceName
+// Creates a service
+[apiInstance serviceServiceCreateServicesWith:serviceName
clusterName:clusterName
- fields:fields
- sortBy:sortBy
- pageSize:pageSize
- from:from
- to:to
- completionHandler: ^(array[ClusterServiceArtifactResponse] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
+ body:body
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -11081,7 +11949,7 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-javascript">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
@@ -11091,28 +11959,24 @@ var serviceName = serviceName_example; // {String}
var clusterName = clusterName_example; // {String}
var opts = {
- 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
- 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
- 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
- 'from': from_example, // {String} The starting page resource (inclusive). "start" is also accepted.
- 'to': to_example // {String} The ending page resource (inclusive). "end" is also accepted.
+ 'body': // {ServiceRequestSwagger}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully. Returned data: ' + data);
+ console.log('API called successfully.');
}
};
-api.serviceServiceGetArtifacts(serviceName, clusterName, opts, callback);
+api.serviceServiceCreateServices(serviceName, clusterName, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-angular">
+ <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-csharp">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -11121,7 +11985,7 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceGetArtifactsExample
+ public class serviceServiceCreateServicesExample
{
public void main()
{
@@ -11129,50 +11993,40 @@ namespace Example
var apiInstance = new ClusterServicesApi();
var serviceName = serviceName_example; // String |
var clusterName = clusterName_example; // String |
- var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Artifacts/artifact_name)
- var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional) (default to Artifacts/artifact_name)
- var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
- var from = from_example; // String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
- var to = to_example; // String | The ending page resource (inclusive). "end" is also accepted. (optional)
+ var body = new ServiceRequestSwagger(); // ServiceRequestSwagger | (optional)
try
{
- // Get all service artifacts
- array[ClusterServiceArtifactResponse] result = apiInstance.serviceServiceGetArtifacts(serviceName, clusterName, fields, sortBy, pageSize, from, to);
- Debug.WriteLine(result);
+ // Creates a service
+ apiInstance.serviceServiceCreateServices(serviceName, clusterName, body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceGetArtifacts: " + e.Message );
+ Debug.Print("Exception when calling ClusterServicesApi.serviceServiceCreateServices: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-php">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ClusterServicesApi();
$serviceName = serviceName_example; // String |
$clusterName = clusterName_example; // String |
-$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
-$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
-$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
-$from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
-$to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
+$body = ; // ServiceRequestSwagger |
try {
- $result = $api_instance->serviceServiceGetArtifacts($serviceName, $clusterName, $fields, $sortBy, $pageSize, $from, $to);
- print_r($result);
+ $api_instance->serviceServiceCreateServices($serviceName, $clusterName, $body);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceGetArtifacts: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ClusterServicesApi->serviceServiceCreateServices: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-perl">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClusterServicesApi;
@@ -11180,22 +12034,17 @@ use WWW::SwaggerClient::ClusterServicesApi;
my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
my $serviceName = serviceName_example; # String |
my $clusterName = clusterName_example; # String |
-my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
-my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
-my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
-my $from = from_example; # String | The starting page resource (inclusive). "start" is also accepted.
-my $to = to_example; # String | The ending page resource (inclusive). "end" is also accepted.
+my $body = WWW::SwaggerClient::Object::ServiceRequestSwagger->new(); # ServiceRequestSwagger |
eval {
- my $result = $api_instance->serviceServiceGetArtifacts(serviceName => $serviceName, clusterName => $clusterName, fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
- print Dumper($result);
+ $api_instance->serviceServiceCreateServices(serviceName => $serviceName, clusterName => $clusterName, body => $body);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceGetArtifacts: $@\n";
+ warn "Exception when calling ClusterServicesApi->serviceServiceCreateServices: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetArtifacts-0-python">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceCreateServices-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -11206,18 +12055,13 @@ from pprint import pprint
api_instance = swagger_client.ClusterServicesApi()
serviceName = serviceName_example # String |
clusterName = clusterName_example # String |
-fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to Artifacts/artifact_name)
-sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional) (default to Artifacts/artifact_name)
-pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
-from = from_example # String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-to = to_example # String | The ending page resource (inclusive). "end" is also accepted. (optional)
+body = # ServiceRequestSwagger | (optional)
try:
- # Get all service artifacts
- api_response = api_instance.serviceServiceGetArtifacts(serviceName, clusterName, fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
- pprint(api_response)
+ # Creates a service
+ api_instance.serviceServiceCreateServices(serviceName, clusterName, body=body)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceGetArtifacts: %s\n" % e)</code></pre>
+ print("Exception when calling ClusterServicesApi->serviceServiceCreateServices: %s\n" % e)</code></pre>
</div>
</div>
@@ -11247,7 +12091,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_serviceName');
+ var result = $('#d2e199_serviceServiceCreateServices_serviceName');
result.empty();
result.append(view.render());
@@ -11257,7 +12101,7 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetArtifacts_serviceName"></div>
+ <div id="d2e199_serviceServiceCreateServices_serviceName"></div>
</td>
</tr>
@@ -11279,7 +12123,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_clusterName');
+ var result = $('#d2e199_serviceServiceCreateServices_clusterName');
result.empty();
result.append(view.render());
@@ -11289,250 +12133,127 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetArtifacts_clusterName"></div>
+ <div id="d2e199_serviceServiceCreateServices_clusterName"></div>
</td>
</tr>
</table>
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Body parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">fields</td>
+ <tr><td style="width:150px;">body </td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "fields",
- "in" : "query",
- "description" : "Filter fields in the response (identifier fields are mandatory)",
+ "in" : "body",
+ "name" : "body",
"required" : false,
- "type" : "string",
- "default" : "Artifacts/artifact_name"
+ "schema" : {
+ "$ref" : "#/definitions/ServiceRequestSwagger"
+ }
};
- var schema = schemaWrapper;
-
-
-
+
+ var schema = schemaWrapper.schema;
+ schemaWrapper.definitions = defs;
+ JsonRefs.resolveRefs(schemaWrapper, {"depth":3, "resolveRemoteRefs":false,"resolveFileRefs":false },function (err, resolved, metadata) {
+
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_fields');
+
+ var view = new JSONSchemaView(resolved.schema,2,{isBodyParam: true});
+
+ var result = $('#d2e199_serviceServiceCreateServices_body');
result.empty();
result.append(view.render());
+
+
+
+
+
+ });
});
</script>
- <div id="d2e199_serviceServiceGetArtifacts_fields"></div>
+ <div id="d2e199_serviceServiceCreateServices_body"></div>
</td>
</tr>
- <tr><td style="width:150px;">sortBy</td>
-<td>
+ </table>
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "sortBy",
- "in" : "query",
- "description" : "Sort resources in result by (asc | desc)",
- "required" : false,
- "type" : "string",
- "default" : "Artifacts/artifact_name"
-};
- var schema = schemaWrapper;
+ <h2>Responses</h2>
+ <h3> Status: 201 - Successful operation </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_sortBy');
- result.empty();
- result.append(view.render());
+ <h3> Status: 202 - Request is accepted, but not completely processed yet </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 400 - Invalid arguments </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifacts_sortBy"></div>
-</td>
-</tr>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- <tr><td style="width:150px;">page_size</td>
-<td>
+ <h3> Status: 401 - Not authenticated </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "page_size",
- "in" : "query",
- "description" : "The number of resources to be returned for the paged response.",
- "required" : false,
- "type" : "integer",
- "default" : 10
-};
- var schema = schemaWrapper;
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 403 - Not permitted to perform the operation </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_pageSize');
- result.empty();
- result.append(view.render());
+ <h3> Status: 404 - The requested resource doesn't exist. </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 409 - The requested resource already exists. </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifacts_pageSize"></div>
-</td>
-</tr>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- <tr><td style="width:150px;">from</td>
-<td>
+ <h3> Status: 500 - Internal server error </h3>
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "from",
- "in" : "query",
- "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
- "required" : false,
- "type" : "string",
- "default" : "0"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_from');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifacts_from"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">to</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "to",
- "in" : "query",
- "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
- "required" : false,
- "type" : "string"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetArtifacts_to');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceGetArtifacts_to"></div>
-</td>
-</tr>
-
- </table>
-
- <h2>Responses</h2>
- <h3> Status: 200 - Successful operation </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- <li class="active">
- <a data-toggle="tab" href="#responses-serviceServiceGetArtifacts-200-schema">Schema</a>
- </li>
-
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-serviceServiceGetArtifacts-200-schema">
- <div id='responses-serviceServiceGetArtifacts-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
- <script>
- $(document).ready(function() {
- var schemaWrapper = {
- "description" : "Successful operation",
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ClusterServiceArtifactResponse"
- }
- }
-};
- var schema = schemaWrapper.schema;
- schemaWrapper.definitions = defs;
- //console.log(JSON.stringify(schema))
- JsonRefs.resolveRefs(schemaWrapper, {
- "depth": 3,
- "resolveRemoteRefs": false,
- "resolveFileRefs": false
- }, function(err, resolved, metadata) {
- //console.log(JSON.stringify(resolved));
- var view = new JSONSchemaView(resolved.schema, 3);
- $('#responses-serviceServiceGetArtifacts-200-schema-data').val(JSON.stringify(resolved.schema));
- var result = $('#responses-serviceServiceGetArtifacts-200-schema-200');
- result.empty();
- result.append(view.render());
- });
- });
- </script>
- </div>
- <input id='responses-serviceServiceGetArtifacts-200-schema-data' type='hidden' value=''></input>
- </div>
- </div>
-
- <h3> Status: 404 - The requested resource doesn't exist. </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
-
- <div class="tab-content" style='margin-bottom: 10px;'>
- </div>
-
- <h3> Status: 500 - Internal server error </h3>
-
- <ul class="nav nav-tabs nav-tabs-examples" >
- </ul>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
<div class="tab-content" style='margin-bottom: 10px;'>
</div>
@@ -11540,41 +12261,41 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceGetService">
- <article id="api-ClusterServices-serviceServiceGetService-0" data-group="User" data-name="serviceServiceGetService" data-version="0">
+ <div id="api-ClusterServices-serviceServiceDeleteArtifact">
+ <article id="api-ClusterServices-serviceServiceDeleteArtifact-0" data-group="User" data-name="serviceServiceDeleteArtifact" data-version="0">
<div class="pull-left">
- <h1>serviceServiceGetService</h1>
- <p>Get the details of a service</p>
+ <h1>serviceServiceDeleteArtifact</h1>
+ <p>Deletes a single service artifact</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns the details of a service.</p>
+ <p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceGetService-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetService-0-python">Python</a></li>
+ <li class="active"><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-java">Java</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-php">PHP</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifact-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceGetService-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}?fields="</code></pre>
+ <div class="tab-pane active" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-java">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -11589,20 +12310,19 @@ public class ClusterServicesApiExample {
ClusterServicesApi apiInstance = new ClusterServicesApi();
String serviceName = serviceName_example; // String |
+ String artifactName = artifactName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
try {
- array[ServiceResponseSwagger] result = apiInstance.serviceServiceGetService(serviceName, clusterName, fields);
- System.out.println(result);
+ apiInstance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetService");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifact");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-android">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-android">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
public class ClusterServicesApiExample {
@@ -11610,37 +12330,33 @@ public class ClusterServicesApiExample {
public static void main(String[] args) {
ClusterServicesApi apiInstance = new ClusterServicesApi();
String serviceName = serviceName_example; // String |
+ String artifactName = artifactName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
try {
- array[ServiceResponseSwagger] result = apiInstance.serviceServiceGetService(serviceName, clusterName, fields);
- System.out.println(result);
+ apiInstance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetService");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifact");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-groovy">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-objc">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-objc">
<pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
+String *artifactName = artifactName_example; //
String *clusterName = clusterName_example; //
-String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to ServiceInfo/*)
ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
-// Get the details of a service
-[apiInstance serviceServiceGetServiceWith:serviceName
+// Deletes a single service artifact
+[apiInstance serviceServiceDeleteArtifactWith:serviceName
+ artifactName:artifactName
clusterName:clusterName
- fields:fields
- completionHandler: ^(array[ServiceResponseSwagger] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -11648,34 +12364,33 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-javascript">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
var serviceName = serviceName_example; // {String}
+var artifactName = artifactName_example; // {String}
+
var clusterName = clusterName_example; // {String}
-var opts = {
- 'fields': fields_example // {String} Filter fields in the response (identifier fields are mandatory)
-};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully. Returned data: ' + data);
+ console.log('API called successfully.');
}
};
-api.serviceServiceGetService(serviceName, clusterName, opts, callback);
+api.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-angular">
+ <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-csharp">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -11684,69 +12399,66 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceGetServiceExample
+ public class serviceServiceDeleteArtifactExample
{
public void main()
{
var apiInstance = new ClusterServicesApi();
var serviceName = serviceName_example; // String |
+ var artifactName = artifactName_example; // String |
var clusterName = clusterName_example; // String |
- var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to ServiceInfo/*)
try
{
- // Get the details of a service
- array[ServiceResponseSwagger] result = apiInstance.serviceServiceGetService(serviceName, clusterName, fields);
- Debug.WriteLine(result);
+ // Deletes a single service artifact
+ apiInstance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceGetService: " + e.Message );
+ Debug.Print("Exception when calling ClusterServicesApi.serviceServiceDeleteArtifact: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-php">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ClusterServicesApi();
$serviceName = serviceName_example; // String |
+$artifactName = artifactName_example; // String |
$clusterName = clusterName_example; // String |
-$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
try {
- $result = $api_instance->serviceServiceGetService($serviceName, $clusterName, $fields);
- print_r($result);
+ $api_instance->serviceServiceDeleteArtifact($serviceName, $artifactName, $clusterName);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceGetService: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ClusterServicesApi->serviceServiceDeleteArtifact: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-perl">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClusterServicesApi;
my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
my $serviceName = serviceName_example; # String |
+my $artifactName = artifactName_example; # String |
my $clusterName = clusterName_example; # String |
-my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
eval {
- my $result = $api_instance->serviceServiceGetService(serviceName => $serviceName, clusterName => $clusterName, fields => $fields);
- print Dumper($result);
+ $api_instance->serviceServiceDeleteArtifact(serviceName => $serviceName, artifactName => $artifactName, clusterName => $clusterName);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceGetService: $@\n";
+ warn "Exception when calling ClusterServicesApi->serviceServiceDeleteArtifact: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetService-0-python">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifact-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -11756,15 +12468,14 @@ from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ClusterServicesApi()
serviceName = serviceName_example # String |
+artifactName = artifactName_example # String |
clusterName = clusterName_example # String |
-fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to ServiceInfo/*)
try:
- # Get the details of a service
- api_response = api_instance.serviceServiceGetService(serviceName, clusterName, fields=fields)
- pprint(api_response)
+ # Deletes a single service artifact
+ api_instance.serviceServiceDeleteArtifact(serviceName, artifactName, clusterName)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceGetService: %s\n" % e)</code></pre>
+ print("Exception when calling ClusterServicesApi->serviceServiceDeleteArtifact: %s\n" % e)</code></pre>
</div>
</div>
@@ -11794,7 +12505,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetService_serviceName');
+ var result = $('#d2e199_serviceServiceDeleteArtifact_serviceName');
result.empty();
result.append(view.render());
@@ -11804,18 +12515,18 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetService_serviceName"></div>
+ <div id="d2e199_serviceServiceDeleteArtifact_serviceName"></div>
</td>
</tr>
- <tr><td style="width:150px;">clusterName*</td>
+ <tr><td style="width:150px;">artifactName*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "clusterName",
+ "name" : "artifactName",
"in" : "path",
"required" : true,
"type" : "string"
@@ -11826,7 +12537,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetService_clusterName');
+ var result = $('#d2e199_serviceServiceDeleteArtifact_artifactName');
result.empty();
result.append(view.render());
@@ -11836,34 +12547,21 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetService_clusterName"></div>
+ <div id="d2e199_serviceServiceDeleteArtifact_artifactName"></div>
</td>
</tr>
- </table>
-
-
-
-
- <div class="methodsubtabletitle">Query parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">fields</td>
+ <tr><td style="width:150px;">clusterName*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "fields",
- "in" : "query",
- "description" : "Filter fields in the response (identifier fields are mandatory)",
- "required" : false,
- "type" : "string",
- "default" : "ServiceInfo/*"
+ "name" : "clusterName",
+ "in" : "path",
+ "required" : true,
+ "type" : "string"
};
var schema = schemaWrapper;
@@ -11871,7 +12569,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetService_fields');
+ var result = $('#d2e199_serviceServiceDeleteArtifact_clusterName');
result.empty();
result.append(view.render());
@@ -11881,56 +12579,39 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetService_fields"></div>
+ <div id="d2e199_serviceServiceDeleteArtifact_clusterName"></div>
</td>
</tr>
</table>
+
+
+
+
<h2>Responses</h2>
<h3> Status: 200 - Successful operation </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
- <li class="active">
- <a data-toggle="tab" href="#responses-serviceServiceGetService-200-schema">Schema</a>
- </li>
+ </ul>
+
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 401 - Not authenticated </h3>
+
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+
+ <h3> Status: 403 - Not permitted to perform the operation </h3>
+
+ <ul class="nav nav-tabs nav-tabs-examples" >
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-serviceServiceGetService-200-schema">
- <div id='responses-serviceServiceGetService-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
- <script>
- $(document).ready(function() {
- var schemaWrapper = {
- "description" : "Successful operation",
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ServiceResponseSwagger"
- }
- }
-};
- var schema = schemaWrapper.schema;
- schemaWrapper.definitions = defs;
- //console.log(JSON.stringify(schema))
- JsonRefs.resolveRefs(schemaWrapper, {
- "depth": 3,
- "resolveRemoteRefs": false,
- "resolveFileRefs": false
- }, function(err, resolved, metadata) {
- //console.log(JSON.stringify(resolved));
- var view = new JSONSchemaView(resolved.schema, 3);
- $('#responses-serviceServiceGetService-200-schema-data').val(JSON.stringify(resolved.schema));
- var result = $('#responses-serviceServiceGetService-200-schema-200');
- result.empty();
- result.append(view.render());
- });
- });
- </script>
- </div>
- <input id='responses-serviceServiceGetService-200-schema-data' type='hidden' value=''></input>
- </div>
</div>
<h3> Status: 404 - The requested resource doesn't exist. </h3>
@@ -11952,41 +12633,41 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceGetServices">
- <article id="api-ClusterServices-serviceServiceGetServices-0" data-group="User" data-name="serviceServiceGetServices" data-version="0">
+ <div id="api-ClusterServices-serviceServiceDeleteArtifacts">
+ <article id="api-ClusterServices-serviceServiceDeleteArtifacts-0" data-group="User" data-name="serviceServiceDeleteArtifacts" data-version="0">
<div class="pull-left">
- <h1>serviceServiceGetServices</h1>
- <p>Get all services</p>
+ <h1>serviceServiceDeleteArtifacts</h1>
+ <p>Deletes all artifacts of a service that match the provided predicate</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns all services.</p>
+ <p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/clusters/{clusterName}/services</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceGetServices-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceGetServices-0-python">Python</a></li>
+ <li class="active"><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-java">Java</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-php">PHP</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteArtifacts-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceGetServices-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://localhost/api/v1/clusters/{clusterName}/services?fields=&sortBy=&pageSize=&from=&to="</code></pre>
+ <div class="tab-pane active" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-java">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -12000,71 +12681,50 @@ public class ClusterServicesApiExample {
public static void main(String[] args) {
ClusterServicesApi apiInstance = new ClusterServicesApi();
+ String serviceName = serviceName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
- array[ServiceResponseSwagger] result = apiInstance.serviceServiceGetServices(clusterName, fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.serviceServiceDeleteArtifacts(serviceName, clusterName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetServices");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifacts");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-android">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-android">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
public class ClusterServicesApiExample {
public static void main(String[] args) {
ClusterServicesApi apiInstance = new ClusterServicesApi();
+ String serviceName = serviceName_example; // String |
String clusterName = clusterName_example; // String |
- String fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
- String sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
- Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
- String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
- String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
- array[ServiceResponseSwagger] result = apiInstance.serviceServiceGetServices(clusterName, fields, sortBy, pageSize, from, to);
- System.out.println(result);
+ apiInstance.serviceServiceDeleteArtifacts(serviceName, clusterName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceGetServices");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteArtifacts");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-groovy">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-objc">
- <pre class="prettyprint"><code class="language-cpp">String *clusterName = clusterName_example; //
-String *fields = fields_example; // Filter fields in the response (identifier fields are mandatory) (optional) (default to ServiceInfo/service_name, ServiceInfo/cluster_name)
-String *sortBy = sortBy_example; // Sort resources in result by (asc | desc) (optional) (default to ServiceInfo/service_name.asc, ServiceInfo/cluster_name.asc)
-Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
-String *from = from_example; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-String *to = to_example; // The ending page resource (inclusive). "end" is also accepted. (optional)
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-objc">
+ <pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
+String *clusterName = clusterName_example; //
ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
-// Get all services
-[apiInstance serviceServiceGetServicesWith:clusterName
- fields:fields
- sortBy:sortBy
- pageSize:pageSize
- from:from
- to:to
- completionHandler: ^(array[ServiceResponseSwagger] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
+// Deletes all artifacts of a service that match the provided predicate
+[apiInstance serviceServiceDeleteArtifactsWith:serviceName
+ clusterName:clusterName
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -12072,36 +12732,31 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-javascript">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
+var serviceName = serviceName_example; // {String}
+
var clusterName = clusterName_example; // {String}
-var opts = {
- 'fields': fields_example, // {String} Filter fields in the response (identifier fields are mandatory)
- 'sortBy': sortBy_example, // {String} Sort resources in result by (asc | desc)
- 'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
- 'from': from_example, // {String} The starting page resource (inclusive). "start" is also accepted.
- 'to': to_example // {String} The ending page resource (inclusive). "end" is also accepted.
-};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully. Returned data: ' + data);
+ console.log('API called successfully.');
}
};
-api.serviceServiceGetServices(clusterName, opts, callback);
+api.serviceServiceDeleteArtifacts(serviceName, clusterName, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-angular">
+ <!--<div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-csharp">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -12110,78 +12765,63 @@ using IO.Swagger.Model;
namespace Example
{
- public class serviceServiceGetServicesExample
+ public class serviceServiceDeleteArtifactsExample
{
public void main()
{
var apiInstance = new ClusterServicesApi();
+ var serviceName = serviceName_example; // String |
var clusterName = clusterName_example; // String |
- var fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory) (optional) (default to ServiceInfo/service_name, ServiceInfo/cluster_name)
- var sortBy = sortBy_example; // String | Sort resources in result by (asc | desc) (optional) (default to ServiceInfo/service_name.asc, ServiceInfo/cluster_name.asc)
- var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
- var from = from_example; // String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
- var to = to_example; // String | The ending page resource (inclusive). "end" is also accepted. (optional)
try
{
- // Get all services
- array[ServiceResponseSwagger] result = apiInstance.serviceServiceGetServices(clusterName, fields, sortBy, pageSize, from, to);
- Debug.WriteLine(result);
+ // Deletes all artifacts of a service that match the provided predicate
+ apiInstance.serviceServiceDeleteArtifacts(serviceName, clusterName);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ClusterServicesApi.serviceServiceGetServices: " + e.Message );
+ Debug.Print("Exception when calling ClusterServicesApi.serviceServiceDeleteArtifacts: " + e.Message );
}
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-php">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ClusterServicesApi();
+$serviceName = serviceName_example; // String |
$clusterName = clusterName_example; // String |
-$fields = fields_example; // String | Filter fields in the response (identifier fields are mandatory)
-$sortBy = sortBy_example; // String | Sort resources in result by (asc | desc)
-$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
-$from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
-$to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
- $result = $api_instance->serviceServiceGetServices($clusterName, $fields, $sortBy, $pageSize, $from, $to);
- print_r($result);
+ $api_instance->serviceServiceDeleteArtifacts($serviceName, $clusterName);
} catch (Exception $e) {
- echo 'Exception when calling ClusterServicesApi->serviceServiceGetServices: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ClusterServicesApi->serviceServiceDeleteArtifacts: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-perl">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClusterServicesApi;
my $api_instance = WWW::SwaggerClient::ClusterServicesApi->new();
+my $serviceName = serviceName_example; # String |
my $clusterName = clusterName_example; # String |
-my $fields = fields_example; # String | Filter fields in the response (identifier fields are mandatory)
-my $sortBy = sortBy_example; # String | Sort resources in result by (asc | desc)
-my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
-my $from = from_example; # String | The starting page resource (inclusive). "start" is also accepted.
-my $to = to_example; # String | The ending page resource (inclusive). "end" is also accepted.
eval {
- my $result = $api_instance->serviceServiceGetServices(clusterName => $clusterName, fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
- print Dumper($result);
+ $api_instance->serviceServiceDeleteArtifacts(serviceName => $serviceName, clusterName => $clusterName);
};
if ($@) {
- warn "Exception when calling ClusterServicesApi->serviceServiceGetServices: $@\n";
+ warn "Exception when calling ClusterServicesApi->serviceServiceDeleteArtifacts: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceGetServices-0-python">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteArtifacts-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_client
@@ -12190,19 +12830,14 @@ from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ClusterServicesApi()
+serviceName = serviceName_example # String |
clusterName = clusterName_example # String |
-fields = fields_example # String | Filter fields in the response (identifier fields are mandatory) (optional) (default to ServiceInfo/service_name, ServiceInfo/cluster_name)
-sortBy = sortBy_example # String | Sort resources in result by (asc | desc) (optional) (default to ServiceInfo/service_name.asc, ServiceInfo/cluster_name.asc)
-pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
-from = from_example # String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
-to = to_example # String | The ending page resource (inclusive). "end" is also accepted. (optional)
try:
- # Get all services
- api_response = api_instance.serviceServiceGetServices(clusterName, fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
- pprint(api_response)
+ # Deletes all artifacts of a service that match the provided predicate
+ api_instance.serviceServiceDeleteArtifacts(serviceName, clusterName)
except ApiException as e:
- print("Exception when calling ClusterServicesApi->serviceServiceGetServices: %s\n" % e)</code></pre>
+ print("Exception when calling ClusterServicesApi->serviceServiceDeleteArtifacts: %s\n" % e)</code></pre>
</div>
</div>
@@ -12214,14 +12849,14 @@ except ApiException as e:
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">clusterName*</td>
+ <tr><td style="width:150px;">serviceName*</td>
<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "clusterName",
+ "name" : "serviceName",
"in" : "path",
"required" : true,
"type" : "string"
@@ -12232,7 +12867,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetServices_clusterName');
+ var result = $('#d2e199_serviceServiceDeleteArtifacts_serviceName');
result.empty();
result.append(view.render());
@@ -12242,102 +12877,21 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetServices_clusterName"></div>
+ <div id="d2e199_serviceServiceDeleteArtifacts_serviceName"></div>
</td>
</tr>
- </table>
-
-
-
-
- <div class="methodsubtabletitle">Query parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">fields</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "fields",
- "in" : "query",
- "description" : "Filter fields in the response (identifier fields are mandatory)",
- "required" : false,
- "type" : "string",
- "default" : "ServiceInfo/service_name, ServiceInfo/cluster_name"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetServices_fields');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceGetServices_fields"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">sortBy</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "sortBy",
- "in" : "query",
- "description" : "Sort resources in result by (asc | desc)",
- "required" : false,
- "type" : "string",
- "default" : "ServiceInfo/service_name.asc, ServiceInfo/cluster_name.asc"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetServices_sortBy');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceGetServices_sortBy"></div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">page_size</td>
-<td>
+ <tr><td style="width:150px;">clusterName*</td>
+<td>
<script>
$(document).ready(function() {
var schemaWrapper = {
- "name" : "page_size",
- "in" : "query",
- "description" : "The number of resources to be returned for the paged response.",
- "required" : false,
- "type" : "integer",
- "default" : 10
+ "name" : "clusterName",
+ "in" : "path",
+ "required" : true,
+ "type" : "string"
};
var schema = schemaWrapper;
@@ -12345,7 +12899,7 @@ except ApiException as e:
var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetServices_pageSize');
+ var result = $('#d2e199_serviceServiceDeleteArtifacts_clusterName');
result.empty();
result.append(view.render());
@@ -12355,123 +12909,47 @@ except ApiException as e:
});
</script>
- <div id="d2e199_serviceServiceGetServices_pageSize"></div>
+ <div id="d2e199_serviceServiceDeleteArtifacts_clusterName"></div>
</td>
</tr>
- <tr><td style="width:150px;">from</td>
-<td>
-
-
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "from",
- "in" : "query",
- "description" : "The starting page resource (inclusive). \"start\" is also accepted.",
- "required" : false,
- "type" : "string",
- "default" : "0"
-};
- var schema = schemaWrapper;
-
-
-
-
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetServices_from');
- result.empty();
- result.append(view.render());
-
-
-
-
-
- });
- </script>
- <div id="d2e199_serviceServiceGetServices_from"></div>
-</td>
-</tr>
+ </table>
- <tr><td style="width:150px;">to</td>
-<td>
-<script>
- $(document).ready(function() {
- var schemaWrapper = {
- "name" : "to",
- "in" : "query",
- "description" : "The ending page resource (inclusive). \"end\" is also accepted.",
- "required" : false,
- "type" : "string"
-};
- var schema = schemaWrapper;
+ <h2>Responses</h2>
+ <h3> Status: 200 - Successful operation </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- var view = new JSONSchemaView(schema,1);
- var result = $('#d2e199_serviceServiceGetServices_to');
- result.empty();
- result.append(view.render());
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 401 - Not authenticated </h3>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
+ <h3> Status: 403 - Not permitted to perform the operation </h3>
- });
- </script>
- <div id="d2e199_serviceServiceGetServices_to"></div>
-</td>
-</tr>
+ <ul class="nav nav-tabs nav-tabs-examples" >
+ </ul>
- </table>
+ <div class="tab-content" style='margin-bottom: 10px;'>
+ </div>
- <h2>Responses</h2>
- <h3> Status: 200 - Successful operation </h3>
+ <h3> Status: 404 - The requested resource doesn't exist. </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
- <li class="active">
- <a data-toggle="tab" href="#responses-serviceServiceGetServices-200-schema">Schema</a>
- </li>
-
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-serviceServiceGetServices-200-schema">
- <div id='responses-serviceServiceGetServices-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
- <script>
- $(document).ready(function() {
- var schemaWrapper = {
- "description" : "Successful operation",
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ServiceResponseSwagger"
- }
- }
-};
- var schema = schemaWrapper.schema;
- schemaWrapper.definitions = defs;
- //console.log(JSON.stringify(schema))
- JsonRefs.resolveRefs(schemaWrapper, {
- "depth": 3,
- "resolveRemoteRefs": false,
- "resolveFileRefs": false
- }, function(err, resolved, metadata) {
- //console.log(JSON.stringify(resolved));
- var view = new JSONSchemaView(resolved.schema, 3);
- $('#responses-serviceServiceGetServices-200-schema-data').val(JSON.stringify(resolved.schema));
- var result = $('#responses-serviceServiceGetServices-200-schema-200');
- result.empty();
- result.append(view.render());
- });
- });
- </script>
- </div>
- <input id='responses-serviceServiceGetServices-200-schema-data' type='hidden' value=''></input>
- </div>
</div>
<h3> Status: 500 - Internal server error </h3>
@@ -12485,11 +12963,11 @@ except ApiException as e:
</article>
</div>
<hr>
- <div id="api-ClusterServices-serviceServiceUpdateArtifact">
- <article id="api-ClusterServices-serviceServiceUpdateArtifact-0" data-group="User" data-name="serviceServiceUpdateArtifact" data-version="0">
+ <div id="api-ClusterServices-serviceServiceDeleteService">
+ <article id="api-ClusterServices-serviceServiceDeleteService-0" data-group="User" data-name="serviceServiceDeleteService" data-version="0">
<div class="pull-left">
- <h1>serviceServiceUpdateArtifact</h1>
- <p>Updates a single artifact</p>
+ <h1>serviceServiceDeleteService</h1>
+ <p>Deletes a service</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
@@ -12497,29 +12975,29 @@ except ApiException as e:
<p class="marked"></p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/clusters/{clusterName}/services/{serviceName}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-curl">Curl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-java">Java</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-csharp">C#</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-php">PHP</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-perl">Perl</a></li>
- <li class=""><a href="#examples-ClusterServices-serviceServiceUpdateArtifact-0-python">Python</a></li>
+ <li class="active"><a href="#examples-ClusterServices-serviceServiceDeleteService-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-java">Java</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-php">PHP</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-ClusterServices-serviceServiceDeleteService-0-python">Python</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-ClusterServices-serviceServiceUpdateArtifact-0-curl">
- <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">put</span> "http://localhost/api/v1/clusters/{clusterName}/services/{serviceName}/artifacts/{artifactName}"</code></pre>
+ <div class="tab-pane active" id="examples-ClusterServices-serviceServiceDeleteService-0-curl">
+ <pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "https://localhost/api/v1/clusters/{clusterName}/services/{serviceName}"</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceUpdateArtifact-0-java">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -12534,20 +13012,18 @@ public class ClusterServicesApiExample {
ClusterServicesApi apiInstance = new ClusterServicesApi();
String serviceName = serviceName_example; // String |
- String artifactName = artifactName_example; // String |
String clusterName = clusterName_example; // String |
- ClusterServiceArtifactRequest body = ; // ClusterServiceArtifactRequest |
try {
- apiInstance.serviceServiceUpdateArtifact(serviceName, artifactName, clusterName, body);
+ apiInstance.serviceServiceDeleteService(serviceName, clusterName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceUpdateArtifact");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteService");
e.printStackTrace();
}
}
}</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceUpdateArtifact-0-android">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-android">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.api.ClusterServicesApi;
public class ClusterServicesApiExample {
@@ -12555,35 +13031,29 @@ public class ClusterServicesApiExample {
public static void main(String[] args) {
ClusterServicesApi apiInstance = new ClusterServicesApi();
String serviceName = serviceName_example; // String |
- String artifactName = artifactName_example; // String |
String clusterName = clusterName_example; // String |
- ClusterServiceArtifactRequest body = ; // ClusterServiceArtifactRequest |
try {
- apiInstance.serviceServiceUpdateArtifact(serviceName, artifactName, clusterName, body);
+ apiInstance.serviceServiceDeleteService(serviceName, clusterName);
} catch (ApiException e) {
- System.err.println("Exception when calling ClusterServicesApi#serviceServiceUpdateArtifact");
+ System.err.println("Exception when calling ClusterServicesApi#serviceServiceDeleteService");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceUpdateArtifact-0-groovy">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceUpdateArtifact-0-objc">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-objc">
<pre class="prettyprint"><code class="language-cpp">String *serviceName = serviceName_example; //
-String *artifactName = artifactName_example; //
String *clusterName = clusterName_example; //
-ClusterServiceArtifactRequest *body = ; // (optional)
ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
-// Updates a single artifact
-[apiInstance serviceServiceUpdateArtifactWith:serviceName
- artifactName:artifactName
+// Deletes a service
+[apiInstance serviceServiceDeleteServiceWith:serviceName
clusterName:clusterName
- body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -12592,20 +13062,15 @@ ClusterServicesApi *apiInstance = [[ClusterServicesApi alloc] init];
</code></pre>
</div>
- <div class="tab-pane" id="examples-ClusterServices-serviceServiceUpdateArtifact-0-javascript">
+ <div class="tab-pane" id="examples-ClusterServices-serviceServiceDeleteService-0-javascript">
<pre class="prettyprint"><code class="language-js">var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
var api = new SwaggerSpecForAmbariRestApi.ClusterServicesApi()
var serviceName = serviceName_example; // {String}
-var artifactName = artifactName_example; // {String}
-
var clusterName = clusterName_example; // {String}
-var opts = {
- 'body': // {ClusterServiceArtifactRequest}
-};
var callback = function(error, data, response) {
if (error) {
@@ -12614,14 +13079,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
... 81733 lines suppressed ...
--
To stop receiving notification emails like this one, please contact
jaimin@apache.org.